I am using Latex code auto-generated by Maple, which uses lots of \it and
\rm in math mode. standard book class does not complain, but scrbook complains.
What should one replace \it with to make it happy? I found one question which helped me fix the \rm in math mode. But do not know what to do with \it. Here is MWE
\documentclass[12pt]{scrbook}%
\usepackage[T1]{fontenc}
%from questions/57109/what-exactly-does-declareoldfontcommand-and-declarerobustcommand-do
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
\begin{document}
$\rm e^t + \it p1$ %what about \it?
\end{document}
I need something like the above trick for rm but for \it. I know nothing about fonts and font families and did not find example to use.
The above is just a MWE. But if you like to see the full Maple Latex code, here is a bigger example. Auto-generated.
\[
\left[ \begin {array}{c} {\frac {\rm d}{{\rm d}t}}{\it p1} \left( t
\right) \\ \noalign{\medskip}{\frac {\rm d}{{\rm d}t}}{\it p2}
\left( t \right) \\ \noalign{\medskip}{\frac {\rm d}{{\rm d}t}}{\it
p3} \left( t \right) \end {array} \right] = \left[ \begin {array}{c} 0
\\ \noalign{\medskip}-{\it q3} \left( t \right) \\ \noalign{\medskip}{
\it q2} \left( t \right) \end {array} \right]
\]


\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}?? – Steven B. Segletes Jun 08 '16 at 02:02rm,\it, etc are encountered. However, it's still OK to provide instructions such as\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}in the preamble. – Mico Jun 08 '16 at 02:51hin an interactive session and learn how to get the old commands enabled without any trouble. It is soooo easy:enabledeprecatedfontcommands– Johannes_B Jun 08 '16 at 05:35{\it p1}that should better bep_1. Anyway, I'm inclined to think that 20 years is long enough to become aware of deprecated commands. Not to mention that\left( t \right)is ridiculous. So, since the code should be improved to begin with, I see no issue with replacing\it. – egreg Jun 08 '16 at 05:59