I want to do the following:
- Make an image using
gastex. - Compile the image to a stand-alone pdf image. I.e., at the end of this stage I'll have a
myImage.pdffile. - Include my image in a large latex file.
The idea is that I like working with gastex but I want to compile my latex file with pdflatex. (I know there is a new feature of compiling gastex with pdflatex but I can't make it work so I prefer going this way.)
The problem with step (2) is that I don't know what should be the documentclass I should use. E.g., using \documentclass{article} produces a A4 page with the image on it. I want the file to contain only the image. Also, maybe there a way to do this with \documentclass{article} and with playing with the page sizes?
For some reason standalone doesn't work for me. This code passes latex but dvipdf crashes on it:
\documentclass{standalone}
\usepackage{gastex}
\begin{document}
\begin{picture}(100,10)(0,0)
\setlength{\unitlength}{3.5pt}
\gasset{Nw=5,Nh=5} %nWidth nHeight
\node[Nmarks=i,iangle=90](A1)(5,0){$s_1$}
\node(A2)(15,0){$s_2$}
\end{picture}
\end{document}


standaloneclass. Can you give a simple example of a picture file? – egreg Jun 10 '12 at 10:41dvipdfmwithgastex, onlylatex+dvips+ps2pdf– egreg Jun 10 '12 at 11:13latex+dvipdfand it works. Usinglatex+dvips+ps2pdfdoesn't work on this code as well. (Fails in the last step) – Guy Jun 10 '12 at 11:14standalonepersist, you could always usearticle(don't forget\pagestyle{empty}) and postprocess withpdfcrop. – Stephan Lehmke Jun 10 '12 at 11:25standalonecan be sorted out, that would be much preferrable... – Stephan Lehmke Jun 10 '12 at 14:22standalone? – Stephan Lehmke Jun 10 '12 at 14:44