From 9728ad2fc166cb6d15df9ff4b2179680a2100f1b Mon Sep 17 00:00:00 2001 From: TEC Date: Tue, 28 Sep 2021 00:27:33 +0800 Subject: [PATCH] org: Remove obsolete default LaTeX packages * lisp/org.el (org-latex-default-packages-alist): Remove grffile and textcomp from the list of default LaTeX packages to load, as they've been obsolete for quite a few years now. * etc/ORG-NEWS: Announce the removal of grffile and textcomp from `org-latex-default-packages-alist'. --- etc/ORG-NEWS | 6 ++++++ lisp/org.el | 9 +++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index 9d19a812c..42a142474 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -528,6 +528,12 @@ for each parameter and use more readable expression in bookmarklet: url: location.href, title: document.title}) #+end_example +*** Remove obsolete LaTeX packages from ~org-latex-default-packages-alist~ + +The LaTeX packages =grffile= and =textcomp= are redundant, with their +capabilities being merged into =graphicx= and the LaTeX core +respectively a while ago. + * Version 9.4 ** Incompatible changes *** Possibly broken internal file links: please check and fix diff --git a/lisp/org.el b/lisp/org.el index 4c681eb4d..a02a1fdf2 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -3467,13 +3467,11 @@ (defcustom org-latex-default-packages-alist '(("AUTO" "inputenc" t ("pdflatex")) ("T1" "fontenc" t ("pdflatex")) ("" "graphicx" t) - ("" "grffile" t) ("" "longtable" nil) ("" "wrapfig" nil) ("" "rotating" nil) ("normalem" "ulem" t) ("" "amsmath" t) - ("" "textcomp" t) ("" "amssymb" t) ("" "capt-of" nil) ("" "hyperref" nil)) @@ -3487,15 +3485,14 @@ (defcustom org-latex-default-packages-alist - inputenc, fontenc: for basic font and character selection - graphicx: for including images -- grffile: allow periods and spaces in graphics file names - 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 -- textcomp, amssymb: for various symbols used - for interpreting the entities in `org-entities'. You can skip - some of these packages if you don't use any of their symbols. +- 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 -- 2.33.0