[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: Beamer export error
From: |
Rasmus |
Subject: |
Re: [O] Bug: Beamer export error |
Date: |
Wed, 09 Aug 2017 17:54:02 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Hi Jarmo,
Thanks for your report.
Jarmo Hurri <address@hidden> 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!