Explorar o código

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 %!s(int64=3) %!d(string=hai) anos
pai
achega
5766ddd758
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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)