TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can insert JPEG figures in publications, but when it comes the time to include PDF figures (I prefer them for graphics because of its vectorial nature) I cannot scale them properly.

I am using width=0.5\textwidth because I have two-column text format, but I guess there should be a more elegant method to adjust.

I also don't find any help for \includegraphics inside figure environment commands, like


Any link or help on this topic would be nice.

share|improve this question
You can use width=\columnwidth rather, since .5\textwidth is not exactly the same as the width of the column. Also, you should avoid using the file extension (like .pdf). graphicx defines a sequence of extensions it uses in preference order (see Choosing whether to include PDF or PNG in PDFLaTeX). – Werner Jul 13 '12 at 18:31
Thanks! I tried to not use .pdf, but it couldn't find the image. I will have a look to graphicx. – Jav_Rock Jul 13 '12 at 18:53
Another possibility is that the .pdf figures you are using might have some bad metadata. Try identify -verbose myfig.pdf and check if the image size is correct. – Paulo Cereda Jul 13 '12 at 18:55
up vote 6 down vote accepted

Use either \linewidth or \columnwidth. You can also use \centering before the \includegraphics if the image size is smaller than \linewidth.

enter image description here



\section{Higgs Boson}
\caption{Image A}

\caption{Image B}


Edit 3

We usually ignore the file extension for the sake of simplicity (we can change compiler easily later).

If you use pdflatex then the compiler will search for JPG, PNG, or PDF. If you use latex then the compiler will search for EPS. For xelatex, it will search for JPG, PNG, PDF, and EPS.

share|improve this answer
Perfect answer. Thanks. Is there a good tutorial or doc webpage where I can dig on this topic? I am writing paper and I want to manage graphics without losing much time. – Jav_Rock Jul 13 '12 at 18:56
@Jav_Rock: I think the theory above is sufficient unless you need more fancy image layout. – kiss my armpit Jul 13 '12 at 19:11
@Jav_Rock I like the inclusion of graphics in latex guide at ctan mirror.ctan.org/info/epslatex/english/epslatex.pdf Its the best and crisp on graphics magic – texenthusiast Oct 24 '12 at 22:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.