From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: ox-beamer and CUSTOM_ID Date: Thu, 15 Oct 2015 21:48:30 +0200 Message-ID: <87oafz6hgx.fsf@nicolasgoaziou.fr> References: <87pp0izi1f.fsf@nicolasgoaziou.fr> <87h9luzgyd.fsf@nicolasgoaziou.fr> <874mhuze22.fsf@nicolasgoaziou.fr> <87vbaaxvia.fsf@nicolasgoaziou.fr> <87k2qpy85j.fsf@nicolasgoaziou.fr> <87wpuowmrn.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45239) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmoUD-0002CA-4T for emacs-orgmode@gnu.org; Thu, 15 Oct 2015 15:46:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZmoUC-0007me-Bz for emacs-orgmode@gnu.org; Thu, 15 Oct 2015 15:46:49 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:33385) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmoUC-0007lg-5U for emacs-orgmode@gnu.org; Thu, 15 Oct 2015 15:46:48 -0400 In-Reply-To: (Fabrice Popineau's message of "Thu, 15 Oct 2015 21:25:45 +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: > Oh! I got it. > > The problem is that beamer expects braces around a label with colon when > you setup the label > but *not when you ref it* : > > \begin{frame}[label={sec:orgheadline1}]{Frame 1} > bla bla bla bla bla bla bla bla bla bla bla bla > \end{frame} > > \againframe{sec:orgheadline1} > > The braces at setup are required by the keyval package which is used to > parse the options. > However, the label is called sec:orgheadline1 and not {sec:orgheadline1}. > But at the moment, ox-beamer outputs : > > \againframe{{sec:orgheadline1}} > > I fixed it unintentionally by using my own label without colon. > > So basically you need this: > > diff --git a/vendor/org-mode/lisp/ox-beamer.el > b/vendor/org-mode/lisp/ox-beamer.el > index 24dcf19..75b51df 100644 > --- a/vendor/org-mode/lisp/ox-beamer.el > +++ b/vendor/org-mode/lisp/ox-beamer.el > @@ -621,7 +623,7 @@ as a communication channel." > (org-export-resolve-id-link link > info)))) > ;; Now use user-defined label provided in TARGET > ;; headline, or fallback to standard one. > - (format "{%s}" (org-beamer--get-label target > info))))))) > + (format "%s" (org-beamer--get-label target info))))))) > ;; Case 2: Creation of an appendix is requested. > ((equal environment "appendix") > (concat "\\appendix" Thanks for the debugging. Do you want to provide a patch against maint for this ? Note that your library needs to be updated. Regards,