emacs-orgmode
[Top][All Lists]
Advanced

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

Re: ox-latex: help: LATEX_HEADER from different subtrees collision


From: pinmacs
Subject: Re: ox-latex: help: LATEX_HEADER from different subtrees collision
Date: Wed, 4 Sep 2024 15:24:44 +0200

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~



reply via email to

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