Browse Source

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").
TEC 2 years ago
parent
commit
5766ddd758
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lisp/ox-latex.el

+ 1 - 0
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)