\psframe 有效,但 \rput 在 pspicture 中无效

\psframe 有效,但 \rput 在 pspicture 中无效

这是我的 MWE:

\documentclass[pstricks,border=12pt]{standalone}

\begin{document}
\begin{pspicture}[showgrid=top](5,5)
  \psframe[linecolor=red,linewidth=2pt,dimen=inner,framearc=0.5](3,1)(4,2)
  \rput(2,2){X}
  \rput(1,5){Y}
  \rput(3,4){Z}
\end{pspicture}
\end{document}

当我用它编译时,xelatex我得到以下输出:

xelatex 输出

latex但是当我用→ dvips→编译它时,ps2pdf我得到了正确的渲染:

乳胶输出

如您所见,\psframe正确渲染了给定的坐标,但\rput似乎完全忽略了它们。我可以给它任何坐标,“X”标记仍然在右下角。

我使用 TeXlive 2020.20210202-3

这是我的xelatex版本:

% xelatex -v
XeTeX 3.14159265-2.6-0.999992 (TeX Live 2020/Debian)
kpathsea version 6.3.2
Copyright 2020 SIL International, Jonathan Kew and Khaled Hosny.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Compiled with ICU version 67.1; using 67.1
Compiled with zlib version 1.2.11; using 1.2.11
Compiled with FreeType2 version 2.10.4; using 2.10.4
Compiled with Graphite2 version 1.3.14; using 1.3.14
Compiled with HarfBuzz version 2.7.4; using 2.7.4
Compiled with libpng version 1.6.37; using 1.6.37
Compiled with poppler version 0.68.0
Compiled with fontconfig version 2.13.1; using 2.13.1

要怎么做才能获得正确的渲染xelatex

相关内容