From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Preservation of white space in babel blocks, exporting to PDF Date: Sat, 1 Feb 2014 19:33:22 -0600 Message-ID: References: <87eh3od13z.fsf@gmail.com> <87y51vhjq6.fsf@gmail.com> <87ppn7hhwt.fsf@gmail.com> <87lhxv7mym.fsf@med.uni-goettingen.de> <87a9ebs0dn.fsf@gmail.com> <87ob2qr32x.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d044281928ea6d804f162645d Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9lw5-0000sm-HB for emacs-orgmode@gnu.org; Sat, 01 Feb 2014 20:33:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W9lw4-0006KG-3Z for emacs-orgmode@gnu.org; Sat, 01 Feb 2014 20:33:25 -0500 Received: from mail-oa0-x235.google.com ([2607:f8b0:4003:c02::235]:46399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9lw3-0006KA-TB for emacs-orgmode@gnu.org; Sat, 01 Feb 2014 20:33:24 -0500 Received: by mail-oa0-f53.google.com with SMTP id m1so6676928oag.26 for ; Sat, 01 Feb 2014 17:33:23 -0800 (PST) In-Reply-To: <87ob2qr32x.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: Nicolas Goaziou Cc: Andreas Leha , emacs-orgmode --f46d044281928ea6d804f162645d Content-Type: text/plain; charset=UTF-8 On Feb 1, 2014 2:26 PM, "Nicolas Goaziou" wrote: > > Hello, > > John Hendy writes: > > > On Sat, Feb 1, 2014 at 2:28 AM, Nicolas Goaziou wrote: > > >> There is no discrepancy. You indent your code with tabs and these tabs > >> appear in the TeX file, but Beamer cannot handle them properly. The same > >> problem will arise in an example block. > > > > From whence comes this assumption? In the previous emails, I mentioned > > the different treatment between src and example blocks with the same > > code. I don't know why I'd complain about the .tex containing "some > > sort of tab character" if I'd put it there myself! > > Again, you have `indent-tabs-mode' set to a non-nil value. This is what > I mean by "you indent your code with tabs". What do you mean, "again"? Have you mentioned that variable in this conversation yet? I've not done anything with that variable, as evidenced by the minimal config I sent. Thus, I take it that the default org setting is non-nil? I am a bit frustrated by trying to be as clear as I could about the situation with reproducible examples, and then finding out the behavior was apparently obvious, but due to a variable I didn't know existed... I'll try a fresh pull tomorrow as well as looking at indent-tabs-mode. John > > Babel happens to indent source blocks when re-inserting them after > evaluation. So you get tabs even if you didn't explicitly write them in > the first place. > > > Regards, > > -- > Nicolas Goaziou --f46d044281928ea6d804f162645d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Feb 1, 2014 2:26 PM, "Nicolas Goaziou" <n.goaziou@gmail.com> wrote:
>
> Hello,
>
> John Hendy <jw.hendy@gmail.co= m> writes:
>
> > On Sat, Feb 1, 2014 at 2:28 AM, Nicolas Goaziou <n.goaziou@gmail.com> wrote:
>
> >> There is no discrepancy. You indent your code with tabs and t= hese tabs
> >> appear in the TeX file, but Beamer cannot handle them properl= y. The same
> >> problem will arise in an example block.
> >
> > From whence comes this assumption? In the previous emails, I ment= ioned
> > the different treatment between src and example blocks with the s= ame
> > code. I don't know why I'd complain about the .tex contai= ning "some
> > sort of tab character" if I'd put it there myself!
>
> Again, you have `indent-tabs-mode' set to a non-nil value. This is= what
> I mean by "you indent your code with tabs".

What do you mean, "again"? Have you mentioned that= variable in this conversation yet? I've not done anything with that va= riable, as evidenced by the minimal config I sent. Thus, I take it that the= default org setting is non-nil?

I am a bit frustrated by trying to be as clear as I could ab= out the situation with reproducible examples, and then finding out the beha= vior was apparently obvious, but due to a variable I didn't know existe= d...

I'll try a fresh pull tomorrow as well as looking at ind= ent-tabs-mode.

John

>
> Babel happens to indent source blocks when re-inserting them after
> evaluation. So you get tabs even if you didn't explicitly write th= em in
> the first place.
>
>
> Regards,
>
> --
> Nicolas Goaziou

--f46d044281928ea6d804f162645d--