2

The following code shows a polynomial long division:

\documentclass{article}
\usepackage{polynom}

\begin{document}
    \polylongdiv[style=A]{6x^3-2x^2+x+3}{x^2-x+1}
\end{document}

The output of the above code is (without the red highlight):

enter image description here

I have studied the package documentation for polynom without finding a way to de-ascii-artify the highlighted part. My desired output would be something along the lines of:

enter image description here

How can I modify the behaviour of polynom to produce the desired output?

Mårten W
  • 305
  • 1
    email the package author? –  Sep 19 '17 at 09:39
  • See also https://tex.stackexchange.com/questions/153295/long-division-of-polynomials-in-lyx/153413?s=1|3.1560#153413 – John Kormylo Sep 19 '17 at 12:39
  • @JohnKormylo: I prefer not having to manually meddle with the spacing (\hphantom{...} etc), but yes, it does work. – Mårten W Sep 20 '17 at 09:12
  • In a somewhat related problem (https://tex.stackexchange.com/questions/168806/break-in-square-root-line/168943?s=1|3.8989#168943) I tried to develop font independent offsets. It wasn't perfect and involved some odd calculations, but was able to fit a wide range of sizes. – John Kormylo Sep 20 '17 at 12:18

0 Answers0