[Tex/LaTex] Can’t get polylongdiv to work


I've tried to use the package polynom.

I've used the following command:


But my polynom division ends up like this:

enter image description here

I have also tried:


Best Answer

See the manual of the polynom package, e.g. with the command texdoc polynom under Linux. You have to use \polyset{vars=...} (for a global change) or the option vars=... (for a one time change) to indicate what the variables are. The code

% \polyset{vars=z} % alternative to option vars=z below

gives the output enter image description here

Related Question