From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?VWZmZSBIw7hnc2JybyBUaHlnZXNlbg==?= Subject: Re: Bug: Line breaks in exported LaTeX code [7.8.11] Date: Thu, 14 Jun 2012 14:11:01 +0200 Message-ID: <4FD9D4D5.2000104@aqua.dtu.dk> References: <4FD1E1A1.8010504@aqua.dtu.dk> <87haufcl9k.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sf8tS-0008Ab-Uy for emacs-orgmode@gnu.org; Thu, 14 Jun 2012 08:11:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sf8tJ-0006dI-O3 for emacs-orgmode@gnu.org; Thu, 14 Jun 2012 08:11:18 -0400 Received: from winsmtp1.win.dtu.dk ([192.38.82.161]:1753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sf8tJ-0006c5-H8 for emacs-orgmode@gnu.org; Thu, 14 Jun 2012 08:11:09 -0400 In-Reply-To: <87haufcl9k.fsf@ucl.ac.uk> 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: e.fraga@ucl.ac.uk Cc: emacs-orgmode@gnu.org Hi Eric Thanks! No, I hadn't thought of that, silly me. It turns out that the following line in my .emacs caused the problems: (add-hook 'LaTeX-mode-hook 'longlines-mode) So now I have commented that one out and the export works fine and has all the line breaks I had expected. I guess I will just enable longlines mode manually when editing LaTeX from now on. Thanks again for the pointer! Cheers Uffe On 06/13/2012 04:57 PM, Eric S Fraga wrote: > Uffe Høgsbro Thygesen writes: > >> Greetings Orgs >> >> When exporting an .org file to LaTeX, no line breaks are inserted into >> the LaTeX source code. With default options from a fresh install, the >> LaTeX code will not compile, because documentclass information appears >> on the first line of the LaTeX source, which is a comment: >> >> % Created 2012-06-08 Fri 12:58 \documentclass{article} [...] > This doesn't happen to me. Have you tried with "emacs -Q" to ensure > that it's not something in your configuration? > >