|
From: Eduardo O. <edu...@gm...> - 2025-12-22 18:03:25
|
Hi list,
the manual entry for `batch', in
(info "(maxima)batch")
contains this:
Spaces, tabs, and newlines in the file are ignored.
Here's an example, as always,
--snip--snip--
• (eepitch-shell)
• (eepitch-kill)
• (eepitch-shell)
cat > /tmp/b <<'%%%'
nary("=.");
a =. b
=. c
=. d;
%%%
• (eepitch-maxima)
• (eepitch-kill)
• (eepitch-maxima)
nary("=.");
a =. b
=. c
=. d;
batch("/tmp/b")$
--snip--snip--
and the log of its part in Maxima:
--snip--snip--
(%i1) nary("=.");
(%o1) =.
(%i2) a =. b
=. c
=. d;
(%o2) a =. b =. c =. d
(%i3) batch("/tmp/b")$
read and interpret /tmp/b
(%i4) nary("=.")
(%o4) =.
(%i5) a =. b =. c =. d
(%o5) a =. b =. c =. d
(%i7)
--snip--snip--
Is there an easy way to make batch, or some similar function, run
without deleting the whitespace and the ";"s? That would be very
useful to me - my current way of LaTeXing Maxima logs has several
parts that need to be run interactively, and this variant of batch
would simplify the process a lot...
Hints pointing no not-so-easy ways, like "try to modify the parts such
and such of the functions such and such in mload.lisp", will probably
be useful too...
Thanks in advance =),
Eduardo Ochs
|