Pedro Andres Aranda Gutierrez <[email protected]> writes:

Related-to: 
https://list.orgmode.org/orgmode/[email protected]/

> If we can agree on 1. and psuh the changes to the repo, we could
> concentrate on 2, which we can very much simplify from my initial proposal
> (This would be the third attempt for me and I can put in the experience
> I've gained in my playground).
>
> So, let's try to tackle theme config in ox-beamer first.
> My proposal is
>
> Q1: We have a "theme block" for Beamer (with or w/o BEAMER_THEME_PRE):
> where do we want to place it?
> A1: From my experience in writing a Beamer theme for my lectures I have
> learnt that it needs to be a self-contained block that must work with a
> LateX preamble as simple as
>
> \usepackage[presentation]{beamer}
> \usetheme{my-theme}

+1

> Q2: Do we need more LaTeX before \usetheme?
> A2: Normally not, but to cater for the exceptions, we can use
> BEAMER_THEME_PRE.
> An example for such an exception in my use case is using the geometry
> package to fine-tune the appearance.

> So my proposal is to mimic the behaviour of ox-latex:
> - substitute the documentclass by the documentclass+the theme
>   configuration, instead of putting the theme configuration after
>   all the packages.
> - If a user includes '\\usetheme{}' in the org-latex-class entry
>   for his/her presentation style, we can decide that we skip
>   inserting the theme configuration altogether.

+1

> IMHO, it makes little sense to add and cater a [THEME] token in the
> org-latex-classes, so forget I even dared to mention it ;-)

Did I propose that? I think I suggested incorporating it into future
[FONTS-PRE] placeholder or something. In any case, I do hope that
conditional preamble gets merged at some point, which will make things
much easier. For the time being, I am ok with your approach.

Patch review will follow.

-- 
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>

Reply via email to