all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
To: Ihor Radchenko <yantar92@posteo.net>,
	Ihor Radchenko <yantar92@gmail.com>
Cc: Org Mode List <emacs-orgmode@gnu.org>
Subject: Tiny patch: add onlyenv to beamer environments
Date: Wed, 25 Dec 2024 09:27:32 +0100	[thread overview]
Message-ID: <CAO48Bk80-xvGts+hM5Z25EwvZTHFc=HCKRoKRp4uJav5HDO7YQ@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 404 bytes --]

Hi,

I found the reference in the Changelog entry quite useful and found also a
request in the mailing more than 12 years ago..

Seasons greeting, /PA

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

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
a leader-deposed hook here, but we can't yet

[-- Attachment #1.2: Type: text/html, Size: 750 bytes --]

[-- Attachment #2: onlyenv-minipatch.diff --]
[-- Type: text/x-patch, Size: 1112 bytes --]

lisp/ox-beamer.el: add onlyenv to `org-beamer-environments-default'

* lisp/ox-beamer.el: (org-beamer-environments-default): Add "onlyenv"
as suggested long time ago in the mailing list or by
https://tippenhauer.de/post/writing-presentations-in-org-mode-markup/

TINYCHANGE

diff --git a/lisp/ox-beamer.el b/lisp/ox-beamer.el
index 527bb55e5..433d98445 100644
--- a/lisp/ox-beamer.el
+++ b/lisp/ox-beamer.el
@@ -198,7 +198,8 @@ through `org-beamer-environments-extra' variable.")
     ("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}")
-    ("beamercolorbox" "o" "\\begin{beamercolorbox}%o{%h}" "\\end{beamercolorbox}"))
+    ("beamercolorbox" "o" "\\begin{beamercolorbox}%o{%h}" "\\end{beamercolorbox}")
+    ("onlyenv"        "O" "\\begin{onlyenv}%a"            "\\end{onlyenv}"))
   "Environments triggered by properties in Beamer export.
 These are the defaults - for user definitions, see
 `org-beamer-environments-extra'.")

             reply	other threads:[~2024-12-25  8:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-25  8:27 Pedro Andres Aranda Gutierrez [this message]
2024-12-25 10:15 ` Tiny patch: add onlyenv to beamer environments 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

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='CAO48Bk80-xvGts+hM5Z25EwvZTHFc=HCKRoKRp4uJav5HDO7YQ@mail.gmail.com' \
    --to=paaguti@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@gmail.com \
    --cc=yantar92@posteo.net \
    /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.