emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ox-latex: help: LATEX_HEADER from different subtrees collision


From: pinmacs
Subject: ox-latex: help: LATEX_HEADER from different subtrees collision
Date: Tue, 3 Sep 2024 00:09:59 +0200

Hi,

** The context

I found a way to export subtrees to PDF and I liked that idea a lot, I
use it, for example, to generate with an org-capture an invoice, and
export to PDF, etc.

The invoice is part of my journal.

My journal is structured for the whole year (year, week, day). That
file has a lot of lines: 3247 the active 2024, and 179487 the archived
2024; the archived part is out of the org-agenda).

Then I wanted to add a weekly report, which extracts some properties
of some entries, generates some tables, and I wanted to be exported
them to PDF in the same way.

** The problem

I discovered that the LATEX_HEADER of a different subtree produce
collisions, when I discovered this I felt weird, because
~org-latex-export-to-pdf~ docstring says that it respects the
narrowing or the region [1], but I can reproduce how this is not
true. Or let me know what I am doing wrong, if LATEX_HEADER is buffer
scope (which would make sense), then, what is the equivalent in case
you want to specify a LATEX_HEADER in subtree scope

Find attached a file (ox-latex-problem.org) that produce [2] a clash
of latex headers [3], particularly, with geometry (landscape vs
portrait). That if you comment one or the other, it applies to the
whole buffer. Can you modify that file to make it work? Or is it a bug
on ox-latex?

Thanks for your attention,
pinmacs

[1]
If narrowing is active in the current buffer, only export its
narrowed part.

If a region is active, export that region.

[2] ~emacs -Q~ with orgmode 9.7.10 part of emacs-30 branch with commit 44c2614

[3] ! LaTeX Error: Option clash for package geometry.

Attachment: ox-latex-problem.org
Description: Text Data

Attachment: OpenPGP_0x9D64597C3A982DCA.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]