Find the answer to your Linux question:
Results 1 to 3 of 3
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} ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2004
    Posts
    94

    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. #2
    Linux Engineer
    Join Date
    Oct 2004
    Location
    Vancouver
    Posts
    1,366
    instead of running pdflatex, try directly converting the dvi with dvipdfm filename.dvi...For some reason, I get much better luck with that...are the results the same?
    Operating System: GNU Emacs

  3. #3
    Just Joined!
    Join Date
    Jul 2004
    Posts
    94
    Thank you very much, genesus. Your suggestion indeed works!

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •