From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug] Latex export of lists (was Re: Problem with BEGIN_SRC export-as-latex and FORTRAN code) Date: Thu, 23 Jun 2011 15:28:21 +0200 Message-ID: <8739j0r822.fsf@gmail.com> References: <87aadbyzmg.fsf@ucl.ac.uk> <87aadb5a8f.fsf@ucl.ac.uk> <87r56mrip6.fsf@gmail.com> <871uymfe7v.fsf@ucl.ac.uk> <87mxhaqbe3.fsf@gmail.com> <8739j2uh43.fsf@ucl.ac.uk> <11087.1308753236@alphaville.dokosmarshall.org> <87vcvxpwla.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:57144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZjxQ-000534-1K for emacs-orgmode@gnu.org; Thu, 23 Jun 2011 09:28:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZjxO-0001xu-13 for emacs-orgmode@gnu.org; Thu, 23 Jun 2011 09:28:31 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:47137) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZjxN-0001xX-4C for emacs-orgmode@gnu.org; Thu, 23 Jun 2011 09:28:29 -0400 Received: by wyg36 with SMTP id 36so1579741wyg.0 for ; Thu, 23 Jun 2011 06:28:27 -0700 (PDT) In-Reply-To: <87vcvxpwla.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Wed, 22 Jun 2011 19:09:05 +0100") 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: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org Hello, Eric S Fraga writes: > I've gone through my whole config and have tracked down the problem: > > : (setq org-src-preserve-indentation t) Nice. It helps a lot. > if I have this line present, the latex export doesn't work; if I remove > this line, the export works as it should. This would appear to be a bug > in the exporter? The culprit is `org-export-blocks-preprocess' which sticks #+begin_src and #+end_src to column 0 when org-src-preserve-indentation is non-nil. It should at least keep original indentation of block, or set original-indentation property to it. Also, I think there may be a bug in `org-export-replace-src-segments-and-examples' as indent local variable is computed as the length of a white-spaces string. Indeed, this may lead to problems when the indent string is made of tabs (i.e. 1 tab doesn't mean indentation is 1). Untested, though. Eric Schulte, do you have time to look at this problem, or shall I investigate a bit more? Regards, -- Nicolas Goaziou