From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Labels in beamer new exporter Date: Tue, 04 Sep 2012 08:40:18 +0200 Message-ID: <87ipbub8a5.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8mry-00082u-Vg for emacs-orgmode@gnu.org; Tue, 04 Sep 2012 02:44:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T8mrv-0004hZ-IQ for emacs-orgmode@gnu.org; Tue, 04 Sep 2012 02:44:18 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:35493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8mrv-0004fT-Bu for emacs-orgmode@gnu.org; Tue, 04 Sep 2012 02:44:15 -0400 Received: by wibhq4 with SMTP id hq4so3629664wib.12 for ; Mon, 03 Sep 2012 23:44:14 -0700 (PDT) In-Reply-To: (Fabrice Popineau's message of "Mon, 3 Sep 2012 15:33:36 +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 Hello, Fabrice Popineau 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