1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-12-11 09:20:32 +00:00

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").
This commit is contained in:
TEC 2022-05-11 21:50:36 +08:00
parent 2cb62c0798
commit 5766ddd758
No known key found for this signature in database
GPG Key ID: 779591AFDB81F06C

View File

@ -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)