And what about #+LATEX_PRE_CLASS or #+LATEX_CLASS_PRE ?

On Sat, 7 Feb 2026 at 16:58, Pedro Andres Aranda Gutierrez <
[email protected]> wrote:

> Isn't what I propose much cleaner and closer to LaTeX CBP?
>
> On Sat, 7 Feb 2026 at 16:46, Ihor Radchenko <[email protected]> wrote:
>
>> Pedro Andres Aranda Gutierrez <[email protected]> writes:
>>
>> > Have tried what you suggest with little success.
>> > For example in the case of beamer, I tried adding
>> > \usepackage[dvipsnames]{xcolor}
>> > with a #+LATEX_HEADER and it did not work.
>>
>> That's expected, I think. beamer loads xcolor.
>>
>> > On the other hand I don't always need the dvips colour names always,
>> > so it would be doing and undoing the LaTeX class definition
>> continuously,
>> > which is sort of a hassle.
>> > This way, I can add it when I need it and use just one LATEX_CLASS.
>> > IMHO it is much cleaner...
>>
>> What I meant is allowing something like
>> #+LATEX_CLASS_HEADER: \PassOptionsToPackage{dvipsnames}{xcolor}
>> #+LATEX_CLASS_HEADER: [HEADER]
>>
>> to augment the class definition.
>> (The above is looks clumsy though)
>>
>> --
>> 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
>
> "Sagen's Paradeiser" (ORF: Als Radiohören gefährlich war) => write BE!
> Year 2 of the New Koprocracy
>
>

-- 
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

"Sagen's Paradeiser" (ORF: Als Radiohören gefährlich war) => write BE!
Year 2 of the New Koprocracy

Reply via email to