emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CUSTOM_id ignored on blocks by ox-beamer


From: Nicolas Goaziou
Subject: Re: CUSTOM_id ignored on blocks by ox-beamer
Date: Mon, 25 May 2020 12:46:21 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Hello,

Rafael <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]