Using GNU Emacs 26.3, I have a tex file with \usepackage{graphicx} and AUCTeX enabled. However, inserting a includegraphics macro does not prompt for the optional arguments defined in graphicx.el LaTeX-graphicx-key-val-options but only for llx, lly and urx, ury.

Any ideas on how to debug the wrong behavior?

  • Updating auctex solved the issue.
    – Somebody
    Commented Feb 2, 2021 at 16:40

1 Answer 1


graphicx.el has this entry for includegraphics:

'("includegraphics" (TeX-arg-conditional (member "graphics" (TeX-style-list))
                                         (["llx,lly"] ["urx,ury"])
                                         ([ LaTeX-arg-graphicx-includegraphics-key-val ]))

I suspect you're also loading the graphics package besides graphicx in your .tex file.

  • Unfortunately I don't. I tested with a minimal .tex which exclusively uses graphicx and emacs -q.
    – Somebody
    Commented Jan 20, 2021 at 19:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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