On 6/24/07, Richard Fateman <fateman at cs.berkeley.edu> wrote:
> map (lambda([x],tex(x,"file.tex")), labels);
FWIW this doesn't evaluate x enough, it appears.
(I get literal %i1, %o1, etc in the output file.)
map (lambda ([x], apply (tex, [x, "file.tex"])), labels);
seems to have the desired effect.
Concerning document generation from Maxima,
I don't know how much can be accomplished with
the built-in functions. Of course tex generates nice
equations but one would like to mix equations with
text and other markup. Maybe we can consider
defining some operators for document expressions
which would just act like markup tags (i.e. these
operators would not act on their arguments but tex
or other output functions would inspect the operators
and generate appropriate TeX commands).
e.g. document(title("Foo, bar, and baz"), author("Robert\
Dodier"), date("2007-06-24"), abstract("More foolishness."),
paragraph("Blah blah blah blah"), equation(x=y*sin(z)));
in which document, title, author, date, abstract, paragraph,
and equation are all defmspec's which return their arguments
unchanged (or something to that effect).
Just daydreaming.
Robert