Add fontspec to org-latex-default-packages-alist in case of LuaLaTeX

This commit is contained in:
Gerard Vermeulen 2022-05-07 11:07:04 +02:00
parent 93540957d5
commit 4f4510b9a8

View File

@ -1639,6 +1639,21 @@ listing [[lst:customize-org-latex-classes]].
#+caption: Customize =org-latex-export=.
#+name: lst:customize-org-latex-export
#+begin_src emacs-lisp
(with-eval-after-load 'org
(custom-set-variables
'(org-latex-default-packages-alist '(("" "fontspec" t ("lualatex"))
("AUTO" "inputenc" t ("pdflatex"))
("T1" "fontenc" t ("pdflatex"))
("" "graphicx" t)
("" "longtable" nil)
("" "wrapfig" nil)
("" "rotating" nil)
("normalem" "ulem" t)
("" "amsmath" t)
("" "amssymb" t)
("" "capt-of" nil)
("" "hyperref" nil)))))
(with-eval-after-load 'ox-latex
(custom-set-variables
'(org-latex-compiler "lualatex")