我想在布局中自动执行除法问题,如下所示,我试图改变长除法包,但我希望它有划掉的数字,而不是总和以下的数字。
\documentclass{article}
\usepackage{amsmath}
\usepackage[makeroom]{cancel}
\usepackage{longdivision}
\usepackage{cancel}
\usepackage{xcolor}
\newcommand\Ccancel[2][black]{\renewcommand\CancelColor{\color{#1}}\cancel{#2}}
\begin{document}
\begin{tabular}{cccc}
0&5&&56&\
$3 \overline{)168}$
&
$3 \overline{)\Ccancel
[red]{1}{^1}68}$
&
&
$3 \overline{)\Ccancel[red]{1}{{^1}\Ccancel[red]{6}{^1}}}8$\
\end{tabular}
\begin{tabular}{cccc}
0&5&&56$^{^r1}$&\
$3 \overline{)169}$
&
$3 \overline{)\Ccancel
[red]{1}{^1}68
9}$
&
&
$3 \overline{)\Ccancel[red]{1}{{^1}\Ccancel[red]{6}{^1}}}9$\
\end{tabular}
\end{document}