I have been toiling around `polynom` package to typeset polynomial long division. The `polynom` package produces wonderful long division with step by step process. But I just have two problems. Let me tell you what I need exactly
Here is the output that I produced with `polynom` for `\polylongdiv{X^3+X^2-1}`{X-1}
![enter image description here][1]
But instead of spaces for the missing x, I want to have 0x. Is it possible to do that? I checked the documentation and I couldn't find a way to do this.
You can read the documentation here: http://www.cs.brown.edu/system/software/latex/doc/polynom.pdf
I also realized that the polynomials aren't formatted inside the math environment. So is there anyway to format these equations inside math environment also? I tried putting $ signs around `\polylongdiv{X^3+X^2-1}{X-1}`, but that didn't change anything. Equations inside math environment produces something like this
http://imgur.com/BW99g,ucGtr
I am very new to latex. So please help me.
[1]: https://i.sstatic.net/Mw4sP.jpg