# LaTeX Question

This is a discussion on LaTeX Question within the Tech Board forums, part of the Community Boards category; I have a strange problem. I would like to include a figure in my PDF file, and my LaTeX source ...

1. ## LaTeX Question

I have a strange problem. I would like to include a figure in my PDF file, and my LaTeX source looks like this:

Code:
\begin{figure}[htbp]
\begin{center}
\includegraphics[width=0.8\textwidth]{FCM_1.eps}
\end{center}
\caption{My Caption}
\end{figure}
Then I run the command

\$ latex MyFile.tex

which returns MyFile.dvi. I can view the figure in the dvi file (using xdvi), but when I run pdflatex to convert the file into a PDF file I cannot see any diagram in the final PDF output, even though the compilation proceeds without error.

Can someone please tell me what is going on here?

2. pdflatex cannot handle EPS-files.

You can convert the .DVI file to .PS with "dvips MyFile" and then to .PDF using "ps2pdf MyFile.ps"

3. Thank you very much, Sang-drax. Your suggestion indeed works!