From: Robert D. <rob...@gm...> - 2014-03-03 00:57:07
|
On 2014-03-03, Josef Eschgfaeller <es...@un...> wrote: > This is much better. But I would like to > include a library, where in the init file > I use > > library: ... ; > for x in ["file","graphics",...] do batch(concat(library,x)); > > And the definitions there still appear in the output. > I could make a large file of all them (Maxima is here > called from Python), or is there another way instead > of the batch commands? Thanks. Well, you could put the initialization stuff into a file and tell Maxima to process it before anything else. Something like: maxima --very-quiet --init-mac=my_init_stuff.mac < my_input.mac Hmm. Having tried that, I see that if my_init_stuff.mac contains functions which output something (e.g. load(draw)) then Maxima will output that stuff -- probably you don't want that. To make that go away, you might consider either patching the offending code to make it quieter (e.g. some packages use defsystem to load them, and you can probably tell defsystem to be quiet), or you can load all the packages you want and dump a new Maxima image which you can use in place of the prepackaged one. I can say more about that; it's not difficult. best Robert Dodier |