org-latex--caption/label-string: Add comment

This commit is contained in:
Ihor Radchenko 2024-04-10 16:36:10 +03:00
parent 78e9dd0c42
commit 093b21c8c3
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 5 additions and 0 deletions

View File

@ -1612,6 +1612,11 @@ For non-floats, see `org-latex--wrap-label'."
(let ((type* (if (eq type 'latex-environment) (let ((type* (if (eq type 'latex-environment)
(org-latex--environment-type element) (org-latex--environment-type element)
type))) type)))
;; \captionof{%s}
;; %s must be a registered LaTeX environment.
;; figure is always there, while listing is defined by
;; additional packages.
;; See https://list.orgmode.org/orgmode/87twtovkjh.fsf@gmx.us/
(if nonfloat (if nonfloat
(cl-case type* (cl-case type*
(paragraph "figure") (paragraph "figure")