From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: [bug] Problem when tangling into LaTeX Date: Tue, 31 Jan 2012 09:11:32 +0100 Message-ID: <80wr88xpe3.fsf@somewhere.org> References: <80wr88zyv8.fsf@somewhere.org> <87aa54y7h1.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Eric, Eric Schulte wrote: > "Sebastien Vauban" writes: > >> 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... >> >> * 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 > > Currently newlines are allowed in noweb reference names causing the problems > you noticed above. If it does not take you too much time, can you enlighten me on the diffs between the chunks? Why was it well working for the second one? > I've just pushed up a change which disallows newline characters in noweb > references and fixes the odd behavior you describe. References are working well. Thanks a lot! Though, there is an annoying diff in the tangled LaTeX: the first block gets an extra blank line (I don't understand why it differs from the others) which will cause layout problem when compiling the document -- not this one, it's just an not-so-valid ECM, but real ones... #+begin_src latex \documentclass{article} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc} \begin{document} \begin{textblock}{85}(98,35) \titlebox{9.4cm}{Foo}{% HERE 1111 <<<< 1111ToMe } \end{textblock} \begin{textblock}{110}(25,195) Some sentence 2222BeforeDate \hfill{}% HERE 2222 <<<< 3333Rest EUR% HERE 3333 <<<< \end{textblock} \end{document} #+end_src Best regards, Seb -- Sebastien Vauban