[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org a4a880d1f9 1/3: org-latex-default-packages-alist: R
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org a4a880d1f9 1/3: org-latex-default-packages-alist: Refine packages for font management |
Date: |
Mon, 29 Jan 2024 09:58:39 -0500 (EST) |
branch: externals/org
commit a4a880d1f99b353311309d6348d02b99b142b911
Author: Pedro A. Aranda Gutierrez <paaguti@gmail.com>
Commit: Ihor Radchenko <yantar92@posteo.net>
org-latex-default-packages-alist: Refine packages for font management
* lisp/org.el (org-latex-default-packages-alist): Change to refine
font management depending on the latex compiler.
Differentiate between pdflatex and lualatex/xetex
packages for font management. lualatex/xetex should use
fontspec instead of fontenc/inputenc. When using
fontspec, you need to load amsmath before fontspec
and you don't need amssymb.
---
lisp/org.el | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/lisp/org.el b/lisp/org.el
index 796545392a..7afb10766e 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -3421,15 +3421,21 @@ header, or they will be appended."
(default-value var)))
(defcustom org-latex-default-packages-alist
- '(("AUTO" "inputenc" t ("pdflatex"))
+ '(;; amsmath before fontspec for lualatex and xetex
+ ("" "amsmath" 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"))
("" "graphicx" t)
("" "longtable" nil)
("" "wrapfig" nil)
("" "rotating" nil)
("normalem" "ulem" t)
- ("" "amsmath" t)
- ("" "amssymb" t)
+ ;; amsmath and amssymb after inputenc/fontenc for pdflatex
+ ("" "amsmath" t ("pdflatex"))
+ ("" "amssymb" t ("pdflatex"))
("" "capt-of" nil)
("" "hyperref" nil))
"Alist of default packages to be inserted in the header.
@@ -3440,7 +3446,9 @@ 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 and character selection in lualatex and xetex
- inputenc, fontenc: for basic font and character selection
+ in pdflatex
- graphicx: for including images
- longtable: For multipage tables
- wrapfig: for figure placement