[pstricks] R: R: R: PSTricks and lualatex

Herbert Voss Herbert.Voss at fu-berlin.de
Tue Sep 28 06:47:22 CEST 2021



Am 28.09.21 um 00:01 schrieb Giovanni Dore:
> A minimal example is:
>
> ---------------Test.tex----------------
>
> \documentclass{book}
> \usepackage{tcolorbox}
> \usepackage{pstricks}
>
> \begin{document}
> \begin{tcolorbox}
> \begin{pspicture}(-5,-5)(5,5)
> \begin{psclip}{\pspolygon[linestyle=none](-5,-5)(-5,5)(5,5)(5,-5)}%
> \psline(-2,-7)(2,7)
> \end{psclip}%
> \end{pspicture}
> \end{tcolorbox}
>
> Test
> \end{document}
> -------------------------------------
>
> With latex->dvips->ps2pdf I get
>
> GPL Ghostscript 9.53.3 (2020-10-01)
> Copyright (C) 2020 Artifex Software, Inc.  All rights reserved.
> This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
> see the file COPYING for details.
> Error: /typecheck in --restore--

The dvips driver of pgf is buggy. Use your example this way:

\documentclass{book}
\usepackage{tcolorbox}
\usepackage{pstricks}

\begin{document}
\begin{tcolorbox}
\begin{pspicture*}(-5,-5)(5,5)
\psline(-2,-7)(2,7)
\end{pspicture*}
\end{tcolorbox}

Test
\end{document}

Herbert


More information about the PSTricks mailing list.