branch: main commit c5a574aa65090f6758f1bd38765c5154a4451a7a Author: Arash Esbati <ar...@gnu.org> Commit: Arash Esbati <ar...@gnu.org>
* doc/auctex.texi (Floats): Document `LaTeX-listing-label'. --- doc/auctex.texi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/auctex.texi b/doc/auctex.texi index aff25d90..53bb94bd 100644 --- a/doc/auctex.texi +++ b/doc/auctex.texi @@ -1068,6 +1068,7 @@ The label of this float. The label will have a default prefix, which is controlled by the variables @code{LaTeX-figure-label} and @code{LaTeX-table-label}. @vindex LaTeX-figure-label +@vindex LaTeX-listing-label @vindex LaTeX-table-label @cindex Prefix for labels @cindex Label prefix @@ -1100,6 +1101,16 @@ Number of chars a caption should be before prompting for a short caption. @end defopt +It is also possible to have a caption and label in non-floating listing +environments like in @samp{lstlisting} environment provided by the +@samp{listings} package, or user defined listing floats defined with the +@samp{newfloat} package. Such labels are prefixed with the value of +@code{LaTeX-listing-label}. + +@defopt LaTeX-listing-label +Prefix to use for listing labels. +@end defopt + @node Itemize-like @subsection Itemize-like Environments @cindex Itemize