I have the following:



 \caption{(a) ...
 (b) ....

And cursor shows the error says:

Argument of \Gin@iii has an extra }

Why I cannot add png or jpg? it is working with pdf. I tried graphicx but it does not work either!

  • 1
    The key value syntax is only supported by package graphicx, not graphics. Commented Jun 29, 2015 at 13:39
  • but i did try graphicx and it does not work as i said before
    – meva
    Commented Jun 29, 2015 at 13:40
  • Did you compile it with latex or pdflatex? The former does not support png and jpg.
    – crixstox
    Commented Jun 29, 2015 at 13:41
  • there is just latex option. How can i change it to pdflatex?
    – meva
    Commented Jun 29, 2015 at 13:44

1 Answer 1


The syntax with key value options:


is added by package graphicx, therefore the package needs to be loaded:


Then it depends on the driver, which graphics types are supported. PNG is supporte by pdfTeX, thus it works with pdflatex.

In case of dvips, you can convert the PNG file to EPS, e.g. using ImageMagicks' convert.

Then it is convenient to omit the extension:


Then pdflatex will find the .png file and latex/dvips will use the .eps file.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .