Rens Oliemans <[email protected]> writes:
> Thanks, but I can't get this to work. I hit Apply and Save,
I tested it, but only hit 'Apply' since I didn't want to save the
variable permanently. That shouldn't make a difference, though.
> but also after restarting Emacs and calling
> (reftex-compile-variables),
Calling `reftex-compile-variables' shouldn't be necessary, but that
isn't the issue as well.
> RefTeX can't find the lstinputlistings. For good measure, here's the
> screenshot of my current customize buffer:
Here is what I see in my testing after hitting 'C-c C-m ref RET SPACE':
Selecting the label in *RefTeX Select* buffer enters the label in my
.tex file, so it works here.
> And this is now the value of reftex-label-regexps:
>
> '("\\\\label{\\(?1:[^}]*\\)}"
> "\\\\\\(?:begin[[:space:]]*{\\(?:d\\(?:array\\|group\\|math\\|series\\)\\|frame\\|lstlisting\\)}[[:space:]]*\\|\\(?:ctable\\|lstinputlisting\\)\\)\\[[^][]*\\(?:{[^}{]*\\(?:{[^}{]*\\(?:{[^}{]*}[^}{]*\\)*}[^}{]*\\)*}[^][]*\\)*\\<label[[:space:]]*=[[:space:]]*{?\\(?1:[^]
> ,}
> \n %]+\\)[^]]*\\]")
I get the same result.
> Still, (reftex-reference) can't find the other label, also after a rescan.
Strange. Which version of Emacs are you using, and how did you install
AUCTeX?
Best, Arash