A LaTeX Error Caused by the graphics Package — Argument of \Gin@iii has an extra } (Use graphicx Package Instead to Solve)

Oct. 21, 2025 in Buffalo, United States • Updated Oct. 21, 2025

When writing blog1, I found an error caused by the LaTeX graphics package:

1
doc.tex: error: 10: Argument of \Gin@iii has an extra }. ...cludegraphics[width=\linewidth]{fig1.jpg}}

and I imported the graphicx package instead to solve this problem. These two packages are sort of different, although both of them are to display figures, and graphicx is preferred2:

graphicx is an extension of graphics. Moreover, while graphics sticks to the original TeX conventions concerning arguments, graphicx allows optional arguments according to the more transparent key=value scheme.

References