From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Re: ox-beamer and CUSTOM_ID Date: Tue, 13 Oct 2015 21:58:24 +0200 Message-ID: References: <87pp0izi1f.fsf@nicolasgoaziou.fr> <87h9luzgyd.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b41904b7ebcd6052201dfde Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm5im-0000NA-55 for emacs-orgmode@gnu.org; Tue, 13 Oct 2015 15:58:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zm5ie-000094-9K for emacs-orgmode@gnu.org; Tue, 13 Oct 2015 15:58:45 -0400 Received: from mail-ob0-x231.google.com ([2607:f8b0:4003:c01::231]:35791) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm5ie-00008w-3i for emacs-orgmode@gnu.org; Tue, 13 Oct 2015 15:58:44 -0400 Received: by obbzf10 with SMTP id zf10so22918473obb.2 for ; Tue, 13 Oct 2015 12:58:43 -0700 (PDT) In-Reply-To: <87h9luzgyd.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Fabrice Popineau , "emacs-orgmode@gnu.org" --047d7b41904b7ebcd6052201dfde Content-Type: text/plain; charset=UTF-8 2015-10-13 21:50 GMT+02:00 Nicolas Goaziou : > Fabrice Popineau writes: > > > 2015-10-13 21:26 GMT+02:00 Nicolas Goaziou : > > > >> Hello, > >> > >> I don't understand the issue. BEAMER_REF: #foo generates the same > >> internal reference as :CUSTOM_ID: foo, doesn't it? > >> > >> > > My point is that you need to set : > > > > * Frame 1 > > :PROPERTIES: > > :BEAMER_OPT: label=foo > > :END: > > > > * Frame 2 > > :PROPERTIES: > > :BEAMER_env: againframe > > :BEAMER_ref: #foo > > :END: > > If I try to export this file, I get an error: > > user-error: Unable to resolve link: "foo" > > which is to be expected since :CUSTOM_ID: foo doesn't exist. > > > because if you use CUSTOM_ID in the first frame, the link is not > > resolved. > > It should be. With the following document > > * Frame 1 > :PROPERTIES: > :CUSTOM_ID: foo > :END: > > * Frame 2 > :PROPERTIES: > :BEAMER_env: againframe > :BEAMER_ref: #foo > :END: > > I get > > \begin{document} > > \begin{frame}[label={sec:orgheadline1}]{Frame 1} > \end{frame} > > \againframe{{sec:orgheadline1}} > \end{document} > > So, I'm still puzzled. This time , I'm the one who is puzzled: what is the point in naming the link "foo" and getting sec:orgheadline1 instead? :-) If you add :BEAMER_OPT: label=foo to the properties of the first frame, then you get the foo label. But that doesn't seem very obvious to me. Why not taking directly the CUSTOM_ID label ? Fabrice --047d7b41904b7ebcd6052201dfde Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


2015-10-13 21:50 GMT+02:00 Nicolas Goaziou <mail@nicolasgoaziou.f= r>:
Fabric= e Popineau <fabrice.popine= au@gmail.com> writes:

> 2015-10-13 21:26 GMT+02:00 Nicolas Goaziou <mail@nicolasgoaziou.fr>:
>
>> Hello,
>>
>> I don't understand the issue. BEAMER_REF: #foo generates the s= ame
>> internal reference as :CUSTOM_ID: foo, doesn't it?
>>
>>
> My point is that you need to set :
>
> * Frame 1
> :PROPERTIES:
> :BEAMER_OPT: label=3Dfoo
> :END:
>
> * Frame 2
> :PROPERTIES:
> :BEAMER_env: againframe
> :BEAMER_ref: #foo
> :END:

If I try to export this file, I get an error:

=C2=A0 user-error: Unable to resolve link: "foo"

which is to be expected since :CUSTOM_ID: foo doesn't exist.

> because if you use CUSTOM_ID in the first frame, the link is not
> resolved.

It should be. With the following document

=C2=A0 * Frame 1
=C2=A0 :PROPERTIES:
=C2=A0 :CUSTOM_ID: foo
=C2=A0 :END:

=C2=A0 * Frame 2
=C2=A0 :PROPERTIES:
=C2=A0 :BEAMER_env: againframe
=C2=A0 :BEAMER_ref: #foo
=C2=A0 :END:

I get

=C2=A0 \begin{document}

=C2=A0 \begin{frame}[label=3D{sec:orgheadline1}]{Frame 1}
=C2=A0 \end{frame}

=C2=A0 \againframe{{sec:orgheadline1}}
=C2=A0 \end{document}

So, I'm still puzzled.
=C2=A0
This time , I&= #39;m the one who is puzzled:
what is the point in naming the lin= k "foo" and getting sec:orgheadline1 instead? :-)

<= /div>
If you add :BEAMER_OPT: label=3Dfoo=C2=A0
to the proper= ties of the first frame, then you get the foo label.
But that doe= sn't seem very obvious to me. Why not taking directly the CUSTOM_ID lab= el ?

Fabrice

--047d7b41904b7ebcd6052201dfde--