On Nov 09, 2023 Arash Esbati <ar...@gnu.org> wrote: > Thanks, now I understand what's happening. beamer.el contain these > lines: > > '("includegraphics" [TeX-arg-beamer-overlay-spec] > [TeX-arg-key-val (LaTeX-graphicx-key-val-options) nil nil ?\s] > LaTeX-arg-includegraphics) > > So it overrules the definition in graphicx.el by adding one more > optional argument which you see as '(Optional) Overlay:'. Now you hit > return and this means that the optional argument is rejected. With the > setup below: > >> Its value is `'show-optional-args''. > > You are not asked for the next optional argument which can contain > 'width', and that's what you're looking for. So you can set > `TeX-insert-macro-default-style' to `show-all-optional-args' and try it > again.
Perfect, it did the trick. Thanks a lot Arash. Kourosh