Am 08.11.2012 09:24, schrieb Robert Dodier:
> There isn't any way to suppress the display of input and result. In
> the realm of shameful hackery, you could try this: put the following
>
> (defun displa (x) (declare (ignore x)))
>
> in your maxima-init.lisp file. Then neither input nor result will be
> displayed. However, the effect on interactive sessions might be
> unhelpful.
Thank you, Robert, that works perfectly.
And since I want to use it non interactively, I did not put it in the
default Lisp init file 'maxima-init.lisp', but specify my own file with
"--init-lisp=filename.lisp".
I got a warning about the redefinition of the function 'displa', but
that was easy solved (thanks Google) by:
(setf custom:*suppress-check-redefinition* t)
(defun displa (x) (declare (ignore x)))
> If you are writing a system to replace Maxima's usual input/output
> system, there have been several such projects, including some which
> diplay TeX output. You might be able to reuse some of their code.
> What are you working on?
Nothing really important, I am preparing a talk about advanced LaTeX
features and packages and want to show how one can use maxima to compute
things inline and display the result als LaTeX-formula (One have to use
the --shell-escape parameter for that).
Yes, I know, there is Sagetex and I will show it, but Sage (I know,
Maxima is part of it) is rather huge, if you want to do just some small
symbolic computation examples...
Best regards, Wolfgang
(and concerning my suggestion for a easier documentation system -
perhaps you are right, that there should not be two different methods
for writing docu for maxima.)