Graphics, Figures & Tables ⇒ EPS and JPG files in same document
-
- Posts: 2
- Joined: Tue Apr 21, 2009 12:37 am
EPS and JPG files in same document
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.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
Re: EPS and JPG files in same document
By the way, if you want to centre graphics use \centering, not \begin{center} as the later adds extra whitespace.