branch: externals/org
commit 5766ddd758f6c2b498ddf4fb79f20f01a09674cc
Author: TEC <t...@tecosaur.com>
Commit: TEC <t...@tecosaur.com>

    ox-latex: Prefix lst: to source block labels
    
    * lisp/ox-latex.el (org-latex--label): Use the "lst:" prefix when
    generating source block labels ("lst" contracted from "listing").
---
 lisp/ox-latex.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 29543f8e9b..998f2238d2 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -1554,6 +1554,7 @@ Eventually, if FULL is non-nil, wrap label within 
\"\\label{}\"."
                           (`paragraph
                            (and (org-element-property :caption datum)
                                 "fig:"))
+                           (`src-block "lst:")
                           (_ nil))
                         (org-export-get-reference datum info))))))
     (cond ((not full) label)

Reply via email to