I have been using Latex for a while now for mathematical stuff. I would like to include a graphic file (.jpg etc) into my document. I have managed to do this and then got it to appear in my file if I use latex--> dvi, but not for latex--> pdf.
Is there any way this can be done?
Graphics, Figures & Tables ⇒ getting a graphic to appear in pdf document
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: getting a graphic to appear in pdf document
How did you manage to do this? It should be the other way round: pdfTeX supports JPEG images in PDF mode, but not in DVI mode.
Re: getting a graphic to appear in pdf document
I put the following lines into my Latex file:
\begin{figure}[htbp]
\includegraphics{RTR8.03-75dpi.eps}
\end{figure}
Then I chose the option to generate a PDF file - result: all text is there but no graphic.
Choosing the option to generate a DVI file - result: text and graphic.
\begin{figure}[htbp]
\includegraphics{RTR8.03-75dpi.eps}
\end{figure}
Then I chose the option to generate a PDF file - result: all text is there but no graphic.
Choosing the option to generate a DVI file - result: text and graphic.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
getting a graphic to appear in pdf document
In your initial post you spoke about JPG files included in a DVI output. Now you provide a code snippet that shows an EPS file included. This is a contradiction. EPS is not accepted by pdflatex and you should get corresponding warnings in the log file about files that could not be found. You can convert EPS files to PDF with the command line tool epstopdf or "on the fly" with the epstopdf package. But this is only worth if the EPS files are originated in this vector format (i. e. by a software). You can find more about converting between different formats by using the search function of the forum.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: getting a graphic to appear in pdf document
Apologies for the mix up. Thanks very much for the information.