Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass{article}
- \usepackage{longdivision}
- \input longdiv.tex
- \usepackage[TABcline]{tabstackengine}
- \TABstackMath
- \renewcommand\stackalignment{l}
- \newcommand\lminus{\llap{$-$}}
- {\catcode`-=\active
- \gdef -{\lminus}}
- \newcommand\minusactive{\phantom{-}\catcode`-=\active}
- \setstacktabbedgap{3pt}
- \begin{document}
- $
- \minusactive
- \tabbedShortunderstack[r]{
- &3&7&0&5&:5=741\\
- -&3&5& &&\\
- \TABcline{2,3}
- & &2&0&&\\
- &-&2&0&&\\
- \TABcline{3,4}
- & & & &5&\\
- & & &-&5&\\
- \TABcline{5}
- & & & &0&
- }
- $
- \longdiv{3705}{5}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement