I am using pdflatex to produce a .pdf file. But, it is not working when .eps files are compiled. I have tried it with XeLatex but, it is hanging out sometimes. Now I want to produce a .pdf file using two steps : latex -> dvips -> ps2pdf. I don't know how to use it. The location of my .tex file (i.e., Myfile.tex) is on the desktop and the system is Ubuntu11.04.
As for example :
\documentclass{book}
\usepackage{graphicx,epstopdf}
\begin{document}
Here some text
\begin{figure}[ht]
\begin{center}
\includegraphics[height=3.5cm,width=3cm,angle=0]{fig1}
\caption{First figure}
\end{center}
\end{figure}
Here some text
\end{document}
How can I do so?
\includegraphics{fig1}is good enough. add\usepackage{epstopdf}after\usepackage{graphicx}in preamble to make.epsfigures work withpdflatexfor TeXLive(2009). 2. In TeXLive 2012 it's done automatically (behind using epstopdf)without adding any package.xelatexhandles.epsnatively. 3. Have a look atHeiko Oberdiek's Answer to Graphics file extensions and their order of inclusion when not specified
– texenthusiast Jun 01 '13 at 05:50.epsgenerated ? Unless someone uses PSTricks,pdflatexshould work fine. 5. Note place yourfig1.epsand.texin same place/folder. 6. Which editor are you using runlatex filenamethendvips filenameandps2pdf filenamethere may be flags/options incase one wants to add inside editor configuration. – texenthusiast Jun 01 '13 at 05:54pdflatex -shell-escape filename. Please post all relevant/important information like this error inside the Q andfig.epsfile (dropbox) instead of comments so that it will be noticed by all and Q & A remains tidy and standalone. – texenthusiast Jun 01 '13 at 06:37