From 81106718ffd0c5341a5de03d0f0a615832d7d504 Mon Sep 17 00:00:00 2001 From: Antero Mejr 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