I'd like to create a PDF file which, for now, contains only the image output I've generated in stata.
The images are all located in a folder called \network\location and all follow a common naming convention, file1,file2,...,filen.
The latex engine i want to use is pdfLaTex within Teworks.
I've written the following code to generate the file via pdflatex, but the process bombs before completion. The specific error message is "Missing $ inserted, $
Any input would be greatly appreciated.
\documentclass{article}
\usepackage{graphicx}
\usepackage{pgffor}
\begin{document}
\begin{figure}
\foreach\x in {1,2,...,10}{%
\includegraphics[height=5.4cm]{//network/location/file\x}
}
\end{figure}
\end{document}
Thanks for any help.
//network/...and not justnetwork/...? – Werner Jan 09 '14 at 21:34latex>dvips>ps2pdfas the compilation sequence, notpdflatex. The latter cannot include EPS images. Or you could convert the images from EPS to PDF first, then run withpdflatex, or convert on-the-fly using theepstopdfpackage (\usepackage{epstopdf}, EPS figures withpdflatex). – Werner Jan 09 '14 at 21:38.auxbefore generating a new.log. – Werner Jan 09 '14 at 21:56I solved the eps issue by using the epstopdf package
– user43885 Jan 09 '14 at 21:57