0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-07-16 13:46:27 +00:00

* lisp/ox-latex.el: Document some undocumented function arguments

(org-latex-generate-engraved-preamble):
(org-latex--remove-packages): Document INFO argument.
This commit is contained in:
Ihor Radchenko 2023-11-18 13:18:53 +02:00
parent ad1aff1722
commit bfa4f9d5aa
No known key found for this signature in database
GPG key ID: 6470762A7DA11D8B

View file

@ -1309,8 +1309,8 @@ used. When nil, no theme is applied."
(defun org-latex-generate-engraved-preamble (info) (defun org-latex-generate-engraved-preamble (info)
"Generate the preamble to setup engraved code. "Generate the preamble to setup engraved code.
The result is constructed from the :latex-engraved-preamble and The result is constructed from the :latex-engraved-preamble and
:latex-engraved-options export options, the default values of :latex-engraved-options export options (passed via INFO plist), the
which are given by `org-latex-engraved-preamble' and default values of which are given by `org-latex-engraved-preamble' and
`org-latex-engraved-options' respectively." `org-latex-engraved-options' respectively."
(let* ((engraved-options (let* ((engraved-options
(plist-get info :latex-engraved-options)) (plist-get info :latex-engraved-options))
@ -1782,6 +1782,8 @@ and `org-latex-default-packages-alist'. If the fourth argument
of a package is neither nil nor a member of the LaTeX compiler of a package is neither nil nor a member of the LaTeX compiler
associated to the document, the package is removed. associated to the document, the package is removed.
LaTeX compiler is defined in :latex-compiler INFO plist entry.
Return new list of packages." Return new list of packages."
(let ((compiler (or (plist-get info :latex-compiler) ""))) (let ((compiler (or (plist-get info :latex-compiler) "")))
(if (not (member-ignore-case compiler org-latex-compilers)) pkg-alist (if (not (member-ignore-case compiler org-latex-compilers)) pkg-alist