答案1
定义您自己的\dotdeg
和\dotem
,可能采用以下方式:
\documentclass{article}
\newcommand{\dotdeg}{\rlap{.}^\circ}
\newcommand{\dotem}{\rlap{.}^m}
\begin{document}
\begin{enumerate}
\item
$\theta = 8 \dotdeg 855 + 0 \dotdeg 98561 t + 1 \dotdeg 916 \sin (0 \dotdeg 9856 t - 3 \dotdeg 819)
+ 0 \dotdeg 020 \sin( 1 \dotdeg 9712 t - 7 \dotdeg 638 )$
\item
$T = 35 \dotem 421 + 3 \dotem 94244 t - 4 \dotem 0 \arctan [ ( \tan \theta ) / 0.91747 ]$
\end{enumerate}
\end{document}
更简洁的接口,以十进制数作为\dotdeg
和的参数(要求小数点内\dotem
有句点):.
\documentclass{article}
\def\addtodot#1.#2\relax{#1\rlap{.}^{\dotadd}#2}
\newcommand{\dotdeg}[1]{\def\dotadd{\circ}\addtodot#1\relax}
\newcommand{\dotem}[1]{\def\dotadd{m}\addtodot#1\relax}
\begin{document}
\begin{enumerate}
\item
$\theta = \dotdeg{8.855} + \dotdeg{0.98561}t + \dotdeg{1.916} \sin ( \dotdeg{0.9856} t - \dotdeg{3.819} )
+ \dotdeg{0.020} \sin( \dotdeg{1.9712} t - \dotdeg{7.638} )$
\item
$T = \dotem{35.421} + \dotem{3.94244} t - \dotem{4.0} \arctan [ ( \tan \theta ) / 0.91747 ]$
\end{enumerate}
\end{document}