emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Verse construct generates invalid LaTeX code


From: Carsten Dominik
Subject: Re: [Orgmode] Verse construct generates invalid LaTeX code
Date: Mon, 28 Sep 2009 22:10:41 +0200

Hi Antti,

I fixed this issue, thanks.

- Carsten

On Sep 24, 2009, at 11:10 AM, Antti Kaihola wrote:

Here's an example file:


-----------------------------versetest.org
Test case for verse bug

#+BEGIN_VERSE
This is
the first stanza.

This is
the second stanza.
#+END_VERSE
-----------------------------versetest.org


It generates the following LaTeX code with the C-c C-e L command
(excerpt with line numbers added):


-----------------------------versetest.tex
22: \begin{verse}
23: This is\\
24: the first stanza.\\
25: \\
26: This is\\
27: the second stanza.\\
28: \end{verse}
-----------------------------versetest.tex


When compiled with pdflatex, it causes this error:


-----------------------------pdflatex output
! LaTeX Error: There's no line here to end.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
...

l.25 \\
-----------------------------pdflatex output


Org-mode probably instructs pdflatex to ignore errors since C-c C-e d
compiles the .org file just fine, just without any break between
the stanzas.

Edition 1.6 of the LaTeX2e documentation states:

Separate the lines of each stanza with \\, and use one or more blank
lines to separate the stanzas,

so the correct LaTeX output would be:


-----------------------------corrected versetest.tex
22: \begin{verse}
23: This is\\
24: the first stanza.
25:
26: This is\\
27: the second stanza.
28: \end{verse}
-----------------------------corrected versetest.tex


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





reply via email to

[Prev in Thread] Current Thread [Next in Thread]