From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: How to prevent tabs from turning into spaces in source-code export? Date: Thu, 30 May 2013 15:22:08 +0200 Message-ID: <87k3mgfvr3.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui2nv-0007NM-Tu for Emacs-orgmode@gnu.org; Thu, 30 May 2013 09:22:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ui2nr-00082P-Es for Emacs-orgmode@gnu.org; Thu, 30 May 2013 09:22:07 -0400 Received: from mail-wg0-x22b.google.com ([2a00:1450:400c:c00::22b]:36873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui2nr-00082E-8o for Emacs-orgmode@gnu.org; Thu, 30 May 2013 09:22:03 -0400 Received: by mail-wg0-f43.google.com with SMTP id x12so221397wgg.34 for ; Thu, 30 May 2013 06:22:02 -0700 (PDT) In-Reply-To: (James Harkins's message of "Thu, 30 May 2013 19:19:01 +0800") 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: jamshark70@dewdrop-world.net Cc: "Emacs-orgmode@gnu.org" Hello, James Harkins writes: > I have (where is a tab character): > > #+BEGIN_SRC {} > // SuperCollider code here > > ( > r = p.chan.play(Pspawner { |sp| > var num, subdiv, > ... > }); > ) > #+END_SRC > > The exported .tex file contains: > > \begin{lstlisting} > // SuperCollider code here > > ( > r = p.chan.play(Pspawner { |sp| > var num, subdiv, > ... > }); > ) > \end{lstlisting} > > I do not want this conversion to happen. If it doesn't happen, then I > can use listings' tabsize property to control the tab width. Try to preserve indentation: #+begin_src {} -i ... #+end_src Regards, -- Nicolas Goaziou