Arash Esbati <[email protected]> writes: > I admit this is also what I did, i.e., hitting ' ' for all labels and > not 'l', but you're right. In theory, it should be enough to do this in > your init file: > > --8<---------------cut here---------------start------------->8--- > (setq reftex-label-alist > '(("\\lstinputlisting[]{}" ?l "lst:" "~\\ref{%s}" 2 > (regexp "[Ll]isting")))) > --8<---------------cut here---------------end--------------->8--- > > But I couldn't get it working, can't tell why.
Wow, I'll take a closer look at reftex-label-alist, I don't fully understand that docstring yet. > Delete the last form and try something like this: > > (use-package reftex > :hook > ((LaTeX-mode Texinfo-mode) . turn-on-reftex) > :custom > (reftex-plug-into-AUCTeX t)) > > This should activate RefTeX properly inside AUCTeX. Thanks, now it works as expected. Best, Rens
