[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default
From: |
Leo Butler |
Subject: |
Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink |
Date: |
Tue, 12 Mar 2024 20:32:13 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
On Tue, Mar 12 2024, Ihor Radchenko <yantar92@posteo.net> wrote:
> Pedro Andres Aranda Gutierrez <paaguti@gmail.com> writes:
>
>> Jup, of course. If you look in org-lint.el, one of the cases that would
>> trigger a message is when the frame environment uses "frame" directly and
>> there is a \begin{frame} in the org.
>> Line 1522 onwards in org-lint.el
>
> (1)
> Sure, but we should not demand users to run org-lint. Ideally, exporting
> any valid Org file should work.
> The fact that the presence of \begin{frame} breaks beamer is a technical
> detail users should better not be bothered with. That's why we added the
> orgframe construct.
>
> (2)
> On the other hand, it is clear that Org mode users are unwilling to
> tolerate too much of machine generated latex output. So, going further
> and trying to generate unique orgframe environments might not be ideal.
>
> The current approach is a balance between the above considerations.
>
> AFAIU, what you propose is reverting the orgframe code; that goes
> against the first point.
Current git HEAD allows a user like Pedro to effectively turn off the
orgframe code via
(setq org-beamer-frame-environment "frame")
or an equivalent.
>
> What I proposed is to reduce the amount of machine-generated code by
> using `org-beamer-frame-environment' only when strictly necessary.
Attached is a patch that limits the use of
`org-beamer-frame-environment' to those frames that contain either
\begin{frame} or \end{frame} in their body.
This has the nice side-effect that one can include example frames
generated by Org without causing an error (previously, Org exported
latex that would not compile). See the attachments.
Leo
0001-lisp-ox-beamer.el-constrain-use-of-org-beamer-frame-.patch
Description: 0001-lisp-ox-beamer.el-constrain-use-of-org-beamer-frame-.patch
customize-frame.org
Description: customize-frame.org
customize-frame.tex
Description: customize-frame.tex
customize-frame.pdf
Description: customize-frame.pdf
- Re: The orgframe construct in the Beamer exporter as a default needs a rethink, (continued)
- [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink, Leo Butler, 2024/03/01
- Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink, Pedro Andres Aranda Gutierrez, 2024/03/02
- Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink, Pedro Andres Aranda Gutierrez, 2024/03/02
- Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink, Pedro Andres Aranda Gutierrez, 2024/03/02
- Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink, Ihor Radchenko, 2024/03/02
- Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink, Pedro Andres Aranda Gutierrez, 2024/03/02
- Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink, Ihor Radchenko, 2024/03/04
- Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink, Pedro Andres Aranda Gutierrez, 2024/03/09
- Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink, Ihor Radchenko, 2024/03/12
- Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink,
Leo Butler <=
- Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink, Pedro Andres Aranda Gutierrez, 2024/03/13
- Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink, Ihor Radchenko, 2024/03/13
- Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink, Leo Butler, 2024/03/14
- Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink, Ihor Radchenko, 2024/03/15
- Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink, Leo Butler, 2024/03/16
- Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink, Leo Butler, 2024/03/16
- Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink, Ihor Radchenko, 2024/03/17
- Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink, Leo Butler, 2024/03/17
- Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink, Ihor Radchenko, 2024/03/17
- Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink, Ihor Radchenko, 2024/03/02