James Amundson ÐÉÛÅÔ:
>On Wed, 2004-12-22 at 12:55, Vadim V. Zhytnikov wrote:
>
>
>>Jay Belanger writes:
>>
>>
>>
>>>"Vadim V. Zhytnikov" 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
>>>
>>>
>>>
>>>
>>Now recreating examples in Maxima .texi file is slow and tedious
>>process. I've been thinking about creating repository of examples
>>to facilitate further recreation (if required). But keeping all examples
>>in one file is very useful.
>>
>>
>
>I think writing a small filter program to re-generate example code would
>be very worthwhile. I would much rather see something that can be run
>from the command line than something that requires loading the files
>into emacs.
>
>
>
>
Yes, but I wonder what is a proper tool for writing such a filter?
awk?
--
Vadim V. Zhytnikov