auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] [elpa] externals/auctex c5d1d02 13/36: Append entry to `L


From: Tassilo Horn
Subject: [AUCTeX-diffs] [elpa] externals/auctex c5d1d02 13/36: Append entry to `LaTeX-label-alist' for new "verbatim" floats
Date: Thu, 22 Dec 2016 13:08:11 +0000 (UTC)

branch: externals/auctex
commit c5d1d02443095721e292e5b383b3db73fb2a1624
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>

    Append entry to `LaTeX-label-alist' for new "verbatim" floats
    
    * style/newfloat.el (LaTeX-newfloat-auto-cleanup): Append an entry
    for parsed environments of "verbatim" type to `LaTeX-label-alist'.
---
 style/newfloat.el |    1 +
 1 file changed, 1 insertion(+)

diff --git a/style/newfloat.el b/style/newfloat.el
index e84fad7..166eff5 100644
--- a/style/newfloat.el
+++ b/style/newfloat.el
@@ -119,6 +119,7 @@ If `caption.el' is loaded, add the new floating environment 
to
             (LaTeX-add-environments flt)
             (add-to-list (make-local-variable 'LaTeX-indent-environment-list)
                          `(,flt current-indentation) t)
+            (add-to-list 'LaTeX-label-alist `(,flt . "lst:") t)
             (when (fboundp 'reftex-add-label-environments)
               (reftex-add-label-environments
                `((,flt ?l "lst:" "~\ref{%s}" caption nil nil)))))



reply via email to

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