I want to include a jpg
to a LaTeX document, which I have done many times. Normally, I use put it in a figure environment, the code looks like this:
\documentclass[twoside]{article}
\usepackage{graphicx}
\begin{figure}
\includegraphics{myfig.jpg}
\end{figure}
When I try compiling this the document compiles, but no figure shows up. If I do not wrap the \includegraphics
in a figure environment then the pdf compiles with the image. I want the figure
environment, because I want to add captions/labels.
I can't figure out why this method does not work for this document, when it worked fine for other documents that I have made. The jpg
is saved in the same directory as my tex
file, so that is not the issue.
Any ideas?
pdflatex
? That is a requirement in order to include JPG files. – Werner May 22 '13 at 22:53\includegraphics
, but that should not cause the issue. Can you edit in the.log
file you get, in particular any warnings or errors? – Joseph Wright♦ May 23 '13 at 6:07