From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-15?Q?Andreas_R=F6hler?= Subject: Re: How to prevent tabs from turning into spaces in source-code export? Date: Thu, 30 May 2013 15:46:05 +0200 Message-ID: <51A7581D.2010203@easy-emacs.de> References: <87k3mgfvr3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui38d-0001ai-J1 for emacs-orgmode@gnu.org; Thu, 30 May 2013 09:43:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ui38N-0003Ix-8C for emacs-orgmode@gnu.org; Thu, 30 May 2013 09:43:31 -0400 Received: from moutng.kundenserver.de ([212.227.17.9]:53372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui38M-0003Ic-UA for emacs-orgmode@gnu.org; Thu, 30 May 2013 09:43:15 -0400 In-Reply-To: <87k3mgfvr3.fsf@gmail.com> 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@gnu.org Cc: Nicolas Goaziou Am 30.05.2013 15:22, schrieb Nicolas Goaziou: > 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, > Hi Nicolas, as indentation might be provided by TAB and whitespace chars likewise, what about following setting of `indent-tabs-mode'? Best, Andreas