auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] RefTeX with lstnewenvironment


From: Ralf Angeli
Subject: Re: [AUCTeX] RefTeX with lstnewenvironment
Date: Tue, 02 Jun 2009 19:08:44 +0200

* Jan Schaumloeffel (2009-06-02) writes:

> This works when called like this:
>
> \begin{code}{caption}{label}
>   fac 1     = 1
>   fac (n+1) = n * fac n
> \end{code}
>
> Now I'd like to have the label show up in RefTeX's TOC, so I customized
> reftex-label-alist:
>
> (custom-set-variables
> ...
>  '(reftex-label-alist (quote (("code" 108 "lst:" "~\\ref{%s}"
> "\\\\begin{code}{.*}{" ("Listing")))))
> ...)
>
> This does not work, the labels do not show up in the TOC.
> Any pointers on how to fix it?

Perhaps the suggestion in
<URL:http://mid.gmane.org/871wfll104.fsf%40neutrino.caeruleus.net>
helps?

-- 
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]