Hi,
let's 'reset' the exchange and cool down.
My settings would be, ideally:
(use-package org-mode
:pin gnu
:ensure t)
in my case with the development version of org-mode from savannah compiled
locally and included with a :load-path
My findings:
A. Things that are possible right now:
1.- In anything LaTeX, I need to pass options to packages that are included
in the document class:
Answer: use #+LATEX_CLASS_PRE
2.- In a Beamer presentation, I need to set very specific things before the
theme:
Answer: use #+BEAMER_THEME_PRE
B. Things that need further thought:
1.- It is advisable to put the sequence
BEAMER_THEME_PRE
BEAMER_THEME
BEAMER_THEME_POST
directly after the class declaration. This is what the Beamer authors do in
their examples.
2.- It is advisable to put "all things font" ASAP.
Why? you may have LaTeX code in your header that will be stored with the
'full state' to be called later.
An example would be using \savebox{} for certain parts in the header of a
document (in LATEX_HEADER).
If you change the fonts after declaring the boxes, this declaration has no
effect in the saved boxes
and you will get wrong fonts there. Moving the font packages out of the
default classes and
into font handling might be helpful.... even for pdflatex.
My request:
1. if you want to use templates, make sure there is room for these extra
things there to avoid needed patching the generated code with (sometimes
intricate) search/replace processes which may not be self-evident in the
code. It will be more readable and all (starting by you) will profit
2. Agree on a default sequence for Beamer/LaTeX (taking into account what I
mention above; promise it will help others...):
For LaTeX
[CLASS-PRE]
\documentclass[options]{class}
[FONTS]
[PACKAGES]
[PACKAGES-EXTRA]
[HEADER]
[HEADER-EXTRA]
And for BEAMER
[CLASS-PRE]
\documentclass[options]{beamer}
[BEAMER-THEME]
[FONTS]
[PACKAGES]
[PACKAGES-EXTRA]
[HEADER]
[HEADER-EXTRA]
If more such definitions are needed, let's investigate...
Best, /PA
PS: I'm sending a PR to https://github.com/fniessen/refcard-org-beamer to
investigate how that eval-after-load is helpful...
PPS: Maybe novice users don't want to have to manage that kind of
configuration and would be happier without it and with as few setq's as
possible. At least that's what my students and colleagues comment.
--
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