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: Andreas Röhler
Subject: Re: [O] How to prevent tabs from turning into spaces in source-code export?
Date: Thu, 30 May 2013 15:46:05 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5

Am 30.05.2013 15:22, schrieb Nicolas Goaziou:
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,


Hi Nicolas,

as indentation might be provided by TAB and whitespace chars likewise, what 
about following setting of `indent-tabs-mode'?

Best,

Andreas



reply via email to

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