\documentclass{article}
\usepackage{graphicx}
\usepackage{longdivision}
\usepackage{cancel}
\begin{document}
\section {Even Numbers}
Even numbers are numbers that can be divided by two without leaving a remainder\\
\intlongdivision{912}{3}\\
\begin{tabular}{ccccc}
&&3&0&4\\
\hline
3&)&9&\cancel{1}&$^1{2}$\\
\end{tabular}
\end{document}
答案1
不确定xlop
包的经典划分风格是否会是一个问题,但是除此之外可以产生不错的输出:
\documentclass[12pt]{article}
\usepackage{xlop}
\begin{document}
\section*{Even Numbers}
Even numbers are numbers that can be divided by two without leaving a remainder:
\opdiv[style=text]{912}{3} → \fbox{\parbox{7em}{%
\opdiv[maxdivstep=3, displayintermediary=all]{912}{3}}}
\end{document}