[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tiny patch: add onlyenv to beamer environments
From: |
Ihor Radchenko |
Subject: |
Re: Tiny patch: add onlyenv to beamer environments |
Date: |
Wed, 25 Dec 2024 17:51:19 +0000 |
[ Adding Org ML back to CC ]
Pedro Andres Aranda Gutierrez <paaguti@gmail.com> writes:
> Here you are. I have included three links, including the answer email in
> the GNU mail archive directly. The thread seems to be broken there.
> Pick the one you prefer.
Thanks!
The patch was slightly ill-formatted.
I fixed the patch and also reworded things sligthtly.
Please, check the attached updated patch.
>From 4f6cb2134a143549d087959dec3f4f5418fec710 Mon Sep 17 00:00:00 2001
Message-ID:
<4f6cb2134a143549d087959dec3f4f5418fec710.1735148978.git.yantar92@posteo.net>
From: "Pedro A. Aranda" <paaguti@gmail.com>
Date: Wed, 25 Dec 2024 17:31:40 +0100
Subject: [PATCH] ox-beamer: Add onlyenv to the beamer environments
* etc/ORG-NEWS: Correct typo and announce that `onlyenv' has been
added to `org-beamer-environments-default' and how to use it.
* lisp/ox-beamer.el: Add onlyenv to `org-beamer-environments-default'.
Link:
https://list.orgmode.org/orgmode/CA+XG7-im7gWY9n6vF949WqeuaQveu4Q-VSe0+H=+nhgft7WCnw@mail.gmail.com/#t
Link: https://list.orgmode.org/87ikr8131n.fsf@localhost/T/#t
---
etc/ORG-NEWS | 16 +++++++++++++++-
lisp/ox-beamer.el | 1 +
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index 4c41f981cd..d082c4c4ea 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -143,7 +143,7 @@ now be pasted as an Org table using ~yank-media~.
** New and changed options
-# Chanes deadling with changing default values of customizations,
+# Changes deadling with changing default values of customizations,
# adding new customizations, or changing the interpretation of the
# existing customizations.
@@ -196,6 +196,20 @@ English. The default value is ~t~ as the CSL standard
assumes that
English titles are specified in sentence-case but the bibtex
bibliography format requires them to be written in title-case.
+*** New environment =onlyenv= in ~org-beamer-environments-default~
+
+The =onlyenv= environment limits showign parts of an animated Beamer
+slide to specific animation steps.
+
+#+BEGIN_SRC org
+,***** Comment
+:PROPERTIES:
+:BEAMER_env: onlyenv
+:BEAMER_act: <2->
+:END:
+This text will be displayed on animation step 2 and later.
+#+END_SRC
+
** New functions and changes in function arguments
# This also includes changes in function behavior from Elisp perspective.
diff --git a/lisp/ox-beamer.el b/lisp/ox-beamer.el
index 527bb55e56..a48fcfca1b 100644
--- a/lisp/ox-beamer.el
+++ b/lisp/ox-beamer.el
@@ -198,6 +198,7 @@ (defconst org-beamer-environments-default
("example" "e" "\\begin{example}%a[%h]%l" "\\end{example}")
("exampleblock" "E" "\\begin{exampleblock}%a{%h}%l"
"\\end{exampleblock}")
("proof" "p" "\\begin{proof}%a[%h]" "\\end{proof}")
+ ("onlyenv" "O" "\\begin{onlyenv}%a" "\\end{onlyenv}")
("beamercolorbox" "o" "\\begin{beamercolorbox}%o{%h}"
"\\end{beamercolorbox}"))
"Environments triggered by properties in Beamer export.
These are the defaults - for user definitions, see
--
2.47.1
--
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>