On 2026-05-17 03:33, Pedro Andres Aranda Gutierrez wrote:
> [X] I use org-mode and export documents to pdf using latex
> [ ] I use org-mode and export presentations to pdf using latex
> [X] My LaTeX compiler is pdflatex
> [X] My LaTeX compiler is lualatex
> [X] My LaTeX compiler is xelatex

These days I’m trying to produce mostly [tagged PDFs], which only
works with pdfLaTeX or luaLaTeX, so I’m using xeLaTeX much less.  To
get ‘DocumentMetadata’ to work I use ‘LATEX_CLASS_PRE’ (usually in an
‘INCLUDE’d file), e.g.

#+TITLE: Document
#+LATEX_COMPILER: lualatex
#+LATEX_CLASS_PRE: \DocumentMetadata{
#+LATEX_CLASS_PRE:   lang=en-CA,
#+LATEX_CLASS_PRE:   pdfstandard=UA-2,
#+LATEX_CLASS_PRE:   tagging=on,
#+LATEX_CLASS_PRE:   tagging-setup={math/setup=mathml-SE}
#+LATEX_CLASS_PRE: }

#+begin_src emacs-lisp
setopt org-latex-default-packages-alist nil
       org-latex-hyperref-template nil)
#+end_src

* Heading

Some math:

\[ e \simeq \frac{1}{4} + \left(s - \frac{1}{2}\right)^2. \]

> [ ] I use babel to control my fonts
> --8<--
> [ ] I use polyglossia

I only do some ‘fontspec’- and ‘unicode-math’-related tweaking.

Thanks for maintaining this Pedro!

[tagged PDFs] <https://latex3.github.io/tagging-project/>
<https://latex3.github.io/tagging-project/documentation/usage-instructions>

Best,

-- 
Jacob S. Gordon
[email protected]
Please don’t send me HTML emails or MS Office/Apple iWork documents.
https://useplaintext.email/#etiquette
https://www.fsf.org/campaigns/opendocument

Reply via email to