From: Ihor Radchenko <yantar92@posteo.net>
To: Alan Schmitt <alan.schmitt@polytechnique.org>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: [BUG] CUSTOM_id ignored on blocks by ox-beamer
Date: Thu, 19 Jan 2023 10:21:47 +0000 [thread overview]
Message-ID: <8735866czo.fsf@localhost> (raw)
In-Reply-To: <m2lemd56yy.fsf@m4x.org>
Alan Schmitt <alan.schmitt@polytechnique.org> writes:
>> (2) modify `org-beamer-environments-default' to insert label
>> appropriately.
>>
>> Patches welcome!
>
> Thank you for the detailed instructions. Here is my attempt at this.
> I’ve tested it and it works.
Thanks!
>>From 1747786c7106d0d90d9e8752e361552afacb2d4d Mon Sep 17 00:00:00 2001
> From: Alan Schmitt <alan.schmitt@polytechnique.org>
> Date: Sun, 8 Jan 2023 17:20:31 +0100
> Subject: [PATCH] Add labels to latex export of beamer blocks
>
> A new option %l is available to be used in `org-beamer-environments-*'
> to insert the label of the current block, obtained using
> `org-babel--get-label'
Please add a changelog entry detailing the definitions where the changes
happened. See https://orgmode.org/worg/org-contribute.html#commit-messages
> - ("theorem" "t" "\\begin{theorem}%a[%h]" "\\end{theorem}")
> - ("definition" "d" "\\begin{definition}%a[%h]" "\\end{definition}")
> - ("example" "e" "\\begin{example}%a[%h]" "\\end{example}")
> - ("exampleblock" "E" "\\begin{exampleblock}%a{%h}" "\\end{exampleblock}")
> + ("theorem" "t" "\\begin{theorem}%a[%h]%l" "\\end{theorem}")
> + ("definition" "d" "\\begin{definition}%a[%h]%l" "\\end{definition}")
> + ("example" "e" "\\begin{example}%a[%h]%l" "\\end{example}")
> + ("exampleblock" "E" "\\begin{exampleblock}%a{%h}%l" "\\end{exampleblock}")
Please document the new %l option in the docstring of
`org-beamer-environments-extra' and add a notice to etc/ORG-NEWS file.
--
Ihor Radchenko // yantar92,
Org mode contributor,
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>
next prev parent reply other threads:[~2023-01-19 10:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-04 11:52 CUSTOM_id ignored on blocks by ox-beamer alan.schmitt
2023-01-05 9:26 ` [BUG] " Ihor Radchenko
2023-01-08 16:25 ` Alan Schmitt
2023-01-15 13:57 ` Alan Schmitt
2023-01-19 10:21 ` Ihor Radchenko [this message]
2023-02-09 9:14 ` Alan Schmitt
2023-02-10 10:57 ` 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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8735866czo.fsf@localhost \
--to=yantar92@posteo.net \
--cc=alan.schmitt@polytechnique.org \
--cc=emacs-orgmode@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).