Subject: outputing tex into a file given by a variable
From: Robert Dodier
Date: Fri, 25 May 2007 11:31:45 -0600
On 5/25/07, Fabrizio Caruso <caruso at dm.unipi.it> wrote:
> tex(<maxima_expression>,file_name)
>
> which, instead, outputs into a file whose name
> is name of the variable file_name
> and not the name given by the string contained in file_name.
This is a bug. If you have time, please make a bug report at the SF bug tracker.
A couple of work arounds:
(1)
file_name : "my.tex";
tex (foo, ''file_name);
(2)
file_name : "my.tex";
apply (tex, [foo, file_name]);
(3)
mytex (a, b) ::= buildq ([a, b : ev(b)], tex (a, b));
file_name : "my.tex";
mytex (foo, file_name);
HTH
Robert