eliky / latex-lab

Automatically exported from code.google.com/p/latex-lab
0 stars 0 forks source link

trying to use pdftricks without shell-escape #229

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Just run pdflatex in the following code

\documentclass[a4paper,11pt]{article}

\usepackage{pdftricks}

\begin{document}

\begin{psinputs}
\usepackage{graphicx}
\usepackage{pstricks}
\usepackage{pst-node}
\usepackage{pst-text}
\usepackage{pst-plot}
\usepackage{pstricks-add}
\usepackage{color}
\end{psinputs}

\begin{center}
\begin{pdfdisplay}
\input pst-eps
\TeXtoEPS
\SpecialCoor

\begin{pspicture}(0,1)(9,9)

\psaxes[axesstyle=frame,ticks=none,linewidth=1.2pt]{->}(1,1)(1,1)(9,9)%
\put(9.5,1){\makebox(0,0)[cc]{$q_1$}}%
\put(0.5,8.5){\makebox(0,0)[cc]{ $q_2$}}%

{\psplot[linecolor=blue,linewidth=1.5pt]{1}{8}{5 x .5 mul sub}}%
{\psline[linecolor=black,linewidth=1pt]{->}(7,1.5)(8,2)}%
{\put(7.75,2.25){\makebox(0,0)[cc]{\footnotesize$B_2(q_1)$}}}%

{\psplot[linestyle=dashed,linecolor=red,linewidth=1.5pt]{1}{4.5}{10 x 2 mul 
sub}}%
{\psline[linecolor=black,linewidth=1pt]{->}(1.5,7)(2,8)}%
{\put(2.25,8.25){\makebox(0,0)[cc]{\footnotesize$B_1(q_2,k_1)$}}}%

{\put(3.3333,3.333){\makebox{\qdisk(0,0){2pt}}}}%
\put(4,3.5){\makebox(0,0)[cc]{\footnotesize $(q_1^*,q_2^*)$}}%

{\put(7,7){\makebox(0,0)[cc]{\footnotesize $k_1^\prime> k_1$}}}%

{\psplot[linecolor=red,linewidth=1.5pt]{1}{4}{9 x 2 mul sub}}%
{\psline[linecolor=black,linewidth=1pt]{->}(1.25,6.5)(0.25,5.5)}%
{\put(0,5){\makebox(0,0)[cc]{\footnotesize$B_1(q_2,k_1^\prime)$}}}%

{\put(2.66666,3.66666){\makebox{\qdisk(0,0){2pt}}}}%
{\psline[linecolor=black,linewidth=1.5pt]{->}(2.6666,3.666)(4,4)}%
{\put(5.5,4.25){\makebox(0,0)[cc]{\footnotesize$(q_1^\prime,q_2^\prime)$ New 
Nash Equilibrium}}}%

{\put(7,3){\makebox(0,0)[cc]{\footnotesize$(q_1^\prime<q_1^*,q_2^\prime>q_2^*)$ 
}}}%

\end{pspicture}

\endTeXtoEPS

\end{pdfdisplay}
\end{center}

\end{document}

What is the expected output? What do you see instead?

expected output is a neat pstricks graphic, which is generated by using 
pdftricks. The expected output is attached in document.pdf which I obtain by 
simply running "pdflatex document.tex".  Instead, I see nothing when I run the 
above file in latex lab.

What version of the product are you using? On what browser?

i am using with google chrome and the latest regular version not dev. will try 
it also with the dev version.

Please provide any additional information below.

I use pstricks a lot but not in a very sophisticated way. I found out that I 
can keep using it and use pdflatex by using the pdftricks. It is rather simple 
modifications in the code which achieves the desired results. I tested the 
above code with my local texlive installation and it works. The issue maybe 
here that without the -shell-escape option one needs to call a script within 
the latex file. Which I believe is accomplished by

\input pst-eps
\TeXtoEPS
\SpecialCoor

.....

\endTeXtoEPS

Once you add these scipts everything works like a charm on my local 
installation. However, I am not sure when my file is sent to clsi server I am 
allowed to do these operations which the script runs. If one could include 
pstricks functionality by means of pdftricks in this manner, I believe it would 
be great. I would in fact move a lot of my latexing online to latexlabs. This 
is a great idea, and it works great with simple documents.  

Original issue reported on code.google.com by toker.fl...@gmail.com on 29 Nov 2010 at 10:24

Attachments: