Hi again

After some experimentation, I'm a bit puzzled. So, let's check my
understanding:
1. the beamer exporter is a derived exporter and its parent is the latex
exporter
2. I'm over-writing the following option slots in :options-alist my tests:

    (:latex-class "BEAMER_CLASS" nil "beamer" t)
    (:latex-class-options "BEAMER_CLASS_OPTIONS" nil
"[aspectratio=169,t,12pt]" t)

3. I have a file with the following lines at the beginning:

#+BEAMER_CLASS_OPTIONS: [ignorenonframetext,presentation]
#+BEAMER_THEME: default
#+LaTeX_CLASS: article
#+LaTeX_CLASS_OPTIONS: [a4paper,twoside,11pt]

and when I export to LaTeX, the document class is correctly set:

\documentclass[a4paper,twoside,11pt]{article}

However, when I export to Beamer, I was expecting
\documentclass[ignorenonframetext,presentation]{beamer}
but get the same
\documentclass[a4paper,twoside,11pt]{article}

So apparently, overwriting the :options-alist doesn't have any effect.
What am I not understanding about (org-export-define-derived-backend)

Thanks for any help, /PA


On Tue, 15 Apr 2025 at 08:39, Pedro Andres Aranda Gutierrez <
paag...@gmail.com> wrote:

>
>
> On Mon, 14 Apr 2025 at 19:23, Ihor Radchenko <yanta...@posteo.net> wrote:
>
>>
>> Looks like we are losing the context.
>>
>
> Maybe... too many things at once ;-)
>
>
>> Let me reiterate. I was questioning your ORG-NEWS entry:
>>
>>         > +When exporting to beamer, =#+BEAMER_CLASS_OPTIONS:= should be
>> used
>>         > +instead of =#+LATEX_CLASS_OPTIONS:=. If you use
>>         > +=#+LATEX_CLASS_OPTIONS=, remember to set =#+LATEX_CLASS:= to
>> ~beamer~.
>>
>
> Right, will try to take a deep breath and rewrite...  With my patch, you
> *must* use BEAMER_CLASS_OPTIONS for beamer
> and LATEX_* for latex export. I need to experiment a bit on the effect of
> using LATEX_CLASS=beamer w/ LATEX_CLASS_OPTIONS
> to see if that produces a viable presentation.
>
> Sorry for the noise,
> /PA
> --
> Fragen sind nicht da, um beantwortet zu werden,
> Fragen sind da um gestellt zu werden
> Georg Kreisler
>
> Sagen's Paradeiser, write BE!
> Year 1 of the New Koprocracy
>
>

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

Sagen's Paradeiser, write BE!
Year 1 of the New Koprocracy

Reply via email to