Hi all,
I've been trying to include 1 jpg image in a document, which has several eps images throughout.
I am using:
1) Using dvips to compile (not falling into the pdflatex trap)
2) Using packages: \usepackage{epsfig} and \usepackage{graphicx}
3) The following code is used:
\begin{figure}[h!]
\begin{center}
\includegraphics[height=7cm]{diagram.jpg}
\caption{\textrm{\normalsize{test3}}}
\label{fig:test3}
\end{center}
\end{figure}
All that appears is square of white space, slightly offset.
Any help would be greatly appreciated. Thank you.
Graphics, Figures & Tables ⇒ EPS and JPG files in same document
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
Re: EPS and JPG files in same document
You have to either convert the JPG to EPS and use LaTeX, of the EPS files to PDF and use pdfLaTeX. There are tools for both routes, for example you could use epspdf to convert all of the EPS files, or use the eps2pdf package to do it "on the fly".
By the way, if you want to centre graphics use \centering, not \begin{center} as the later adds extra whitespace.
By the way, if you want to centre graphics use \centering, not \begin{center} as the later adds extra whitespace.
Joseph Wright