From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Bug with label names in beamer export Date: Tue, 16 Jun 2015 21:11:16 +0200 Message-ID: <20150616191116.GC20184@chitra.no-ip.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="sm4nu43k4a2Rpi4c" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4wGX-0001yJ-KD for emacs-orgmode@gnu.org; Tue, 16 Jun 2015 15:11:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4wGW-00069L-DG for emacs-orgmode@gnu.org; Tue, 16 Jun 2015 15:11:21 -0400 Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:34277) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4wGW-00069E-6U for emacs-orgmode@gnu.org; Tue, 16 Jun 2015 15:11:20 -0400 Received: by wicnd19 with SMTP id nd19so61833070wic.1 for ; Tue, 16 Jun 2015 12:11:19 -0700 (PDT) Received: from chitra.no-ip.org ([2001:610:120:3001:2ad2:44ff:fe4a:b029]) by mx.google.com with ESMTPSA id kc4sm3041954wjc.2.2015.06.16.12.11.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jun 2015 12:11:18 -0700 (PDT) Content-Disposition: inline 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: Emacs Org mode --sm4nu43k4a2Rpi4c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, I encountered a strange problem today, exporting to beamer didn't produce any pages eventhough it compiled just fine! It turns out it's how Org exported the labels. They should be wrapped in {..}. See this TeX.SX question for more: http://tex.stackexchange.com/q/250640/4416 The attached patch should fix the issue. Cheers, -- Suvayu Open source is the future. It sets us free. --sm4nu43k4a2Rpi4c Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-ox-beamer-Wrap-labels-in-braces-in-beamer-export.patch" >From e82cd7bf86dc01d1038a442fd66ba8b97ec7a23e Mon Sep 17 00:00:00 2001 From: Suvayu Ali Date: Tue, 16 Jun 2015 21:04:21 +0200 Subject: [PATCH] ox-beamer: Wrap labels in braces in beamer export * lisp/ox-beamer.el (org-beamer--get-label): wrap labels in {..} The `:' in the label name causes an argument parsing problem, for more see . --- lisp/ox-beamer.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox-beamer.el b/lisp/ox-beamer.el index dafadb3..3119bd4 100644 --- a/lisp/ox-beamer.el +++ b/lisp/ox-beamer.el @@ -337,7 +337,7 @@ function assumes HEADLINE will be treated as a frame." (if (and (stringp opt) (string-match "\\(?:^\\|,\\)label=\\(.*?\\)\\(?:$\\|,\\)" opt)) (match-string 1 opt) - (concat "sec:" (org-export-get-reference headline info))))) + (format "{sec:%s}" (org-export-get-reference headline info))))) (defun org-beamer--frame-level (headline info) "Return frame level in subtree containing HEADLINE. -- 2.4.3 --sm4nu43k4a2Rpi4c--