# polynom package bug

The following MWE:

\documentclass{article}
\usepackage{polynom}

\begin{document}
$\polylongdiv{x^3+1}{x^2+3}$
\end{document}


produces the erroneous output

Note that the horizontal rule does not extend to the end of the dividend, and that the last step of the division is not performed.

Note that if the dividend is either x^3+x^2+x+1 or x^3+x^2+1 the package produces the complete remainder on the bottom line, while if it is x^3+x+1 or x^3+1, it does not. Mysterious, at least to me.

Is this package still maintained, or does anyone know a workaround?

• Look in the manual, there you can find an email address for the package maintainer, so you can write and tell him about it. – Torbjørn T. May 27 '17 at 8:13
• See the answer here: tex.stackexchange.com/a/8835/117534 – Troy May 27 '17 at 13:44
• @TorbjørnT. The email address of the maintainer is not in the documentation. I've written the only person with that name I could find, but have heard nothing back. It looks as though I could implement the changes in the linked article above, but of course a fix to the package would be preferable. – rogerl May 28 '17 at 17:46
• Oh, right, I see. Sorry about that. – Torbjørn T. May 28 '17 at 18:04