* Verse construct generates invalid LaTeX code
@ 2009-09-24 10:10 Antti Kaihola
2009-09-28 20:10 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Antti Kaihola @ 2009-09-24 10:10 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Verse construct generates invalid LaTeX code
2009-09-24 10:10 Verse construct generates invalid LaTeX code Antti Kaihola
@ 2009-09-28 20:10 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2009-09-28 20:10 UTC (permalink / raw)
To: Antti Kaihola; +Cc: emacs-orgmode
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.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-28 20:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-24 10:10 Verse construct generates invalid LaTeX code Antti Kaihola
2009-09-28 20:10 ` Carsten Dominik
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).