From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: keep newlines on pdf export Date: Sun, 13 Dec 2009 13:21:51 -0500 Message-ID: <31640.1260728511@gamaville.dokosmarshall.org> References: <1bcd1ad60912121704s1cfd465dh95b942c2be78d30a@mail.gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NJt5p-00037H-AO for emacs-orgmode@gnu.org; Sun, 13 Dec 2009 13:22:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NJt5k-00031H-SV for emacs-orgmode@gnu.org; Sun, 13 Dec 2009 13:22:52 -0500 Received: from [199.232.76.173] (port=36184 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJt5k-00030o-Gv for emacs-orgmode@gnu.org; Sun, 13 Dec 2009 13:22:48 -0500 Received: from vms173009pub.verizon.net ([206.46.173.9]:63122) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NJt5k-0004G4-4u for emacs-orgmode@gnu.org; Sun, 13 Dec 2009 13:22:48 -0500 Received: from gamaville.dokosmarshall.org ([173.76.32.106]) by vms173009.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KUL00IECSB0J3BB@vms173009.mailsrvcs.net> for emacs-orgmode@gnu.org; Sun, 13 Dec 2009 12:21:06 -0600 (CST) In-reply-to: Message from Eraldo Helal of "Sun, 13 Dec 2009 02:04:28 +0100." <1bcd1ad60912121704s1cfd465dh95b942c2be78d30a@mail.gmail.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: Eraldo Helal Cc: Org-Mode Eraldo Helal wrote: > When I export an org file like the following to pdf: > test.org > > line1 > > line2 > > line3 > > what I get is: > test.pdf > > line1 line2 line3 > > however, I would like to get the following in the pdf: > test.pdf > > line1 > > line2 > > line3 > > How can I get pdf export to keep my org newlines? > Remark: I do have "\n:t" set in my options line. > org-to-pdf is really org-to-latex-to-pdf, and generally speaking[1] newlines in latex are not significant. One way to make them significant is line1\\ line2\\ line3 Another might be #+LATEX: \obeylines { %} line1 line2 line3 #+LATEX: } The %} might or might not be necessary to prevent the org LaTeX exporter from complaining, but it's a useful workaround for an area that has had problems in the past. HTH, Nick [1] with exceptions, e.g. paragraph demarcation.