From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: ox-beamer and CUSTOM_ID Date: Tue, 13 Oct 2015 21:50:02 +0200 Message-ID: <87h9luzgyd.fsf@nicolasgoaziou.fr> References: <87pp0izi1f.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm5Yb-0002aP-S2 for emacs-orgmode@gnu.org; Tue, 13 Oct 2015 15:48:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zm5Yb-0006DD-1P for emacs-orgmode@gnu.org; Tue, 13 Oct 2015 15:48:21 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:38359) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm5Ya-0006D6-Rl for emacs-orgmode@gnu.org; Tue, 13 Oct 2015 15:48:20 -0400 In-Reply-To: (Fabrice Popineau's message of "Tue, 13 Oct 2015 21:38:48 +0200") 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 Cc: "emacs-orgmode@gnu.org" 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. > The code at stake is : > ox-beamer:org-beamer-headline which calls ox-beamer:org-beamer--get-label > at line 624 > > Clearly, org-beamer--get-label doesn't make use of CUSTOM_ID. It doesn't need to, since CUSTOM_ID will not be used anyway in the final output. Regards,