From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: [Babel] The first line of the code blocks disappears in the tangled file Date: Wed, 08 Dec 2010 13:46:11 +0100 Message-ID: <8062v4l9f0.fsf@missioncriticalit.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org #+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 =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 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{ 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 --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode