emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* CUSTOM_id ignored on blocks by ox-beamer
@ 2023-01-04 11:52 alan.schmitt
  2023-01-05  9:26 ` [BUG] " Ihor Radchenko
  0 siblings, 1 reply; 9+ messages in thread
From: alan.schmitt @ 2023-01-04 11:52 UTC (permalink / raw)
  To: emacs-orgmode

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

Hello,

I’m writing course slides in org-mode (exported currently to beamer, but
I want to also have html export in the long run), and I have trouble
linking blocks (for theorems or definitions), as the CUSTOM_ID property
is ignored by ox-beamer on blocks.

I see this issue has already been raised on the list
(https://list.orgmode.org/87lflg9ts2.fsf@nicolasgoaziou.fr/T/), and
looking at the code it seems that it still needs to be modified.
Unfortunately the code for org-beamer--format-block is quite complex and
I do not see how to change it to add a label. Could someone on the list
please give me a hand?

Best,

Alan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread
* CUSTOM_id ignored on blocks by ox-beamer
@ 2020-05-23 20:13 Rafael
  2020-05-25 10:46 ` Nicolas Goaziou
  0 siblings, 1 reply; 9+ messages in thread
From: Rafael @ 2020-05-23 20:13 UTC (permalink / raw)
  To: Emacs-orgmode list


Consider the following example:

#+begin_src org
,#+title: Test

,#+options: H:2

,* Section
  :PROPERTIES:
  :CUSTOM_ID: section
  :END:

,** Frame
   :PROPERTIES:
   :CUSTOM_ID: frame
   :END:

,*** Block
    :PROPERTIES:
    :CUSTOM_ID: block
    :END:
#+end_src

If I export this to Beamer, then both section and frame get appropiate
labels, (either with org-latex-prefer-user-labels set to t or nil), but
the custom_id for block is completely ignored. I want to use theorems as
blocks in frames, so it would be very useful to me if the custom_id in
the block is exported as \label{block}. Is there a way to have this by
setting a variable, or something?

It works if I include #+beamer: \label{block} below the properties
drawer, but I would prefer not to duplicate the label, of course.

Best regards,
Rafael


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-02-10 10:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2023-02-09  9:14       ` Alan Schmitt
2023-02-10 10:57         ` Ihor Radchenko
  -- strict thread matches above, loose matches on Subject: below --
2020-05-23 20:13 Rafael
2020-05-25 10:46 ` Nicolas Goaziou

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