From: Antero Mejr <mail@antr.me>
To: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
Cc: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: [BUG] Latex exporter should consider export settings [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)]
Date: Tue, 28 Jan 2025 14:19:39 -0500 [thread overview]
Message-ID: <87plk6rbjo.fsf@antr.me> (raw)
In-Reply-To: <CAO48Bk9CTASsa+4y+DtdT-0o08xGXgXOJXsUUa6XQaWWCP3Zrw@mail.gmail.com> (Pedro Andres Aranda Gutierrez's message of "Tue, 28 Jan 2025 13:59:44 +0100")
[-- Attachment #1: Type: text/plain, Size: 333 bytes --]
Pedro Andres Aranda Gutierrez <paaguti@gmail.com> writes:
> attached is a fix for the reported BUG, including a couple of test cases
That seems to work, thanks. I attached a patch that handles
org-export-with-creator too.
It would be good if these fixes were also ported over to org-beamer,
since the same problem happens there.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-lisp-ox-latex.el-Obey-with-creator-when-exporting.patch --]
[-- Type: text/x-diff, Size: 1043 bytes --]
From 81106718ffd0c5341a5de03d0f0a615832d7d504 Mon Sep 17 00:00:00 2001
From: Antero Mejr <mail@antr.me>
Date: Tue, 28 Jan 2025 14:13:35 -0500
Subject: [PATCH] lisp/ox-latex.el: Obey :with-creator when exporting
* lisp/ox-latex.el (org-latex-template) Do not fill pdfcreator
hypersetup field when :with-creator is nil.
---
lisp/ox-latex.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 409fa98cb..8884cf786 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -2061,6 +2061,9 @@ holding export options."
(unless (plist-get info :with-title)
;; Replace title *and* subtitle
(setq template (replace-regexp-in-string "%[ts]" "" template)))
+ (unless (plist-get info :with-creator)
+ ;; Replace creator
+ (setq template (replace-regexp-in-string "%c" "" template)))
(format-spec template spec)))
;; engrave-faces-latex preamble
(when (and (eq (plist-get info :latex-src-block-backend) 'engraved)
--
2.43.0
next prev parent reply other threads:[~2025-01-28 19:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-28 7:31 [BUG] Latex exporter should consider export settings [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)] Pedro Andres Aranda Gutierrez
2025-01-28 8:02 ` Pedro Andres Aranda Gutierrez
2025-01-28 12:59 ` Pedro Andres Aranda Gutierrez
2025-01-28 19:19 ` Antero Mejr [this message]
2025-01-29 6:04 ` Pedro Andres Aranda Gutierrez
2025-01-29 21:06 ` Antero Mejr
2025-01-30 5:43 ` Pedro Andres Aranda Gutierrez
2025-01-30 6:56 ` Pedro Andres Aranda Gutierrez
2025-01-30 8:31 ` Pedro Andres Aranda Gutierrez
-- strict thread matches above, loose matches on Subject: below --
2025-01-28 1:38 Antero Mejr
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=87plk6rbjo.fsf@antr.me \
--to=mail@antr.me \
--cc=emacs-orgmode@gnu.org \
--cc=paaguti@gmail.com \
/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).