latex output



Leo,
This is exactly the kind of thing im looking for, how well documented is
that?
im avoiding expensive and repetitive (+unintuitive?) calls to tex(%)
i'd like _all_ output in tex/latex,
Jiun.



On Thu, Jun 6, 2013 at 6:23 PM, Leo Butler
<l_butler at users.sourceforge.net>wrote:

>    >From mailnull  Thu Jun  6 13:44:10 2013
>    Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of
> math.utexas.edu designates 146.6.25.7 as permitted sender)
> client-ip=146.6.25.7; envelope-from=maxima-bounces at math.utexas.edu; helo=
> ironclad.mail.utexas.edu;
>    Date: Thu, 6 Jun 2013 16:42:41 +0300
>    From: jiun bookworm <thebookworm101 at gmail.com>
>    Content-Type: multipart/mixed;
>            boundary="===============7331561159132562183=="
>
>    --===============7331561159132562183==
>    Content-Type: multipart/alternative;
> boundary="047d7bdc1666040dad04de7c7d94"
>
>    --047d7bdc1666040dad04de7c7d94
>    Content-Type: text/plain; charset="ISO-8859-1"
>
>    Im tying to render some output from maxima, and i found some libraries i
>    was using to convert  the ascii to mathml   inadequte, is there some
> maxima
>    "trick " to always get replies in latex?
>    i'v seen some user interface tips [1] that already made it easy to get
> this
>    far, so im throwing this question hoping there might be a way to do it
>    thats not too hard.
>
> Yes, there is a hook in displa to run alternative 1d printers. Here is
> an example of what you might do
>
> (%i1) :lisp (setf *alt-display1d* (lambda(x) (format t "~a~%" (mfuncall
> #'$tex1 x))))
>
> #<FUNCTION (LAMBDA (X)) {C68FAED}>
> (%i1) display2d:false$
>
> (%i2) solve(x^2+x+1,x);
> \mbox{\tt\red({\it \%o_2}) \black}\left[ x=-{{\sqrt{3}\,i+1}\over{2}} ,
> x={{\sqrt{3}\,i-1}\over{2}} \right]
>
> Of course, the output is in tex, not latex.
>
> Leo
>