"Vadim V. Zhytnikov" <vvzhy@mail.ru> writes:
...
> Imput example code is stored in texinfo's comment
>
> @c ######
> @c expand((x+y)^2);
> @c factor(%);
> @c ######
>
> Here @c ###### marks beginning and end of the example .
> Pressing some magic keys makes emacs runs this code through
> Maxima twice - once with plain text output and next time with
> LaTeX output. Results are inserted into the document with
> appropriate ifs.
>
> Ah, I'm just day dreaming ...
I don't see why that would be so hard, if there were a demand for it.
It could be done in Emacs, or have another program filter the texi
file.
Jay