emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to prevent tabs from turning into spaces in source-code export?
@ 2013-05-30 11:19 James Harkins
  2013-05-30 13:22 ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: James Harkins @ 2013-05-30 11:19 UTC (permalink / raw)
  To: Emacs-orgmode@gnu.org

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.

Failing that, how do I tell org to use fewer than 8 spaces? The tabs
are much much too wide in the resulting pdf.

hjh

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-30 15:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-30 11:19 How to prevent tabs from turning into spaces in source-code export? James Harkins
2013-05-30 13:22 ` Nicolas Goaziou
2013-05-30 13:46   ` Andreas Röhler
2013-05-30 15:24     ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).