Thread: LaTeX Question

  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    25

    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
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    pdflatex cannot handle EPS-files.

    You can convert the .DVI file to .PS with "dvips MyFile" and then to .PDF using "ps2pdf MyFile.ps"
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  3. #3
    Registered User
    Join Date
    Dec 2005
    Posts
    25
    Thank you very much, Sang-drax. Your suggestion indeed works!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 02:51 PM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM