From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Verse construct generates invalid LaTeX code Date: Mon, 28 Sep 2009 22:10:41 +0200 Message-ID: <21AE691D-157F-4E08-9153-7ACAE11610A4@gmail.com> References: <20090924131032.46d1ce8a@ambitone.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsMZe-0002Zt-7I for emacs-orgmode@gnu.org; Mon, 28 Sep 2009 16:11:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsMZZ-0002Uu-29 for emacs-orgmode@gnu.org; Mon, 28 Sep 2009 16:11:53 -0400 Received: from [199.232.76.173] (port=44180 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsMZY-0002Up-TE for emacs-orgmode@gnu.org; Mon, 28 Sep 2009 16:11:48 -0400 Received: from mail-ew0-f208.google.com ([209.85.219.208]:37239) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MsMZY-0007bD-Ie for emacs-orgmode@gnu.org; Mon, 28 Sep 2009 16:11:48 -0400 Received: by mail-ew0-f208.google.com with SMTP id 4so2890715ewy.31 for ; Mon, 28 Sep 2009 13:11:48 -0700 (PDT) In-Reply-To: <20090924131032.46d1ce8a@ambitone.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Antti Kaihola Cc: emacs-orgmode@gnu.org 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 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