From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Malone Subject: Re: [Babel] The first line of the code blocks disappears in the tangled file Date: Wed, 8 Dec 2010 09:24:42 -0500 Message-ID: References: <8062v4l9f0.fsf@missioncriticalit.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0939744777==" Return-path: Received: from [140.186.70.92] (port=38637 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQKwo-0004Mr-U4 for emacs-orgmode@gnu.org; Wed, 08 Dec 2010 09:24:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQKwm-0003wX-OV for emacs-orgmode@gnu.org; Wed, 08 Dec 2010 09:24:46 -0500 Received: from mail-iw0-f178.google.com ([209.85.214.178]:50293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PQKwm-0003vI-Ed for emacs-orgmode@gnu.org; Wed, 08 Dec 2010 09:24:44 -0500 Received: by iwn1 with SMTP id 1so1809855iwn.9 for ; Wed, 08 Dec 2010 06:24:43 -0800 (PST) In-Reply-To: <8062v4l9f0.fsf@missioncriticalit.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?ISO-8859-1?Q?S=E9bastien_Vauban?= Cc: emacs-orgmode@gnu.org --===============0939744777== Content-Type: multipart/alternative; boundary=00032557558ad7b0460496e6e166 --00032557558ad7b0460496e6e166 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Seb, I can't say that I understand the problem, but I can reproduce it - any lin= e right after the #+begin_src org :results latex is being stripped upon tangle. Not sure if it helps or not, but I'm using org-mode version 7.3 =3Drelease_7.3.89.g97f4c.dirty=3D with emacs 22.2.1. Chris 2010/12/8 S=E9bastien Vauban > #+TITLE: Isodoc letter (to be tangled to LaTeX file) > #+DATE: 2010-12-08 > #+LANGUAGE: fr_FR > > Right now, this letter *must be tangled* and post-processed via =3DPDFLaT= eX=3D. > It > can't be exported directly to PDF/HTML (=3Dargs out of range=3D error). > > The problem I'm reporting here is visible *in the tangled file* (TeX). So= , > to > reproduce it, just do =3DC-c C-v C-t=3D on this file, and look at the tan= gled > one. > > * To > #+begin_src csv :tangle addresses.csv > FirstName,LastName,Address,PostCode,Town > Anybody,Kind Enough,to look,at,this > #+end_src > > * Subject > #+srcname: subject > #+begin_src org :results latex > This is my subject line > #+end_src > > * Opening > #+srcname: opening > #+begin_src org :results latex > Dear, > #+end_src > > * Body > #+srcname: body > #+begin_src org :results latex > This example was working for me in the past but is having problems now (a= t > least, on my new Windows machine -- after the Ubuntu one died): the first > line > of every block of text is simply eaten when being tangled. > > The second paragraph does not exhibit any particular trouble, so it reall= y > is > the first line of every code block. Notice, *in the TeX tangled file*, > that: > > - the one-liner subject becomes void > - the one-liner opening becomes void > - the body looses its first line > - the one-liner closing becomes void > #+end_src > > * Closing > #+srcname: closing > #+begin_src org :results latex > Can you reproduce this? > #+end_src > > * Letter composition > #+begin_src latex :noweb yes :tangle yes > \documentclass[11pt]{isodoc} > \usepackage[utf8x]{inputenc} > \usepackage[T1]{fontenc} > \usepackage{datatool} > \DTLloaddb{addresses}{addresses.csv} > > \usepackage[scorpios]{isodoc-style} > > \setupdocument{ > subject =3D {% > <>}, > opening =3D {% > <>}, > closing =3D {% > <>} > } > > \begin{document} > \DTLforeach{addresses}{% > \firstname=3DFirstName,% > \lastname=3DLastName,% > \addressi=3DAddress,% > \postcode=3DPostCode,% > \town=3DTown% > }{% > \letter[to=3D{\firstname~\lastname\\\addressi\\\postcode~\town}]{% > <> > }} > \end{document} > #+end_src > > Best regards, > Seb > > -- > S=E9bastien Vauban > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > --00032557558ad7b0460496e6e166 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Seb,

I can't say that I understand the problem, but I can rep= roduce it - any line right after the #+begin_src org :results latex is bein= g stripped upon tangle.=A0 Not sure if it helps or not, but I'm using o= rg-mode version 7.3 =3Drelease_7.3.89.g97f4c.dirty=3D with emacs 22.2.1.
Chris

2010/12/8 S=E9bastien Vauban <wxhgmqzgw= muf@spammotel.com>
#+TITLE: =A0 =A0 Isodoc letter (to be tangled to LaTeX file)
#+DATE: =A0 =A0 =A02010-12-08
#+LANGUAGE: =A0fr_FR

Right now, this letter *must be tangled* and post-processed via =3DPDFLaTeX= =3D. It
can't be exported directly to PDF/HTML (=3Dargs out of range=3D error).=

The problem I'm reporting here is visible *in the tangled file* (TeX). = So, to
reproduce it, just do =3DC-c C-v C-t=3D on this file, and look at the tangl= ed one.

* To
#+begin_src csv :tangle addresses.csv
FirstName,LastName,Address,PostCode,Town
Anybody,Kind Enough,to look,at,this
#+end_src

* Subject
#+srcname: subject
#+begin_src org :results latex
This is my subject line
#+end_src

* Opening
#+srcname: opening
#+begin_src org :results latex
Dear,
#+end_src

* Body
#+srcname: body
#+begin_src org :results latex
This example was working for me in the past but is having problems now (at<= br> least, on my new Windows machine -- after the Ubuntu one died): the first l= ine
of every block of text is simply eaten when being tangled.

The second paragraph does not exhibit any particular trouble, so it really = is
the first line of every code block. Notice, *in the TeX tangled file*, that= :

- the one-liner subject becomes void
- the one-liner opening becomes void
- the body looses its first line
- the one-liner closing becomes void
#+end_src

* Closing
#+srcname: closing
#+begin_src org :results latex
Can you reproduce this?
#+end_src

* Letter composition
#+begin_src latex :noweb yes :tangle yes
\documentclass[11pt]{isodoc}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{datatool}
\DTLloaddb{addresses}{addresses.csv}

\usepackage[scorpios]{isodoc-style}

\setupdocument{
=A0 =A0subject =3D {%
=A0 =A0 =A0<<subject()>>},
=A0 =A0opening =3D {%
=A0 =A0 =A0<<opening()>>},
=A0 =A0closing =3D {%
=A0 =A0 =A0<<closing()>>}
}

\begin{document}
\DTLforeach{addresses}{%
=A0\firstname=3DFirstName,%
=A0\lastname=3DLastName,%
=A0\addressi=3DAddress,%
=A0\postcode=3DPostCode,%
=A0\town=3DTown%
}{%
\letter[to=3D{\firstname~\lastname\\\addressi\\\postcode~\town}]{%
<<body()>>
}}
\end{document}
#+end_src

Best regards,
=A0Seb

--
S=E9bastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

--00032557558ad7b0460496e6e166-- --===============0939744777== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0939744777==--