From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Bug: Beamer export error Date: Wed, 09 Aug 2017 17:54:02 +0200 Message-ID: <87tw1gag9x.fsf@gmx.us> References: <87poc5t27q.fsf@iki.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfTJU-0005VE-U5 for emacs-orgmode@gnu.org; Wed, 09 Aug 2017 11:54:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dfTJQ-0002c3-VD for emacs-orgmode@gnu.org; Wed, 09 Aug 2017 11:54:28 -0400 Received: from [195.159.176.226] (port=54671 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dfTJQ-0002aI-Oy for emacs-orgmode@gnu.org; Wed, 09 Aug 2017 11:54:24 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dfTJC-0003bq-Ne for emacs-orgmode@gnu.org; Wed, 09 Aug 2017 17:54:10 +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" To: emacs-orgmode@gnu.org Cc: mail@nicolasgoaziou.fr Hi Jarmo, Thanks for your report. Jarmo Hurri writes: > I get an error (pdflatex hangs up) when trying to Beamer export the > following simple Org file (key command C-c C-e l O). > > # ----------------------------------------------------------------- > > #+STARTUP: beamer > > * This is a simple test > - let us see what happens > # ----------------------------------------------------------------- > > I have traced the issue to the extra comma in the following line in the > exported TeX file: > > \begin{frame}[,label={sec:org03f80c8}]{This is a simple test} > > If you remove the extra comma, then the file compiles just fine. This is caused by this commit, which changes how org-split-string works. f776e65373fa135fffb51e201698823fbfb3865b Before (org-split-string "" ",") would return ‘nil’. Now it returns "". Depending on whether the new behavior is desired or not, the fix should either be in ‘org-split-string’ or in ‘org-beamer--format-frame’. I’ll wait for Nicolas’ verdict. For now, if necessary, you can hot-patch the function in ox-beamer.el to something like, (options (cl-remove-if-not 'org-string-nw-p (append ...))) Rasmus -- Vote for proprietary math!