This should be the good one. Apologies... /PA
On Wed, 23 Apr 2025 at 18:00, Ihor Radchenko <yanta...@posteo.net> wrote: > Pedro Andres Aranda Gutierrez <paag...@gmail.com> writes: > > > No, you suggested to use unicode-math for xetex and lualatex and it is > > fine with me. > > But the patch you submitted still has > > + ("" "mathspec" t ("xetex")) > + ("" "unicode-math" t ("lualatex")) > > -- > 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, write BE! Year 1 of the New Koprocracy
From ddc064078c5348cfb61924f545e8f4ba93ccd84d Mon Sep 17 00:00:00 2001 From: "Pedro A. Aranda" <paag...@gmail.com> Date: Wed, 23 Apr 2025 17:31:17 +0200 Subject: [PATCH] Update org-latex-default-packages-alist * lisp/org.el: org-latex-default-packages-alist uses the same packages as pandoc. It seems a well-accepted standard for fonts when exporting to any LaTeX flavour. XeTeX and LuaLaTeX use ~unicode-math~. Added ~textcomp~ for PDFLaTeX. Link: https://lists.gnu.org/archive/html/emacs-orgmode/2025-04/msg00335.html --- etc/ORG-NEWS | 6 ++++++ lisp/org.el | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index 43ef7fd2d..5cd069a3e 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -133,6 +133,12 @@ to your configuration. The new behaviour follows general babel backend rules (auto-detecting result type), but may affect the existing usage. +*** Font management for =pdflatex=, =lualatex= and =xetex= + +Exporting lo LaTeX and Beamer is closer to [[https://github.com/jgm/pandoc/blob/main/data/templates/fonts.latex][~pandoc~ conventions]]. +~lualatex~ use packages ~unicode-math~ and ~fontspec~. You may need to +fine-tune your mathematical expressions. + ** New features # We list the most important features, and the features that may diff --git a/lisp/org.el b/lisp/org.el index 78e8c0692..5bcf64ed0 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -3533,13 +3533,14 @@ header, or they will be appended." (default-value var))) (defcustom org-latex-default-packages-alist - '(;; amsmath before fontspec for lualatex and xetex - ("" "amsmath" t ("lualatex" "xetex")) + '(;; unicode-math before fontspec for lualatex and xetex + ("" "unicode-math" t ("lualatex" "xetex")) ;; fontspec ASAP for lualatex and xetex ("" "fontspec" t ("lualatex" "xetex")) ;; inputenc and fontenc are for pdflatex only ("AUTO" "inputenc" t ("pdflatex")) ("T1" "fontenc" t ("pdflatex")) + ("" "textcomp" t ("pdflatex")) ;; to provide Euro et.al. ("" "graphicx" t) ("" "longtable" nil) ("" "wrapfig" nil) -- 2.34.1