From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Fabrice Popineau <fabrice.popineau@supelec.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: Labels in beamer new exporter
Date: Tue, 04 Sep 2012 08:40:18 +0200 [thread overview]
Message-ID: <87ipbub8a5.fsf@gmail.com> (raw)
In-Reply-To: <CAFgFV9NPcY9rrhLvLyL=mKO7Nne9fU6h3GasnFKN3JWiVxGM4A@mail.gmail.com> (Fabrice Popineau's message of "Mon, 3 Sep 2012 15:33:36 +0200")
Hello,
Fabrice Popineau <fabrice.popineau@supelec.fr> writes:
> I'm trying to reference a slide using the beamer new exporter.
> Each frame gets its own label automagically (sec-#-##).
> Is there a way to reference those labels later on ? Using emacs-lisp ?
> Or ?
You refer to these labels when you create an internal link (fuzzy, by
custom-id, or by id) to the headline. So the idea is that you don't have
to bother with label's name.
Unfortunately, there's one limitation for now: it isn't possible to
specify an overlay for the target. For example:
--8<---------------cut here---------------start------------->8---
#+OPTIONS: H:1
* Frame 1
:PROPERTIES:
:CUSTOM_ID: frame1
:END:
#+ATTR_BEAMER: :overlay "+-"
- item 1
- item 2
* Frame 2
[[*Frame 1][Link to first frame]] (1)
[[#frame1][@@e-beamer:<2>@@Link to first frame]] (2)
--8<---------------cut here---------------end--------------->8---
(1) will produce \hyperlink{sec-1}{Link to first frame}
(2) will produce \hyperlink<2>{sec-1}{Link to first frame} (*)
At the moment, there's no way to produce:
\hyperlink{sec-1<2>}{Link to first frame, second overlay} (+)
I may swap the export-snippet usage in second case, if (*) is less
useful than (+).
Note that I hardly, if ever, use links in my presentations so
`org-e-beamer-link' is probably sub-optimal.
> I tried another way to solve my problem and wanted to define my own label
> on a frame :
>
> ** My frame titles :B_frame:
> :PROPERTIES:
> :BEAMER_opt: label=tcs
> :BEAMER_env: frame
> :END:
>
> Unfortunately, the new latex/beamer exporter does not seem to check that
> the user may have wanted to put his/her
> own label on a frame and it adds its own label to the user defined one.
> It is not that difficult to patch org-e-beamer--format-frame to avoid
> adding label when the user provides its own, but is it
> the right thing to do ?
Considering the remark above, I'm don't think that's the best way to
handle the problem. On the other hand, "label" is an option and should
be treated as such (that is, an user should be able to provide its own
value for it). It is implemented now.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2012-09-04 6:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-03 13:33 Labels in beamer new exporter Fabrice Popineau
2012-09-04 6:40 ` Nicolas Goaziou [this message]
2012-09-04 7:16 ` Fabrice Popineau
2012-09-04 7:51 ` Nicolas Goaziou
2012-09-04 8:08 ` Fabrice Popineau
2012-09-04 9:20 ` Nicolas Goaziou
2012-09-04 12:06 ` Fabrice Popineau
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=87ipbub8a5.fsf@gmail.com \
--to=n.goaziou@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=fabrice.popineau@supelec.fr \
/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).