HI again,

just connecting to my last message...

It would be advisable to look at
https://ctan.org/tex-archive/macros/latex/contrib/beamer/doc/solutions

All three suggested template declare (and tune) the theme right after what
we would call the 'class-template' (in our ELisp code).
So maybe, just maybe, there might be some merit in reshuffling the headers
to make them meet what the authors of the beamer package had in mind.

My .02cents, /PA


On Mon, 30 Mar 2026 at 08:41, Pedro Andres Aranda Gutierrez <
[email protected]> wrote:

> OK,
> I do understand the "we don't want to break existing stuff" problem and
> I don't want to break anything. So, what about going in steps...
>
> Attached is a patch that adds a keyword à la #+LATEX_CLASS_PRE.
> Not surprisingly, I have called it #+BEAMER_THEME_PRE.
> It will add user LaTeX right before the theme is declared.
>
> This should be enough for the use case where you need to fine-tune
> your theme with some LaTeX code and #+LATEX_HEADER/#+BEAMER_HEADER
> appear too late in the generated LaTeX to be of any effect.
> I have included an example in org-manual.org
>
> If there needs to be a more profound discussion, let's have it.
>
> My .2 cents, /PA
>
> On Sun, 29 Mar 2026 at 15:47, Ihor Radchenko <[email protected]> wrote:
>
>> Pedro Andres Aranda Gutierrez <[email protected]> writes:
>>
>> > Hi Org-moders
>> >
>> > I'm thinking about a change in the Beamer exporter.
>> >
>> > If you look at the LaTeX it generates, it puts \usetheme & co. quite
>> far away from the \documentclass declaration. I don't know how good a
>> practice that is.
>> >
>> > With the font control feature branch in mind, and looking at examples,
>> reference manuals and tutorials, it would seem more in line with BCP to
>> move them up, to end up with something like:
>> >
>> > #+BEGIN_EXAMPLE
>> > \documentclass[<your beamer options>]{beamer}
>> > \usetheme{<theme>}
>> > <possible inner theme, etc.>
>> >
>> > <contents of #+LATEX_HEADER>
>> > ....
>> > #+END_EXAMPLE
>> >
>> > Would that break anyone's presentations?
>>
>> There is a previous discussion:
>>
>> https://list.orgmode.org/orgmode/[email protected]/
>>
>> --
>> 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