From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: Re: Do not export single newlines to latex Date: Mon, 9 Jun 2014 07:42:08 +0000 (UTC) Message-ID: References: <87singocwz.fsf@mailbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtuDs-0003Et-Lj for emacs-orgmode@gnu.org; Mon, 09 Jun 2014 03:42:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WtuDn-0002Ji-12 for emacs-orgmode@gnu.org; Mon, 09 Jun 2014 03:42:28 -0400 Received: from plane.gmane.org ([80.91.229.3]:39334) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtuDm-0002In-JP for emacs-orgmode@gnu.org; Mon, 09 Jun 2014 03:42:22 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WtuDk-0006Cs-BF for emacs-orgmode@gnu.org; Mon, 09 Jun 2014 09:42:20 +0200 Received: from 192.159.160.69 ([192.159.160.69]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Jun 2014 09:42:20 +0200 Received: from jamshark70 by 192.159.160.69 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Jun 2014 09:42:20 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Alexander Baier mailbox.org> writes: > I am writing a document for which my main export target is latex. To > obtain reasonable diffs wrt version control systems, I use one line > per sentence in addition to =visual-line-mode= as was mentioned in this > post last November http://thread.gmane.org/gmane.emacs.orgmode/78332. > > The problem with this is that these newlines get translated to newlines > in latex aka "\\". I use the LaTeX exporter routinely, and I have never seen this behavior. For instance, ~~~ org input file * Headline The first sentence. The second sentence. ~~~ ~~~ LaTeX export (minus preamble) \begin{document} \maketitle \tableofcontents \section{Headline} \label{sec-1} The first sentence. The second sentence. % Emacs 23.3.1 (Org mode 8.2.5f) \end{document} ~~~ I also checked the customization variables in the org-export-latex group, and I didn't see anything immediately relevant to newline translation. So I can think of a couple of possibilities: - You might have some strange configuration lying around somewhere. (Additional evidence that you're seeing nonstandard behavior is that none of the .el files in the org distribution contain the string 'newline', let alone ''.) - Or you might be using a newer org than I'm using, in which case you might be seeing a regression bug. (As far as I know, a single line break in the input should definitely not translate into "\\"!!) > I want the export back end to ignore those > single newlines and only insert "\\" into the latex document > upon encountering two consecutive newlines in my org-mode file. Two consecutive line breaks in the input should be copied over directly into the .tex file. It's then up to LaTeX to interpret this -- per its own standards -- as a paragraph break. Again, "\\" would be quite exceptional. hjh