I want to get the following polynomial long division like this:
But as you know, when I use command \polylongdiv
(package polynom
), I always get the following:
How can I get the result as in the first picture? At present, I have no idea to do so.
Here is my tex file:
\documentclass{article}
\usepackage{polynom}
\begin{document}
$$\polylongdiv{x^3-12x^2-42}{x-3}$$
\end{document}
Best Answer
A while back, I had a go at reimplementing polynomial long division because I wanted something similar.
Save this as
polydiv.sty
Then the following:
produces: