On Feb 1, 2010, at 1:06 PM, Eric S Fraga wrote:
Hi,
after two months away from a particular document, I find that all my
babel codes in that document no longer work as they used to.
Specifically, references to other source code blocks are now no longer
expanded:
--8<---------------cut here---------------start------------->8---
* maxima test
*** COMMENT units
#+srcname: units
#+begin_src maxima
programmode: false$
h: 3600*s$
day: 24*h$
#+end_src
*** Real evaluations
#+srcname: unitstest
#+begin_src maxima :results output :exports results :noweb
<<units>>
solution: solve([m = 2*day], [m]),numer$
#+end_src
#+results: unitstest
: stdin:2:Incorrect syntax: < is not a prefix operator
: <<
: ^
--8<---------------cut here---------------end--------------->8---
The error at the end is because the code segment immediately above,
unitstest, has been copied literally to the maxima input file without
expansion of "<<units>>". This used to work fine so something has
changed? If the change is something that will have affected my maxima
babel code, I can post that (but it's a total hack...).
Any and all suggestions or pointers more than welcome!
Thanks,
eric
Hi Eric,
Yes, the :noweb syntax was changed. You'll need to say :noweb yes
now. There are ways to set this by file and globally as well.
The Org-babel documentation should be up-to-date on the new syntax.
All the best,
Tom
_______________________________________________
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