zauguin / luapstricks

8 stars 0 forks source link

Support for `\psrotate` macro #20

Closed pablgonz closed 3 years ago

pablgonz commented 3 years ago

Several of the macros provided by pstricks-add are already supported by luapstricks, but \psrotate is not yet supported.

% arara: latex
% arara: dvips
% arara: ps2pdf: { options : [ -dALLOWPSTRANSPARENCY -dPDFSETTINGS=/prepress ] }
% arara: clean: { extensions : [ aux, log, dvi, ps ] }
\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{}
\documentclass{article}
\usepackage{pstricks}
\usepackage{pstricks-add}
\pagestyle{empty}
\begin{document}
% from doc
\psset{unit=0.75}
\begin{pspicture}(-0.5,-3.5)(8.5,4.5)
  \psaxes{->}(0,0)(-0.5,-3)(8.5,4.5)
  \psdots[linecolor=red,dotscale=1.5](2,1)
  \psarc[linecolor=red,linewidth=0.4pt,showpoints=true]{->}(2,1){3}{0}{60}
  \pspolygon[linecolor=green,linewidth=1pt](2,1)(5,1.1)(6,-1)(2,-2)
  \psrotate(2,1){60}{\pspolygon[linecolor=blue,linewidth=1pt](2,1)(5,1.1)(6,-1)(2,-2)}
\end{pspicture}
\end{document}
pdmap/pdftex.map}./luapstricks.lua:467: Unknown name "invertmatrix"
stack traceback:
    [C]: in function 'error'
    ./luapstricks.lua:467: in upvalue 'lookup'
    ./luapstricks.lua:2689: in upvalue 'execute_tok'
    ./luapstricks.lua:2719: in function <./luapstricks.lua:2717>
    (...tail calls...)
    ./luapstricks.lua:2719: in upvalue 'execute_ps'
    ./luapstricks.lua:2780: in function <./luapstricks.lua:2777>
    [C]: in function 'vf.node'
    ./luapstricks.lua:2770: in function <./luapstricks.lua:2761>.
<inserted text> BAD

l.21 \end{document}

PS: This is the last request, it's time to go to sleep :)

pablgonz commented 3 years ago

Fix in last update :D ....tanks