From: pinmacs <pinmacs@cas.cat>
To: emacs-orgmode@gnu.org
Subject: Re: ox-latex: help: LATEX_HEADER from different subtrees collision
Date: Wed, 4 Sep 2024 15:24:44 +0200 [thread overview]
Message-ID: <466d6ecc-4709-4db9-88f3-9be46e78c193@cas.cat> (raw)
In-Reply-To: <224ef5a7-33fc-4467-b146-0899aa61b223@cas.cat>
Hey!
And this is trivial, but it took me a while to figure it out
Of course, if you want to use more than one EXPORT_LATEX_HEADER for that
subtree export, you need to use multi-value property [0]:
:PROPERTIES:
:EXPORT_LATEX_HEADER: \usepackage{bookmark}
:EXPORT_LATEX_HEADER+: \usepackage{nopageno}
:EXPORT_LATEX_HEADER+: \usepackage{siunitx}
:EXPORT_LATEX_HEADER+: \usepackage{colortbl}
:EXPORT_LATEX_HEADER+: \usepackage{xcolor}
:EXPORT_LATEX_HEADER+: \usepackage[a4paper, margin=3cm]{geometry}
:EXPORT_LATEX_HEADER+: \usepackage[none]{hyphenat}
:END:
Debugging [1] I also found that once there is one property
EXPORT_LATEX_HEADER, subsequent `#+LATEX_HEADER` are ignored, that's smart!
Cheers,
pinmacs
[0]
If you want to add to the value of an existing property, append a ‘+’
to the property name. The following results in the property ‘var’ having
the value ‘foo=1 bar=2’.
#+PROPERTY: var foo=1
#+PROPERTY: var+ bar=2
src https://orgmode.org/manual/Property-Syntax.html
[1] near the .pdf you have the .tex to debug, and you can export again
outside emacs with ~pdflatex~
next prev parent reply other threads:[~2024-09-04 13:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-02 22:09 ox-latex: help: LATEX_HEADER from different subtrees collision pinmacs
2024-09-03 22:50 ` Rudolf Adamkovič
2024-09-04 10:21 ` Pedro
2024-09-04 13:24 ` pinmacs [this message]
2024-09-04 17:28 ` Rudolf Adamkovič
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=466d6ecc-4709-4db9-88f3-9be46e78c193@cas.cat \
--to=pinmacs@cas.cat \
--cc=emacs-orgmode@gnu.org \
/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).