I'm writing a custom helper command for my beamer presentation:
\newcommand{\sectionfigure}[1]{
\begin{tikzpicture}[overlay, remember picture]
\node at ([shift={(0, 0.27925\paperheight)}] foot.north) {\includegraphics[height=0.37925\paperwidth]{#1}};
\end{tikzpicture}
}
with C-c C-n
and then C-c RET
, AUCTeX recognizes the command, but I would like to have it asking me an image path, like it does when inserting an includegraphic
macro. I placed
(TeX-add-style-hook "beamer"
(lambda ()
(TeX-add-symbols
'("sectionfigure" LaTeX-arg-includegraphics))))
in my init file, but it doesn't work. I suppose AUCTeX is overwriting it when it opens the file? How can I make this effective? Thanks!