#+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 '<<who' not found in this buffer" and, if I temporarily replace `<<who()>>' by `<<who>>', I get the next error: "if: reference ' <<solde' not found in this buffer" 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 <<<< <<who()>> } \end{textblock} \begin{textblock}{110}(25,195) Some sentence <<before()>> \hfill{}% HERE 2222 <<<< <<solde()>> EUR% HERE 3333 <<<< \end{textblock} \end{document} #+end_src Best regards, Seb -- Sebastien Vauban