From mboxrd@z Thu Jan 1 00:00:00 1970 From: Antti Kaihola Subject: Verse construct generates invalid LaTeX code Date: Thu, 24 Sep 2009 13:10:32 +0300 Message-ID: <20090924131032.46d1ce8a@ambitone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqlHo-0008DO-M3 for emacs-orgmode@gnu.org; Thu, 24 Sep 2009 06:10:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqlHn-0008DC-Lx for emacs-orgmode@gnu.org; Thu, 24 Sep 2009 06:10:52 -0400 Received: from [199.232.76.173] (port=53111 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqlHn-0008D9-HH for emacs-orgmode@gnu.org; Thu, 24 Sep 2009 06:10:51 -0400 Received: from loitsu.ambitone.com ([84.34.147.105]:4151 helo=vmail.ambitone.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MqlHm-0007Mq-Ui for emacs-orgmode@gnu.org; Thu, 24 Sep 2009 06:10:51 -0400 Received: from localhost (a88-114-25-112.elisa-laajakaista.fi [88.114.25.112]) by vmail.ambitone.com (Postfix) with ESMTP id 3B5DB317F0 for ; Thu, 24 Sep 2009 13:09:51 +0300 (EEST) 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: emacs-orgmode@gnu.org 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