[Tex/LaTex] Vertical addition and multiplication and long division

macrosmath-modepackages

Is there in existence packages that recreate the following environments:
enter image description hereenter image description hereenter image description here

Some of the above have been discussed like in the How to present a vertical multiplication but what I am interested in is if there is a way to recreate the addition and division.

Best Answer

The addition is fairly simple and examples can be found at Numbering Vertical Addition Problems.

For the long division in your style you can use an array environment.

enter image description here

The MWE is shown below.

\documentclass[11pt]{article}
\begin{document}
% spacing round the bracket in long division
\newcommand\divspace{\,}
\[
\arraycolsep=0em
\begin{array}{r@{\divspace}c@{\divspace}lllll}
  & & \multicolumn{4}{r}{2500.}&(answer)\\
\cline{2-6}
25&\big)&\multicolumn{4}{l}{62500.}&\\
  & &                   50&&&&\\
\cline{3-4}
  & &                   12&5&&&\\
  & &                   12&5&&&\\
\cline{3-5}
  & &                     &0&0&&
\end{array}
\]
\end{document}