Variable: org-latex-default-packages-alist
org-latex-default-packages-alist is a customizable variable defined in
org.el.gz.
Value
(("" "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 ("pdflatex")) ("" "amssymb" t ("pdflatex"))
("" "capt-of" nil) ("" "hyperref" nil))
Documentation
Alist of default packages to be inserted in the header.
Change this only if one of the packages here causes an 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
- rotating: for sideways figures and tables
- ulem: for underline and strike-through
- amsmath: for subscript and superscript and math environments
- amssymb: for various symbols used for interpreting the entities
in org-entities. You can skip some of this package if you don't
use any of the symbols.
- capt-of: for captions outside of floats
- hyperref: for cross references
Therefore you should not modify this variable unless you know what you are doing. The one reason to change it anyway is that you might be loading some other package that conflicts with one of the default packages. Each element is either a cell or a string.
A cell is of the format
("options" "package" SNIPPET-FLAG COMPILERS)
If SNIPPET-FLAG is non-nil, the package also needs to be included when compiling LaTeX snippets into images for inclusion into non-LaTeX output.
COMPILERS is a list of compilers that should include the package,
see org-latex-compiler. If the document compiler is not in the
list, and the list is non-nil, the package will not be inserted
in the final document.
A string will be inserted as-is in the header of the document.
This variable was added, or its default value changed, in Org version
9.7.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defcustom org-latex-default-packages-alist
'(;; 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 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.
Change this only if one of the packages here causes an
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
- rotating: for sideways figures and tables
- ulem: for underline and strike-through
- amsmath: for subscript and superscript and math environments
- amssymb: for various symbols used for interpreting the entities
in `org-entities'. You can skip some of this package if you don't
use any of the symbols.
- capt-of: for captions outside of floats
- hyperref: for cross references
Therefore you should not modify this variable unless you know
what you are doing. The one reason to change it anyway is that
you might be loading some other package that conflicts with one
of the default packages. Each element is either a cell or
a string.
A cell is of the format
(\"options\" \"package\" SNIPPET-FLAG COMPILERS)
If SNIPPET-FLAG is non-nil, the package also needs to be included
when compiling LaTeX snippets into images for inclusion into
non-LaTeX output.
COMPILERS is a list of compilers that should include the package,
see `org-latex-compiler'. If the document compiler is not in the
list, and the list is non-nil, the package will not be inserted
in the final document.
A string will be inserted as-is in the header of the document."
:group 'org-latex
:group 'org-export-latex
:set 'org-set-packages-alist
:get 'org-get-packages-alist
:package-version '(Org . "9.7")
:type '(repeat
(choice
(list :tag "options/package pair"
(string :tag "options")
(string :tag "package")
(boolean :tag "Snippet")
(choice
(const :tag "For all compilers" nil)
(repeat :tag "Allowed compiler" string)))
(string :tag "A line of LaTeX"))))