* 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; 3+ 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] 3+ messages in thread
* Re: CUSTOM_id ignored on blocks by ox-beamer
2020-05-23 20:13 CUSTOM_id ignored on blocks by ox-beamer Rafael
@ 2020-05-25 10:46 ` Nicolas Goaziou
0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2020-05-25 10:46 UTC (permalink / raw)
To: Rafael; +Cc: Emacs-orgmode list
Hello,
Rafael <rvf0068@gmail.com> writes:
> 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.
You may want to look into `org-beamer--format-block' and see if there's
an appropriate place to insert it, probably extending
`org-beamer--get-label' to handle non-frame cases along the way.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 3+ messages in thread
* CUSTOM_id ignored on blocks by ox-beamer
@ 2023-01-04 11:52 alan.schmitt
0 siblings, 0 replies; 3+ 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] 3+ messages in thread
end of thread, other threads:[~2023-01-04 11:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-23 20:13 CUSTOM_id ignored on blocks by ox-beamer Rafael
2020-05-25 10:46 ` Nicolas Goaziou
-- strict thread matches above, loose matches on Subject: below --
2023-01-04 11:52 alan.schmitt
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.