On Wed, Jul 13, 2011 at 8:24 AM, Pietro Battiston <me(a)pietrobattiston.it> wrote:
Unfortunately, I have two problems [...]
Welcome to gretl-devel.
1) what seems to me a bug:
? tabprint -f "/home/pietro/prova.tex"
Model printed to /home/pietro/model_1.tex
Notice the wrong filename.
Yes, thanks for the report.That got broken at some point. It's now fixed in
CVS and snapshots.
2) what is either a whishlist feature, or a proof of my blindness in
reading the manuals: if, as it seems to me, the only way of writing to a
file (apart from LaTeX output) is the command "output", then it doesn't
help me, because if I do
outfile /home/pietro/my_file --write
print result
outfile --close
then "my file" will contain:
? print result
result = 4317.0000
? outfile --close
while I would like just the number.
To get control over that sort of thing, use "printf" rather than
"print". E.g.
outfile /home/pietro/my_file --write
printf "%f\n", result
outfile --close
Allin Cottrell