zauguin / luapstricks

8 stars 0 forks source link

Support for \psRing, \psarcn and \psellipticarcn #4

Closed pablgonz closed 3 years ago

pablgonz commented 3 years ago

Hi, following on from the basic drawing tests, I have run into problems with \psRing, \psarcn and \psellipticarcn (including starred versions). With the following example file:

\documentclass{article}
\usepackage{luapstricks}
\pagestyle{empty}
\begin{document}
\psset{linecolor=blue,linewidth=2pt}% ,gridfont=helvetica} % show error
% \psarcn
\begin{pspicture}[showgrid](4,4)
\psarcn(2,2){1}{-30}{60}
\end{pspicture}
% \psarcn*
\begin{pspicture}[showgrid](4,4)
\psarcn*(2,2){1}{-30}{60}
\end{pspicture}

% \psellipticarcn
\begin{pspicture}[showgrid](4,4)
\psellipticarcn(2, 2)(1.5,1){150}{30}
\end{pspicture}
% \psellipticarcn*
\begin{pspicture}[showgrid](4,4)
\psellipticarcn*(2, 2)(1.5,1){150}{30}
\end{pspicture}

% \psRing
\begin{pspicture}[showgrid](4,4)
\psRing(2,2){1}{2}
\end{pspicture}
\begin{pspicture}[showgrid](4,4)
\psRing(2,2)[180,60]{1}{2}
\end{pspicture}

% \psRing*
\begin{pspicture}[showgrid](4,4)
\psRing*(2,2){1}{2}
\end{pspicture}
\begin{pspicture}[showgrid](4,4)
\psRing*(2,2)[180,60]{1}{2}
\end{pspicture}
\end{document}

get:

Extended graphic state modifications dropped since `pdfmanagement-testphase' is
 not loaded.{/usr/local/texlive/2021/texmf-var/fonts/map/pdftex/updmap/pdftex.m
ap}./luapstricks.lua:285: Unknown name "arcn"
stack traceback:
    [C]: in function 'error'
    ./luapstricks.lua:285: in upvalue 'lookup'
    ./luapstricks.lua:2204: in upvalue 'execute_tok'
    ./luapstricks.lua:2234: in upvalue 'execute_ps'
    ./luapstricks.lua:2295: in function <./luapstricks.lua:2292>
    [C]: in function 'vf.node'
    ./luapstricks.lua:2285: in function <./luapstricks.lua:2276>.
<argument> ...not:N \tex_shipout:D \box_use:N \l_shipout_box 
                                                  \__shipout_drop_firstpage_...

l.43 \end{document}
zauguin commented 3 years ago

This should be fixed now. (There is a somewhat related command arcto still missing though, but that doesn't show up in your example.)

pablgonz commented 3 years ago

Great, now I upload my first report :D