emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] source block exported with tabs replacing spaces?


From: Rainer M Krug
Subject: Re: [O] source block exported with tabs replacing spaces?
Date: Wed, 10 Jun 2015 14:43:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin)

Alan Schmitt <address@hidden> writes:

> Hello,
>
> I'm working on a presentation and I noticed that some of my source
> blocks have spaces exported as tabs. Here is an example:
>
>  #+begin_src js :wrap center :results output :exports both
>  console.log((![]+[])[+!+[]]+
>              (![]+[])[!+[]+!+[]]+
>              (![]+[])[+!+[]]+
>              ([][[]]+[])[+!+[]])
>  #+end_src
>
> get exported to the following latex code
>  \begin{minted}[frame=lines,fontsize=\scriptsize]{js}
> console.log((![]+[])[+!+[]]+
>           (![]+[])[!+[]+!+[]]+
>           (![]+[])[+!+[]]+
>           ([][[]]+[])[+!+[]])
> \end{minted}
>
> (Note the tabs instead of the 8 spaces). I have `indent-tabs-mode' set
> to nil in both the file and the exporter setting (I'm using the
> asynchronous exporter with a specified file).
>
> How can I tell org to preserve the spaces?

This might not be org, but minted in LaTex which is formating the code
blocks. I would look there if there is an option to disable the
replacement of tabs with strings.

Cheers,

Rainer

>
> Thanks,

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      address@hidden

Skype:      RMkrug

PGP: 0x0F52F982

Attachment: signature.asc
Description: PGP signature


reply via email to

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