From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Preservation of white space in babel blocks, exporting to PDF Date: Sat, 01 Feb 2014 00:04:50 +0100 Message-ID: <87ppn7hhwt.fsf@gmail.com> References: <87eh3od13z.fsf@gmail.com> <87y51vhjq6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9N8W-00071m-Kn for emacs-orgmode@gnu.org; Fri, 31 Jan 2014 18:04:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W9N8O-00079M-8K for emacs-orgmode@gnu.org; Fri, 31 Jan 2014 18:04:36 -0500 Received: from mail-we0-x22f.google.com ([2a00:1450:400c:c03::22f]:48820) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9N8O-00079H-0x for emacs-orgmode@gnu.org; Fri, 31 Jan 2014 18:04:28 -0500 Received: by mail-we0-f175.google.com with SMTP id q59so190257wes.20 for ; Fri, 31 Jan 2014 15:04:27 -0800 (PST) In-Reply-To: (John Hendy's message of "Fri, 31 Jan 2014 16:46:28 -0600") 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: John Hendy Cc: emacs-orgmode John Hendy writes: >> I cannot reproduce the problem. > > In the .tex file or in the .pdf? Both. > I know that #+begin/end_example works properly, so I took a look at > the difference between them: > > \begin{frame}[fragile,label=sec-1]{begin src} > \begin{verbatim} > a <- "Test of whitespace preservation" > > b <- cat("Let's see what happens when we spill", > "onto multiple lines but want the text", > "being passed to cat() to be aligned") > \end{verbatim} > \end{frame} I don't know why or how you get this, but this has nothing to do with `org-src-preserve-indentation' since there in no global indentation in your code (i.e., a line starts at column 0). > \begin{frame}[fragile,label=sec-2]{begin example} > \begin{verbatim} > a <- "Test of whitespace preservation" > > b <- cat("Let's see what happens when we spill", > "onto multiple lines but want the text", > "being passed to cat() to be aligned") > \end{verbatim} > \end{frame} > \end{document} > > Source blocks are exported with what appears to be some sort of tab > character; You can use C-u C-x = in order to know what it is. What happens if you run (org-export-execute-babel-code) on your Org buffer? Regards, -- Nicolas Goaziou