emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] How to prevent tabs from turning into spaces in source-code expo


From: Nicolas Goaziou
Subject: Re: [O] How to prevent tabs from turning into spaces in source-code export?
Date: Thu, 30 May 2013 15:22:08 +0200

Hello,

James Harkins <address@hidden> writes:

> I have (where <TAB> is a tab character):
>
> #+BEGIN_SRC {}
> // SuperCollider code here
>
> (
> r = p.chan.play(Pspawner { |sp|
> <TAB>var num, subdiv,
> ...
> });
> )
> #+END_SRC
>
> The exported .tex file contains:
>
> \begin{lstlisting}
> // SuperCollider code here
>
> (
> r = p.chan.play(Pspawner { |sp|
> <spc><spc><spc><spc><spc><spc><spc><spc>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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]