# Question:Error, (in Typesetting:-Parse) too many levels of recursion converting output of ODEsteps to latex

## Question:Error, (in Typesetting:-Parse) too many levels of recursion converting output of ODEsteps to latex

I found that sometimes Maple gives

Error, (in Typesetting:-Parse) too many levels of recursion

When using the Latex command on the output of Student:-ODEs:-ODESteps

Below is worksheet showing it works for some and gives error for others. Is there a workaround for this? I'd like to convert the steps to Latex.

This happens in worksheet using either Display->Typesetting level as EXTENDED or STANDARD

 > restart;
 > interface(version);

 > Physics:-Version();

 > ode:=diff(y(x),x)=0; the_output:=Student:-ODEs:-ODESteps(ode,y(x)): latex(the_output)

\begin{array}{ccc}
& {} & \textrm{Let's solve}
\\
{} & {} & \frac{d}{d x}y \! \left(x \right)=0
\\
\textrm{•} & {} & \textrm{Highest derivative means the order of the ODE is}1
\\
{} & {} & \frac{d}{d x}y \! \left(x \right)
\\
\textrm{•} & {} & \textrm{Integrate both sides with respect to}x
\\
{} & {} & \int \left(\frac{d}{d x}y \! \left(x \right)\right)d x =\int 0d x +\mathit{C1}
\\
\textrm{•} & {} & \textrm{Evaluate integral}
\\
{} & {} & y \! \left(x \right)=\mathit{C1}
\\
\textrm{•} & {} & \textrm{Solve for}y \! \left(x \right)
\\
{} & {} & y \! \left(x \right)=\mathit{C1}
\end{array}

 > ode := diff(y(x), x, x, x ) + 3*diff(y(x), x, x) + 4*diff(y(x), x) + 2*y(x) = 0; the_output:=Student:-ODEs:-ODESteps(ode,y(x)): latex(the_output)

Error, (in Typesetting:-Parse) too many levels of recursion

 >