When the expression is only up to second derivative, TeXForm
works correctly:
ode = y''[x] == 0;
TeXForm[ode]
But when the order is higher than 2, it does this:
ode = y'''[x] == 0;
TeXForm[ode]
Which does not look as nice in my $\LaTeX$ report when compiled to PDF.
It can also confuses with thinking it is y
raised to power of 3
instead of third derivative.
Is there a way to tell Mathematica to keep '''
as is? As in this screen shot
Having to edit this by hand inside my Latex editor is not really an option for many reason. I'd like to do this inside Mathematica, when I export the expressions to $\LaTeX$.
My current workflow is this: Use TeXForm
, convert to string, save to the $\LaTeX$ file, then compile the file to PDF.