From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Preservation of white space in babel blocks, exporting to PDF Date: Thu, 30 Jan 2014 23:58:05 -0600 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9779-0007HA-Pj for emacs-orgmode@gnu.org; Fri, 31 Jan 2014 00:58:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W9779-0004D9-2l for emacs-orgmode@gnu.org; Fri, 31 Jan 2014 00:58:07 -0500 Received: from mail-oa0-x230.google.com ([2607:f8b0:4003:c02::230]:45405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9778-0004D5-TX for emacs-orgmode@gnu.org; Fri, 31 Jan 2014 00:58:07 -0500 Received: by mail-oa0-f48.google.com with SMTP id l6so4746502oag.35 for ; Thu, 30 Jan 2014 21:58:06 -0800 (PST) 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 Greetings, I'm sure this is just a variable I've overlooked, but I'm wondering if it's possible to export code blocks as they appear, with whitespace preserved for better formatting in the resultant LaTeX document (I'm using Beamer in this case). Currently, the leading spaces in my blocks seem to be mostly removed (I might have 8 or so to keep options in R code aligned, and the block exports with 1-2 instead). If I used #+begin/end_example instead of #+begin/end_src, it works properly. The closest I found in my googling for a solution/setting/variable was the variable =org-src-preserve-indentation=, but that seems to only have to do with tangling. Thanks for any suggestions, John