emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Rafael <rvf0068@gmail.com>
Cc: Emacs-orgmode list <emacs-orgmode@gnu.org>
Subject: Re: CUSTOM_id ignored on blocks by ox-beamer
Date: Mon, 25 May 2020 12:46:21 +0200	[thread overview]
Message-ID: <87lflg9ts2.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87a71yv28f.fsf@gmail.com> (Rafael's message of "Sat, 23 May 2020 15:13:36 -0500")

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


  reply	other threads:[~2020-05-25 10:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-23 20:13 CUSTOM_id ignored on blocks by ox-beamer Rafael
2020-05-25 10:46 ` Nicolas Goaziou [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-01-04 11:52 alan.schmitt

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=87lflg9ts2.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=rvf0068@gmail.com \
    /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).