emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Miquel" <sebastien.miquel@posteo.eu>
To: Ihor Radchenko <yantar92@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: [PATCH] org.el (org-format-latex-header): put DEFAULT-PACKAGES before PACKAGES
Date: Fri, 17 Jun 2022 12:19:27 +0000	[thread overview]
Message-ID: <b7846ee9-8d31-216b-0f76-0001af4a2149@posteo.eu> (raw)
In-Reply-To: <877d5gg5rt.fsf@localhost>

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

Ihor Radchenko writes:
> Thanks for the clarification! Now, your patch makes much more sense. Can
> you update the commit message explaining the above shortly and linking
> to this thread?

See attached.


Sébastien Miquel

[-- Attachment #2: 0001-org.el-org-format-latex-header-put-DEFAULT-PACKAGES-.patch --]
[-- Type: text/x-patch, Size: 1319 bytes --]

From 72742cab341f66525e0acb0b92de65fb6d24c27f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Miquel?= <sebastien.miquel@posteo.eu>
Date: Mon, 13 Jun 2022 11:04:34 +0200
Subject: [PATCH] org.el (org-format-latex-header): put DEFAULT-PACKAGES before

* lisp/org.el (org-format-latex-header): put DEFAULT-PACKAGES before
PACKAGES, as per org-latex-packages-alist's documentation.

`org-format-latex-header' is mostly used to generate in-buffer images
from LaTeX fragments. For LaTeX document export, the header is
generated by `org-splice-latex-header' ond `org-latex-classes' instead
and the default and documented behaviour is to insert DEFAULT-PACKAGES
before PACKAGES.

See also
 lisp/org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index 95dff27ad..0acfa4846 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -3248,8 +3248,8 @@ images at the same place."
 (defcustom org-format-latex-header "\\documentclass{article}
 \\pagestyle{empty}             % do not remove
 % The settings below are copied from fullpage.sty

  reply	other threads:[~2022-06-17 12:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-13  9:12 [PATCH] org.el (org-format-latex-header): put DEFAULT-PACKAGES before PACKAGES Sébastien Miquel
2022-06-14 13:21 ` Ihor Radchenko
2022-06-14 14:26   ` Sébastien Miquel
2022-06-16 12:19     ` Ihor Radchenko
2022-06-17 12:19       ` Sébastien Miquel [this message]
2022-06-18  4:50         ` Ihor Radchenko

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:

  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=b7846ee9-8d31-216b-0f76-0001af4a2149@posteo.eu \
    --to=sebastien.miquel@posteo.eu \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@gmail.com \


* 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


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).