5

I want to do regular long division in latex. See also: http://en.wikipedia.org/wiki/Long_division

Is there a latex macro for this ?

Edit: I actually want to use it in mathjax, is this possible ?

Kasper
  • 911

2 Answers2

5

There is longdiv, which is loaded with \input not \usepackage, as it is not LaTeX specific.

Sample output

\documentclass{article}

\input{longdiv}

\begin{document}

\longdiv{6000}{34}

\end{document}
Andrew Swann
  • 95,762
1

Maybe the xlop package is what you want:

\documentclass{article}
\usepackage{xlop}

\begin{document}
\opdiv{6000}{34}

\opdiv[maxdivstep=3]{6000}{34}
\end{document}

enter image description here

cgnieder
  • 66,645