emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Timothy <tecosaur@gmail.com>
To: Bastien <bzg@gnu.org>
Cc: emacs-orgmode@gnu.org, meedstrom@teknik.io
Subject: Re: LaTeX export: grffile is a stub package
Date: Tue, 28 Sep 2021 00:31:21 +0800	[thread overview]
Message-ID: <87mtnyc72j.fsf@gmail.com> (raw)
In-Reply-To: <874ka658ol.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 139 bytes --]

Bastien <bzg@gnu.org> writes:

> Patch welcome :)

Well, it’s a small thing so I whipped up a patch 🙂.

All the best,
Timothy

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-org-Remove-obsolete-default-LaTeX-packages.patch --]
[-- Type: text/x-patch, Size: 2659 bytes --]

From 9728ad2fc166cb6d15df9ff4b2179680a2100f1b Mon Sep 17 00:00:00 2001
From: TEC <tec@tecosaur.com>
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


  reply	other threads:[~2021-09-27 16:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-27 12:07 LaTeX export: grffile is a stub package meedstrom
2021-09-27 15:19 ` Timothy
2021-09-27 15:39   ` Bastien
2021-09-27 16:31     ` Timothy [this message]
2021-09-27 16:40       ` Bastien
2021-09-28  8:03   ` Stefan Nobis
2021-09-27 16:23 ` Max Nikulin
2021-09-27 17:00 ` Juan Manuel Macías

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mtnyc72j.fsf@gmail.com \
    --to=tecosaur@gmail.com \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=meedstrom@teknik.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).