From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [bug] Problem when tangling into LaTeX Date: Mon, 30 Jan 2012 18:40:58 -0700 Message-ID: <87aa54y7h1.fsf@gmx.com> References: <80wr88zyv8.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rs2ig-0004vf-Hr for emacs-orgmode@gnu.org; Mon, 30 Jan 2012 20:41:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rs2if-0006Tr-AJ for emacs-orgmode@gnu.org; Mon, 30 Jan 2012 20:41:14 -0500 Received: from mailout-us.gmx.com ([74.208.5.67]:41256) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Rs2if-0006Te-5E for emacs-orgmode@gnu.org; Mon, 30 Jan 2012 20:41:13 -0500 In-Reply-To: <80wr88zyv8.fsf@somewhere.org> (Sebastien Vauban's message of "Mon, 30 Jan 2012 22:03:55 +0100") 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: Sebastien Vauban Cc: emacs-orgmode@gnu.org "Sebastien Vauban" writes: > #+TITLE: Noweb references in LaTeX document > #+DATE: 2012-01-30 > > * Summary > > ** Problem > > I use 3 chunks of LaTeX code which I wanna insert in a LaTeX document. > > While 1 of them is correctly tangled into the LaTeX document, the 2 others > generate errors when C-c C-v C-t'ing: > > "if: reference '< > and, if I temporarily replace `<>' by `<>', I get the next error: > > "if: reference ' < > What I don't understand is that there is no -- sorry, I mean: I don't see -- > the difference between the 3 noweb references. They all seem correctly > written... > > ** Note > > Remember that, up to now, such a document *must be first tangled* and then > post-processed via =PDFLaTeX=. It can not be exported directly to PDF/HTML (=args > out of range= error). > > * Example > > ** Part 1 > #+name: who > #+begin_src org :results latex > 1111ToMe > #+end_src > > ** Part 2 > #+name: before > #+begin_src org :results latex > 2222BeforeDate > #+end_src > > ** Part 3 > #+name: solde > #+begin_src org :results latex > 3333Rest > #+end_src > > ** Composed letter > #+begin_src latex :noweb yes :tangle yes > \documentclass{article} > \usepackage[utf8x]{inputenc} > \usepackage[T1]{fontenc} > > \begin{document} > > \begin{textblock}{85}(98,35) > \titlebox{9.4cm}{Foo}{% HERE 1111 <<<< > <> > } > \end{textblock} > > \begin{textblock}{110}(25,195) > Some sentence > <> \hfill{}% HERE 2222 <<<< > <> EUR% HERE 3333 <<<< > \end{textblock} > > \end{document} > #+end_src > > Best regards, > Seb Currently newlines are allowed in noweb reference names causing the problems you noticed above. I've just pushed up a change which disallows newline characters in noweb references and fixes the odd behavior you describe. Best, -- Eric Schulte http://cs.unm.edu/~eschulte/