Hmmm 
But that would make determining where the unwanted/redundant latex code is more 
difficult and warnings less accurate…

Thinking about it, though…
/PA
Enviado desde mi iPhone

> El 26 jul 2026, a las 17:05, Ihor Radchenko <[email protected]> escribió:
> 
> Pedro Andres Aranda Gutierrez <[email protected]> writes:
> 
>> currently some features "float" between the LaTeX and the Beamer exporter
>> in a sometimes foggy way.
>> 
>> I have detected that one could try to use (and fail, of course)
>> \usepackage[AUTO]{babel} (or polyglossia). I have therefore added the
>> following in ox-beamer (as pseudocode)
>> 
>> if the user has
>> \usepackage\[.+?]{(babel|polyglossia)}
>> in BEAMER_HEADER, comment it out and warn the user.
>> 
>> You get a much more complete handling of locale-related features in
>> ox-latex.el, which is used by ox-beamer.el:
>> LATEX_HEADER, LATEX_HEADER_EXTRA and the new font/locale control features
>> in ox-latex.el take over and we have the code in just one place.
>> 
>> Reactions welcome (and, of course, feedback for this and other additions to
>> the fontspec3 branch in Savannah or my mirror @ codeberg[1])
> 
> Why not simply incorporating beamer_header into ox-latex processing?
> What I mean is something along the lines of
> 
> (when (plist-get info :beamer-header)
>  (plist-put info :latex-header-extra
>    (concat (plist-get info :latex-header-extra) "\n" (plist-get info 
> :beamer-header))))
> (org-latex-make-preamble info)
> 
> --
> 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