all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Tiny patch: add onlyenv to beamer environments
Date: Wed, 25 Dec 2024 17:51:19 +0000	[thread overview]
Message-ID: <87ttary7l4.fsf@localhost> (raw)
In-Reply-To: <CAO48Bk8nEGgzDHAxSF9RrOeFOD8ptt-1Sa5dbtf6vjfheS+DPQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 405 bytes --]

[ 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.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-ox-beamer-Add-onlyenv-to-the-beamer-environments.patch --]
[-- Type: text/x-patch, Size: 2665 bytes --]

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


[-- Attachment #3: Type: text/plain, Size: 223 bytes --]


-- 
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>

  parent reply	other threads:[~2024-12-25 17:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-25  8:27 Tiny patch: add onlyenv to beamer environments Pedro Andres Aranda Gutierrez
2024-12-25 10:15 ` Ihor Radchenko
     [not found]   ` <CAO48Bk-JuK4YdipzzmteV_89zc9MFbXs=PQHREvCntScioDKKg@mail.gmail.com>
     [not found]     ` <871pxvzrnr.fsf@localhost>
     [not found]       ` <CAO48Bk8nEGgzDHAxSF9RrOeFOD8ptt-1Sa5dbtf6vjfheS+DPQ@mail.gmail.com>
2024-12-25 17:51         ` Ihor Radchenko [this message]
2024-12-26  9:04           ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ttary7l4.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=paaguti@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.