Question: Maple code to latex

Hi,

I tried to export my maple document to latex using file->export function, but it won't export file correctly. For example

in maple
> a := 5431; b := 15971; c := 20551;
> f := -a-b-c;
                             -41953

in latex

\documentclass{article}
\usepackage{maplestd2e}
\def\emptyline{\vspace{12pt}}
\begin{document}
\pagestyle{empty}
\DefineParaStyle{Maple Heading 1}
\DefineParaStyle{Maple Text Output}
\DefineParaStyle{Maple Dash Item}
\DefineParaStyle{Maple Bullet Item}
\DefineParaStyle{Maple Normal}
\DefineParaStyle{Maple Heading 4}
\DefineParaStyle{Maple Heading 3}
\DefineParaStyle{Maple Heading 2}
\DefineParaStyle{Maple Warning}
\DefineParaStyle{Maple Title}
\DefineParaStyle{Maple Error}
\DefineCharStyle{Maple Hyperlink}
\DefineCharStyle{Maple 2D Math}
\DefineCharStyle{Maple Maple Input}
\DefineCharStyle{Maple 2D Output}
\DefineCharStyle{Maple 2D Input}
\mapleinline{inert}{2d}{reset; -1}{\[\displaystyle \]}
\mapleinline{inert}{2d}{a := 5431; -1; b := 15971; -1; c := 20551; -1}{\[\displaystyle \]}
\mapleinline{inert}{2d}{a := 5431; -1; b := 15971; -1; c := 20551; -1}{\[\displaystyle \]}
\mapleinline{inert}{2d}{a := 5431; -1; b := 15971; -1; c := 20551; -1}{\[\displaystyle \]}
\mapleinline{inert}{2d}{f := -a-b-c; 1}{\[\displaystyle \]}
\begin{maplegroup}
\mapleresult
\begin{maplelatex}
\mapleinline{inert}{2d}{-41953}{\[\displaystyle -41953\]}
\end{maplelatex}
\end{maplegroup}
\begin{Maple Normal}{
\begin{Maple Normal}{
\mapleinline{inert}{2d}{}{\[\displaystyle \]}
}\end{Maple Normal}
}\end{Maple Normal}
\end{document}

and in pdf i only see -41953.

I saw many people complaining about poor latex exporting. Does it improve with newer maple version? How could I export my maple file code to latex? I need every code character.

Please Wait...