这是我的 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
我得到以下输出:
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
?