Attached is a quick fix that only takes into account the existing org-export-with- settings.
Best, /PA On Tue, 25 Feb 2025 at 07:31, Pedro Andres Aranda Gutierrez < paag...@gmail.com> wrote: > HI, > I'm giving this a second shot, now that the ToC fix is in the code. > > I have a question: we have the org-export-with-... for author, title and > creator. > So we can act on these things in the PDF attributes when exporting to > LaTeX. > The producer will include the LaTeX distribution. Do we really want to > suppress this? > > If so, (org-latex--format-spec) doesn't know about the producer and we > need to introduce this as a new entry in the format spec. > > WDYT? > > /PA > > PS: I sincerely think it would be easier to add it as a note in the doc, > that if you don't want metadata in your PDF, you should customize > or set a local value for the hyperref setup. You don't include metadata, > but you are able to set a title for the reader. > > > On Wed, 19 Feb 2025 at 09:26, Pedro Andres Aranda Gutierrez < > paag...@gmail.com> wrote: > >> Final version... got the wrong file... sorry /PA >> >> On Wed, 19 Feb 2025 at 07:57, Pedro Andres Aranda Gutierrez < >> paag...@gmail.com> wrote: >> >>> Mea culpa.. attached... >>> /PA >>> >>> On Wed, 19 Feb 2025 at 07:22, Pedro Andres Aranda Gutierrez < >>> paag...@gmail.com> wrote: >>> >>>> Hi Ihor, >>>> >>>> I'll dive again in my Outbox to check, but I'm pretty sure I sent you >>>> what I consider is now the last version, consolidated as a unified patch. >>>> It has all comments regarding the documentation and a reworked LISP >>>> implementation which was prompted some comments of yours. It passes tests, >>>> etc. >>>> >>>> Best, /P.A. >>>> >>>> On Tue, 18 Feb 2025 at 19:41, Ihor Radchenko <yanta...@posteo.net> >>>> wrote: >>>> >>>>> Pedro Andres Aranda Gutierrez <paag...@gmail.com> writes: >>>>> >>>>> > OK, great. But there's also the patch for the table of contents >>>>> waiting... >>>>> > and we wanted to give this idea another approach to >>>>> > code once and use it both to export latex and beamer. I'd appreciate >>>>> we do >>>>> > this after we have sorted out the table of contents. >>>>> >>>>> In my book, I am waiting for you to submit the next version of the >>>>> TOC patch. Just double-checking. >>>>> >>>>> -- >>>>> Ihor Radchenko // yantar92, >>>>> Org mode maintainer, >>>>> Learn more about Org mode at <https://orgmode.org/>. >>>>> Support Org development at <https://liberapay.com/org-mode>, >>>>> or support my work at <https://liberapay.com/yantar92> >>>>> >>>> >>>> >>>> -- >>>> Fragen sind nicht da, um beantwortet zu werden, >>>> Fragen sind da um gestellt zu werden >>>> Georg Kreisler >>>> >>>> Headaches with a Juju log: >>>> unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should >>>> run a leader-deposed hook here, but we can't yet >>>> Year 1 of the New Koprocracy >>>> >>>> >>> >>> -- >>> Fragen sind nicht da, um beantwortet zu werden, >>> Fragen sind da um gestellt zu werden >>> Georg Kreisler >>> >>> Headaches with a Juju log: >>> unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should >>> run a leader-deposed hook here, but we can't yet >>> Year 1 of the New Koprocracy >>> >>> >> >> -- >> Fragen sind nicht da, um beantwortet zu werden, >> Fragen sind da um gestellt zu werden >> Georg Kreisler >> >> Headaches with a Juju log: >> unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should >> run a leader-deposed hook here, but we can't yet >> Year 1 of the New Koprocracy >> >> > > -- > Fragen sind nicht da, um beantwortet zu werden, > Fragen sind da um gestellt zu werden > Georg Kreisler > > Headaches with a Juju log: > unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run > a leader-deposed hook here, but we can't yet > Year 1 of the New Koprocracy > > -- Fragen sind nicht da, um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler Headaches with a Juju log: unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run a leader-deposed hook here, but we can't yet Year 1 of the New Koprocracy
From 2a102300eafb674d06705442544e456260ad2c17 Mon Sep 17 00:00:00 2001 From: "Pedro A. Aranda" <paag...@gmail.com> Date: Tue, 25 Feb 2025 08:12:07 +0100 Subject: [PATCH] Export PDF metadata using hyperref according to org-export-with-... --- lisp/ox-latex.el: adjust PDF metadata according to the existing settings in org-export-with-title, org-export-with-author and org-export-with-creator. * lisp/ox-latex.el: (org-latex--format-spec): replace author, title and creator fields with "" when the corresponding org-export-with-... is nil. Link: https://list.orgmode.org/87zfivm8qt.fsf@localhost/T/#t lisp/ox-latex.el | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index a7ab4ca7b..af3ac308b 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -1940,16 +1940,24 @@ INFO is a plist used as a communication channel." ;; Here the actual name of the LANGUAGE or LANG is used. (or (plist-get plist :lang-name) lang)))) - `((?a . ,(org-export-data (plist-get info :author) info)) - (?t . ,(org-export-data (plist-get info :title) info)) - (?s . ,(org-export-data (plist-get info :subtitle) info)) + `((?a . ,(if (plist-get info :with-author) + (org-export-data (plist-get info :author) info) + "")) + (?t . ,(if (plist-get info :with-title) + (org-export-data (plist-get info :title) info) + "")) + (?s . ,(if (plist-get info :with-title) + (org-export-data (plist-get info :subtitle) info) + "")) (?k . ,(org-export-data (org-latex--wrap-latex-math-block (plist-get info :keywords) info) info)) (?d . ,(org-export-data (org-latex--wrap-latex-math-block (plist-get info :description) info) info)) - (?c . ,(plist-get info :creator)) + (?c . ,(if (plist-get info :with-creator) + (plist-get info :creator) + "")) (?l . ,language) (?L . ,(capitalize language)) (?D . ,(org-export-data (org-export-get-date info) info))))) -- 2.34.1