Eric S Fraga <e.fr...@ucl.ac.uk> writes:

[...]

> The question is: how can I tell the exporter to *not* generate label=
> directives?  I have no need for these and, at the moment, I am having to
> edit the LaTeX source to get my slides done.

I found some time to look at the code and it appears that the automatic
creation of labels for frames happens always.  There is no customisation
possible.  As this problem is stopping me from generating the slides I
need for my lectures *now*, I have removed the automatic label
generation, leaving the possibility of user specified labels.  A patch
is attached in case this is of more general interest. 

A better solution would be to have a variable to be able to customise
this behaviour, I imagine.

Thanks,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.2.1-86-gbe3dad
>From 8e841c8caa79707e098d691a44a90c9d9faff073 Mon Sep 17 00:00:00 2001
From: Eric S Fraga <e.fr...@ucl.ac.uk>
Date: Tue, 15 Oct 2013 17:39:40 +0100
Subject: [PATCH] Removed automatic creation of labels for frames in beamer
 export

* lisp/ox-beamer.el (org-beamer--format-frame) The options passed to
the frame command will include only labels defined explicitly in the
org file.  Automatic labels will not be generated.  It seems that
labels prevent beamer from processing other options, allowframebreaks
in particular.
---
 lisp/ox-beamer.el | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/lisp/ox-beamer.el b/lisp/ox-beamer.el
index 74d99ed..6410615 100644
--- a/lisp/ox-beamer.el
+++ b/lisp/ox-beamer.el
@@ -507,14 +507,7 @@ used as a communication channel."
 			   ;; them.
 			   (and (string-match "^\\[?\\(.*\\)\\]?$" beamer-opt)
 				(match-string 1 beamer-opt))
-			   ","))
-		     ;; Provide an automatic label for the frame
-		     ;; unless the user specified one.
-		     (unless (and beamer-opt
-				  (string-match "\\(^\\|,\\)label=" beamer-opt))
-		       (list
-			(format "label=%s"
-				(org-beamer--get-label headline info)))))))
+			   ",")))))
 	      ;; Change options list into a string.
 	      (org-beamer--normalize-argument
 	       (mapconcat
-- 
1.8.1.2

Reply via email to