batch modifies input



(please ignore the previous copy of this that awaits moderation!
 i am tired and sent it from the wrong account.)

Hello,

I have a question about how batch() works. Before printing
the input lines, 'batch' modifies them; strips spaces,
rearranges terms, omits the trailing semicolon, etc. Is
there some way to control this?

The reason I ask is because, I am writing a latex document
that has portions of maxima sessions interspersed with the
text. I am using imaxima in emacs with the imaxima-latex
command to give latex output which i cut and pasted into my
document.

Thanks,
John