* 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
1 changed files with 4 additions and 2 deletions

View File

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