[pstricks] lualatex/xelatex-pstricks

Herbert Voss Herbert.Voss at fu-berlin.de
Sat Nov 13 19:28:45 CET 2021



Am 13.11.21 um 13:04 schrieb Antonis Tsolomitis via PSTricks:
>
> I try to use lualatex on the attached code in an attempt to avoid xelatex
> since it requires the NOSAFER option in it's configuration or commandline.
>
> But lualatex produces errors. So I would like to ask if I need some 
> package which I do not know of
> or it is bug somewhere. The attached pdf is from xelatex which 
> compiles the file fine. (I am on texlive2021)
>

there are some bugs in pst-geometrictools. Use the attached version and it
should work with lualatex. For transparency you need the first two lines
of the follwing code.

Herbert



\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{}
\documentclass[pstricks]{standalone}
\usepackage[gfsneohellenic]{fontsetup}
\usepackage{xcolor,color}
\usepackage{pstricks,pst-geometrictools,pstricks-add,pst-node}
\definecolor{BrickRed}{rgb}{.702,0.1333,0.1333}
\definecolor{SeaGreen}{rgb}{.1804,.5451,.34117647}
\begin{document}

\begin{pspicture}[showgrid](-4.0,-4)(14.7,4.5)
\psline[linewidth=1pt](-1,0)(5,0)
\psline[linewidth=0.6pt](4,-.2)(4,.2)\psline[linewidth=0.6pt](0,-.2)(0,.2)
\rput(3.7,.3){$A$}\rput(0.4,.3){$A'$}
\rput(2.6,-3.4){$M$}\rput(2.6,3.4){$N$}\rput(2.3,.3){$O$}\psdot[dotsize=3pt](2,0)
\pnode(4,0){A}\pnode(0,0){B}\pnode(2,-1.5){M}\pnode(2.61,3.76){N1}\pnode(1.41,3.76){N2}
\pscircle[linewidth=1pt](2,0){2}
\psarc[linewidth=1pt,linecolor=BrickRed](4,0){4}{110}{250}
\psarc[linewidth=1pt,linecolor=blue](0,0){4}{-70}{70}
\psscalebox{-1 1}{\psCompass[PoCScale=0.8]{2}(A)(N1)}
\psCompass[PoCScale=0.8,PoCFillCol=blue]{2}(B)(N2)
%
\rput[lt](9,0){%
\psline[linewidth=1pt](-1,0)(5,0)
\psline[linewidth=0.6pt](4,-.2)(4,.2)\psline[linewidth=0.6pt](0,-.2)(0,.2)
\rput(3.7,.3){$A$}\rput(0.4,.3){$A'$}
\rput(2.6,-3.4){$M$}\rput(2.6,3.4){$N$}\rput(2.3,.3){$O$}
\pnode(4,0){A}\pnode(0,0){B}\pnode(2,-1.5){M}\pnode(2.61,3.76){N1}\pnode(1.41,3.76){N2}
\pscircle[linewidth=1pt](2,0){2}
\psarc[linewidth=1pt,linecolor=BrickRed](4,0){4}{110}{250}
\psarc[linewidth=1pt,linecolor=blue](0,0){4}{-70}{70}
\psPencil[pencilColA=green,PenLength=3]{-120}(2,4)
\psRuler[opacity=0.15]{0}(1.96,4)(1.96,-3)
\psline[linewidth=1pt,linecolor=green](2,-4)(2,4)
}%
\end{pspicture}

\end{document}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: pst-geometrictools.tex
Type: application/x-tex
Size: 50966 bytes
Desc: not available
URL: <https://tug.org/pipermail/pstricks/attachments/20211113/306de6ed/attachment-0001.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto 2021-11-13 um 19.28.04.png
Type: image/png
Size: 221571 bytes
Desc: not available
URL: <https://tug.org/pipermail/pstricks/attachments/20211113/306de6ed/attachment-0001.png>


More information about the PSTricks mailing list.