switch so that output is automatically in latex form



This question was asked a while ago, but there were
no answers in the archives.

> Josh Don rocksolidrobot@yahoo.com
>   Wed, 13 Oct 2004 17:20:26 -0700 (PDT)


>that's it,
>Is there a switch so that all output comes out as Latex?
>thanks for your answers.

I'm a vi(m) user who's not adept at emacs, and wonder
if there's flag to turn on so that e.g. batch-file 
maxima execution outputs in latex/tex form.

Putting tex() around all the appropriate lines of work,
and having to label each line preceeding a tex() line
so that it can be referred to after it has been
tex-formatted makes for a lot of extra work.

imaxima outputs to latex by default --  how is this done?

Thanks
Anita