Pedro Andres Aranda Gutierrez <[email protected]> writes:
> After checking the documentation, DocumentMetadata can be used with any
> LaTeX compilers.
Thanks!
> Subject: [PATCH] ox-latex.el: Add DocumentMetadata
>
> * doc/org-manual.org: Document LATEX_METADATA keyword.
> * etc/ORG-NEWS: Announce new LATEX_METADATA keyword.
> * lisp/ox-latex.el : (org-latex--make-template-from-info) function.
That is org-latex--make-template-from-info?
> (org-latex-doc-metadata): New variable to hold the default document
> metadata.
Why not simply org-latex-metadata?
> +(defcustom org-latex-doc-metadata nil
> + "A string with the document metadata.
> +
> +These metadata can be used to add additional information in the PDF
*This.
Also "add additional"?
> +to make it usable by onscreen readers and similar applications.
*screen readers
> +This string will be inserted into a \"\\DocumentMetadata{}\" command
> +at the beginning of the generated LaTeX.
This is a bit strange.
Maybe,
The value will be added at the beginning of the generated LaTeX as
\\DocumentMetadata{<value>}
> +Alternatively you can use LATEX_CLASS_PRE, but you will have to write
> +the complete LaTeX command as \"\\DocumentMetadata{...}\" yourself."
Maybe we should not mention this or even explicitly discourage.
Especially if the plan is augmenting the value in ox-beamer.
Also, should we check if the preamble contains duplicate
DocumentMetadata commands and warn?
> + :version "31.1"
This is not needed. Just :package-version.
--
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>