Hi, Here you are. I hope the couple of words suffice ;-)
Best, /PA On Fri, 26 Jan 2024 at 14:25, Ihor Radchenko <yanta...@posteo.net> wrote: > "Pedro A. Aranda" <paag...@gmail.com> writes: > > > I've been reading a bit. What I propose is an alternative way to handle > > all the tricky parts of font and character handling with fontspec in > > lualatex and xetex. This package restricts the use of the ams* packages > > to pdflatex, because fontenc handles that internally and produces > > package collisions. > > > Attached is the final version of the patch. > > Thanks! > May you also add a comment to the code explaining the rationale right > there? > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > 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 Headaches with a Juju log: unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run a leader-deposed hook here, but we can't yet
From cc6ea05f1fc31aafb3db737bf033086422aa770f Mon Sep 17 00:00:00 2001 From: "Pedro A. Aranda" <paag...@gmail.com> Date: Fri, 26 Jan 2024 18:46:14 +0100 Subject: [PATCH] Refine font management for lualatex and xetex --- lisp/org.el | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) lisp/org.el: Use fontspec for lualatex and xetex in org-latex-default-packages-alist diff --git a/lisp/org.el b/lisp/org.el index 796545392..24ef515f9 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -3421,15 +3421,17 @@ header, or they will be appended." (default-value var))) (defcustom org-latex-default-packages-alist - '(("AUTO" "inputenc" t ("pdflatex")) + '(("" "amsmath" t ("lualatex" "xetex")) + ("" "fontspec" t ("lualatex" "xetex")) + ("AUTO" "inputenc" t ("pdflatex")) ("T1" "fontenc" t ("pdflatex")) ("" "graphicx" t) ("" "longtable" nil) ("" "wrapfig" nil) ("" "rotating" nil) ("normalem" "ulem" t) - ("" "amsmath" t) - ("" "amssymb" t) + ("" "amsmath" t ("pdflatex")) + ("" "amssymb" t ("pdflatex")) ("" "capt-of" nil) ("" "hyperref" nil)) "Alist of default packages to be inserted in the header. @@ -3440,6 +3442,8 @@ incompatibility with another package you are using. The packages in this list are needed by one part or another of Org mode to function properly: +- fontspec: for font ans character selection in lualatex and xetex + if you use fontspec, you need to add amsmath /before/ - inputenc, fontenc: for basic font and character selection - graphicx: for including images - longtable: For multipage tables -- 2.34.1