Hi Ihor,
It works perfectly on pdflatex, but when using lualatex, the file didn't
generate a PDF because lualatex chokes at unicode-math.
To fix the issue for lualatex and pdflatex, apply following on master:
-- cut here --
diff --git a/lisp/org.el b/lisp/org.el
index 5ea608bdb..446204985 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -3570,10 +3570,12 @@ header, or they will be appended."
(default-value var)))
(defcustom org-latex-default-packages-alist
- '(;; fontspec and unicode-math for lualatex and xelatex
+ '(;; fontspec and unicode-math for xelatex (FIXME: FFS)
+ ;; fontspec and lualatex-math for lualatex
;; Will be included in FONTSPEC
("" "fontspec" t ("lualatex" "xelatex"))
- ("" "unicode-math" t ("lualatex" "xelatex"))
+ ("" "lualatex-math" t ("lualatex"))
+ ("" "unicode-math" t ("xelatex"))
;; inputenc, fontenc and are for pdflatex only
;; Will be included by FONTSPEC
;; ("AUTO" "inputenc" t ("pdflatex")) ;;
https://tug.org/TUGboat/tb39-1/tb121ltnews28.pdf
-- cut here --
FFS: How to proceed with xelatex. FTMB we keep unicode-math there
It is part of a larger solution for the feature branch.
Best, /PA
On Sun, 16 Nov 2025 at 08:04, Ihor Radchenko <[email protected]> wrote:
> Pedro Andres Aranda Gutierrez <[email protected]> writes:
>
> > The workaround works for pdflatex but will not work with lualatex as
> shown
> > above...
> > What would we do? A warning?
>
> Could you please elaborate about which bug you are talking about?
>
> --
> 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>
>
--
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler
"Sagen's Paradeiser" (ORF: Als Radiohören gefährlich war) => write BE!
Year 1 of the New Koprocracy