* Bug: Beamer export error
@ 2017-08-09 11:22 Jarmo Hurri
2017-08-09 12:00 ` Jarmo Hurri
2017-08-09 15:54 ` Rasmus
0 siblings, 2 replies; 7+ messages in thread
From: Jarmo Hurri @ 2017-08-09 11:22 UTC (permalink / raw)
To: emacs-orgmode
Greetings.
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.
Thanks in advance!
Jarmo
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bug: Beamer export error
2017-08-09 11:22 Bug: Beamer export error Jarmo Hurri
@ 2017-08-09 12:00 ` Jarmo Hurri
2017-08-09 15:54 ` Rasmus
1 sibling, 0 replies; 7+ messages in thread
From: Jarmo Hurri @ 2017-08-09 12:00 UTC (permalink / raw)
To: emacs-orgmode
While the bug is being fixed, here is a quick band-aid for anyone else
struggling with this problem.
1. When the export hangs up, press C-g to interrupt.
2. Run the following on the intermediate tex file, here exported.tex :
sed -i 's/\[,/\[/g' exported.tex
3. Run pdflatex by hand:
pdflatex exported.tex
Jarmo
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bug: Beamer export error
2017-08-09 11:22 Bug: Beamer export error Jarmo Hurri
2017-08-09 12:00 ` Jarmo Hurri
@ 2017-08-09 15:54 ` Rasmus
2017-08-10 10:21 ` Nicolas Goaziou
1 sibling, 1 reply; 7+ messages in thread
From: Rasmus @ 2017-08-09 15:54 UTC (permalink / raw)
To: emacs-orgmode; +Cc: mail
Hi Jarmo,
Thanks for your report.
Jarmo Hurri <jarmo.hurri@iki.fi> 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!
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bug: Beamer export error
2017-08-09 15:54 ` Rasmus
@ 2017-08-10 10:21 ` Nicolas Goaziou
2017-08-10 18:35 ` Rasmus
0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2017-08-10 10:21 UTC (permalink / raw)
To: Rasmus; +Cc: emacs-orgmode
Hello,
Rasmus <rasmus@gmx.us> writes:
> 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.
I think the new behaviour is correct, because it is equivalent to
(split-string "" ",")
Do you want to fix it?
Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bug: Beamer export error
2017-08-10 10:21 ` Nicolas Goaziou
@ 2017-08-10 18:35 ` Rasmus
2017-08-10 20:29 ` Nicolas Goaziou
2017-08-13 6:08 ` Jarmo Hurri
0 siblings, 2 replies; 7+ messages in thread
From: Rasmus @ 2017-08-10 18:35 UTC (permalink / raw)
To: emacs-orgmode
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Hello,
>
> Rasmus <rasmus@gmx.us> writes:
>
>> 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.
>
> I think the new behaviour is correct, because it is equivalent to
>
> (split-string "" ",")
>
> Do you want to fix it?
It should be fixed by commit 323fc95b4.
Thanks,
Rasmus
--
Tack, ni svenska vakttorn. Med plutonium tvingar vi dansken på knä!
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bug: Beamer export error
2017-08-10 18:35 ` Rasmus
@ 2017-08-10 20:29 ` Nicolas Goaziou
2017-08-13 6:08 ` Jarmo Hurri
1 sibling, 0 replies; 7+ messages in thread
From: Nicolas Goaziou @ 2017-08-10 20:29 UTC (permalink / raw)
To: Rasmus; +Cc: emacs-orgmode
Hello,
Rasmus <rasmus@gmx.us> writes:
> It should be fixed by commit 323fc95b4.
Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bug: Beamer export error
2017-08-10 18:35 ` Rasmus
2017-08-10 20:29 ` Nicolas Goaziou
@ 2017-08-13 6:08 ` Jarmo Hurri
1 sibling, 0 replies; 7+ messages in thread
From: Jarmo Hurri @ 2017-08-13 6:08 UTC (permalink / raw)
To: emacs-orgmode
Rasmus <rasmus@gmx.us> writes:
> It should be fixed by commit 323fc95b4.
Thank you very much, seems to be in order again.
Jarmo
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-08-13 6:08 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-09 11:22 Bug: Beamer export error Jarmo Hurri
2017-08-09 12:00 ` Jarmo Hurri
2017-08-09 15:54 ` Rasmus
2017-08-10 10:21 ` Nicolas Goaziou
2017-08-10 18:35 ` Rasmus
2017-08-10 20:29 ` Nicolas Goaziou
2017-08-13 6:08 ` Jarmo Hurri
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).