Consider the following (non-minimal) example test.tex:



% Atommodel.
\psset{dimen = m}
      linestyle = dashed,
      linewidth = \pslinewidth


   % Elektronbaner.
   % Kerne.
   \multido{\iA = 30+120, \iB = 90+120}{3}{%
   % Betegnelser.
  {\psset{linecolor = orange}
     linewidth = 1.5\pslinewidth
   \psline[linecolor = green!70!black]{->}(1.8,0.6)(3.8,1.2)
   \psline[linecolor = red]{->}(5.5,0.85)(3.65,3.25)
   \psline[linecolor = blue]{->}(5.5,6.25)(3.6,3.8)


When I compile it using latex test.tex --> dvips test.tex --> p2pdf -dALLOWPSTRANSPARENCY test.ps everything is fine. However, when I compile it using xelatex test.tex the drawing is "destroyed".

I need to use xelatex or something similar which can be used with the pdfpages package. How do I get around this?


With Ulrike's help, it's now working for me.


1 Answer 1


Update 2021-09-12

The bug has been resolved in 2021/09/10 v3.08 `PSTricks'.

PSTricks with XeLaTeX is currently broken, but the maintainer knows it already.

As an alternative you can try LuaLaTeX with the experimental luapstricks from https://github.com/zauguin/luapstricks. You example works fine for me with it.

  • Can put as a note that this works on a local TeX installation and NOT on overleaf? Sep 8, 2021 at 9:06
  • 2
    @SvendTveskæg please don't misuse such a question for personal support by updating at every new problem. Ask a new question if you have new problem. Sep 12, 2021 at 13:44
  • 1
    it works fine for me, check if you have the newest luapstricks version. Sep 12, 2021 at 14:13
  • The above example still does NOT work on just updated my MikTeX installation and the XeTeX engine. It seems like \rput(x,y){z} ignores x,y. My pstricks version is 2022/01/09 v3.13 `PSTricks' (tvz,hv). With the LuaTeX engine it works fine, however. Aug 10, 2022 at 10:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .