TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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 am trying to compose an exam with a figure as part of the question. However, I am having trouble using the standard \includegraphics command with pdflatex. I can not specify the arguments to \includegraphics in the square brackets. If I remove the square bracket (optional arguments), then it compiles without issue. I've tried wrapping it in the \fullwidth{} command to no avail.

Here is a minimal example:

\question[] True/False questions.
\part[2] True or False.\vspace*{1in}
An image:

share|improve this question
A general comment: Using \linewidth instead of \textwidth might be more appropriate. The reason for this is that \textwidth may be fixed across your entire document, while \linewidth may vary, depending on the environment you're in. For example, in enumerate or itemize (typical for question-style documents like an examination), the \linewidth is smaller than \textwidth (due to the added indent). This leads to a better horizontal fit on the page. – Werner Oct 1 '11 at 0:02
up vote 11 down vote accepted

You are loading the wrong package: it's not graphics, but graphicx

There's no need to use a figure environment: center or flushleft will do as well (but none of them is really necessary). Just think to the graphic object as a big character.

share|improve this answer

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.