Graphics, Figures & Tablespst-pdf and gastex

Information and discussion about graphics, figures & tables in LaTeX documents.
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

pst-pdf and gastex

Post by CrazyHorse »

benti wrote:
CrazyHorse wrote:
pst-pdf works with _every_ package

Herbert
Unfortunately not quite true, Herbert. It _really_ doesn't work with gastex. Unless you have a solution for the problem alluded to in the OP, in which case you have my thanks in advance.
See my example above, which works with autp-pst-pdf _and_ gastex
and, of course, with pst-pdf.

Herbert

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

benti
Posts: 42
Joined: Fri Mar 06, 2009 4:51 pm

Re: pst-pdf and gastex

Post by benti »

Initially overlooked that reply, stupid. Apologies Herbert.

Nevertheless, my problem remains: I'm undoubtedly doing something wrong, but it still doesn't work. pdftexk complains about the shell-escape option not being enabled; at the same time, the very first line of the log says "\write18 enabled".

Only progress so far seems to me that I progressed from it being a tex-related problem to it being a texniccenter-related problem :)
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

pst-pdf and gastex

Post by CrazyHorse »

benti wrote:Initially overlooked that reply, stupid. Apologies Herbert.

Nevertheless, my problem remains: I'm undoubtedly doing something wrong, but it still doesn't work. pdftexk complains about the shell-escape option not being enabled; at the same time, the very first line of the log says "\write18 enabled".

Only progress so far seems to me that I progressed from it being a tex-related problem to it being a texniccenter-related problem :)
get one of the TeXnicCenter output profile from the
site I mentioned. And there is the important line
\special{header=gastex.pro} in my example. gastex is
_not_ a PSTricks related package, the reason why you have
to load the dvips prolougue by yourself.

Herbert
benti
Posts: 42
Joined: Fri Mar 06, 2009 4:51 pm

pst-pdf and gastex

Post by benti »

Did that, now; a different problem results.

An intermediate FILENAME-autopp.pdf is created that shows the automaton all right; but it isn't inserted in the main output document. In the compilation log, pst-pdf is complaining that it can't find the file (see attachment)

Making slow progress, it seems; could you help once more?

thanks,
Niels
gastex_prob.log
compilation log of last run
(10.96 KiB) Downloaded 295 times
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

pst-pdf and gastex

Post by CrazyHorse »

benti wrote:Did that, now; a different problem results.

An intermediate FILENAME-autopp.pdf is created that shows the automaton all right; but it isn't inserted in the main output document. In the compilation log, pst-pdf is complaining that it can't find the file (see attachment)

Making slow progress, it seems; could you help once more?

thanks,
Niels
gastex_prob.log
sieht so aus, als hättest du kein pdfcrop installiert, was eigentlich bei
MiKTeX dabei sein sollte.

> system(dvips -Ppdf -o "gastex_prob-autopp.ps" "gastex_prob-autopp.dvi")...executed.
> system(ps2pdf "gastex_prob-autopp.ps" "gastex_prob-autopp.pdf")...executed.
> system(pdfcrop "gastex_prob-autopp.pdf" "gastex_prob-pics.pdf")...executed.
>
> Package auto-pst-pdf Warning:
> Creation of gastex_prob-pics.pdf failed.

Herbert
benti
Posts: 42
Joined: Fri Mar 06, 2009 4:51 pm

Re: pst-pdf and gastex

Post by benti »

well, it's properly located in the directory where Miktex stores its binaries. Shouldn't it be able to call pdfcrop by itself? Or is there something _I_ should do?
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

pst-pdf and gastex

Post by CrazyHorse »

benti wrote:well, it's properly located in the directory where Miktex stores its binaries. Shouldn't it be able to call pdfcrop by itself? Or is there something _I_ should do?
I'll have a look in the evening, when I have access to MiKTeX,
working with Linux is a bit easier ... ;-)

Herbert
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

pst-pdf and gastex

Post by CrazyHorse »

I just run it with TexmakerX, where I inserted for the pdflatex run
the option --enable-write18 and current miktex2.7 and got no errors
with this programm:

Code: Select all

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{gastex}
\usepackage{auto-pst-pdf}
\usepackage{microtype}

\begin{document}

\begin{center}
\begin{postscript}
\special{header=gastex.pro}
\fbox{%
\begin{picture}(85,33)(-20,-28)
%\put(-20,-28){\framebox(85,33){}}
  \gasset{Nadjust=w,Nadjustdist=2,Nh=6,Nmr=1}
  \node[Nmarks=i](A)(0,0){idle}
  \node(B)(50,0){wait}
  \node(C)(50,-20){wait}
  \node[Nmarks=r](D)(0,-20){critical}

  \drawedge(A,B){req1:=true}
  \drawedge(B,C){turn:=2}
  \drawedge[syo=-1,eyo=-1](C,D){turn=1?}
  \drawedge[syo=1,eyo=1,ELside=r](C,D){req2=false?}
  \drawedge(D,A){req1:=false}
\end{picture}}
\end{postscript}
\end{center}

\end{document}
Herbert
benti
Posts: 42
Joined: Fri Mar 06, 2009 4:51 pm

Re: pst-pdf and gastex

Post by benti »

Hey Herbert,

No matter what I try, it doesn't work. Compilation goes wrong at the point where auto-pst-pdf loads the ifplatform package; there it starts to complain that I haven't enabled write18/shell-escape (which is quite untrue). I tried texniccenter output profiles with either, all to no avail. Tried with the [crop=off] switch because of your earlier reply --> no improvement.

G*d, this sucks! Next person who tells me how easy TeX is, is really in for it... It's especially frustrating because it doesn't seem to cause any trouble at your end. Took the time to clear out my miktex installation, install texlive, do it all again... pointless. Funny thing is that it doesn't appear to be an installation-related problem, because it didn't work in the office, and it doesn't work at home.

Could you pretty please try to come up with another possible cause? I'm at the point right now where I just want to crack this one.

thanks,
Niels
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Re: pst-pdf and gastex

Post by CrazyHorse »

install TeXmakerX, put under options->Texmaker --enable-write18
to the pdflatex field and then run pdflatex.

what happens?

Herbert
Post Reply