Pict2e package arc precision

Hello,

I think I discovered a little problem with the rendering of arcs. In the following image the arc is too long.
Wrong arc.png (18.0 KB)

The same picture has no problem with MikTeX:
good arc.png (17.4 KB)
Here is the code to generate the image:

\setlength{\unitlength}{0.0045779mm}
\begin{picture}(16383,16383)(-8191.0,-8191.0)
\linethickness{0.5pt}
\put(-8191.0,0){\vector(1,0){16383}}
\put(0,-8191.0){\vector(0,1){16383}}
\linethickness{1pt}
\moveto(6553.2,0.0)
\lineto(6131.9,1486.4)
\lineto(5317.8,2967.9)
\lineto(4258.2,4258.2)
\lineto(2967.9,5317.8)
\lineto(1486.4,6131.9)
\lineto(0.0,6553.2)
\lineto(-1486.4,6131.9)
\lineto(-2967.9,5317.8)
\lineto(-4258.2,4258.2)
\lineto(-5317.8,2967.9)
\lineto(-6131.9,1486.4)
\lineto(-6553.2,0.0)
\lineto(-6131.9,-1486.4)
\lineto(-5317.8,-2967.9)
\lineto(-4258.2,-4258.2)
\lineto(-2967.9,-5317.8)
\lineto(-1486.4,-6131.9)
\lineto(0.0,-6553.2)
\lineto(1486.4,-6131.9)
\lineto(2967.9,-5317.8)
\lineto(4258.2,-4258.2)
\lineto(5317.8,-2967.9)
\lineto(6131.9,-1486.4)
\closepath
\strokepath
\put(34.0,-20.3){\circle*{300}}
\put(-6611.702,3944.959){\vector(0.8588,-0.5124){13223.404}}
\put(8192.0,-163.8){\makebox(0,0)[tr]{$M_3$}}
\put(-163.8,8192.0){\makebox(0,0)[tr]{$M_2$}}
\put(6695.6,-3804.3){\makebox(0,0)[bl]{$M$}}
\linethickness{0.5pt}
\arc[0, 329.1770]{3276.6}
\put(-3316.7,914.3){\makebox(0,0)[br]{$\alpha$}}
\end{picture}

I did a lot of tests and I’ve seen even worse results.

Can you look into it?

Thanks,
Stenio

Hello,
This is probably a deficiency of the pict2e package of an older version. I can see the same in an older version of MikTeX (with the same pict2e version as in Aspose.TeX): image.png (92.4 KB)

But the good news is that it’s easy to fix. Just remove the line break between the \linethickness{0.5pt} and \arc[0, 329.1770]{3276.6}, or end the \linethickness{0.5pt} line with the comment char %. The arc shift we’re observing is obviously caused by the space char. In general, you should keep in mind that TeX interprets newlines as spaces.

Hello Kolod,

That did the trick!

Thank you for your support,
Stenio

My pleasure.