The problem is that asymptote.sty
redefines \Ginclude@eps
. The definition in xetex.def
is
\def\Ginclude@eps#1{%
\Gin@log{<#1>}%
\bgroup
\ifx\Undefined\Gin@vllx\else\@trim@vporttrue\fi
\def\@tempa{!}%
\dimen@\Gin@urx\p@
\advance\dimen@ -\Gin@llx\p@
\if@trim@vport
\advance\dimen@ \Gin@vllx\p@
\fi
\edef\Gin@urx{\strip@pt\dimen@}%
\dimen@\Gin@ury\p@
\advance\dimen@ -\Gin@lly\p@
\if@trim@vport
\advance\dimen@ \Gin@vlly\p@
\fi
\edef\Gin@ury{\strip@pt\dimen@}%
\dimen@\Gin@req@width
\[email protected]%
\divide\dimen@\dimen@ii
\@tempdima\Gin@req@height
\divide\@tempdima\dimen@ii
\special{PSfile="#1"\GPT@space
\if@trim@vport
llx=\Gin@vllx\GPT@space
lly=\Gin@vlly\GPT@space
\fi
urx=\Gin@urx\GPT@space
ury=\Gin@ury\GPT@space
\ifx\Gin@scalex\@tempa\else rwi=\number\dimen@\GPT@space\fi
\ifx\Gin@scaley\@tempa\else rhi=\number\@tempdima\GPT@space\fi
\ifGin@clip clip\fi}%
\egroup}
while the one in asymptote.sty
is
\def\Ginclude@eps#1{%
\message{<#1>}%
\bgroup
\def\@tempa{!}%
\dimen@\Gin@req@width
\[email protected]\relax
\divide\dimen@\dimen@ii
\@tempdima\Gin@req@height
\divide\@tempdima\dimen@ii
\special{PSfile=#1\space
llx=\Gin@llx\space
lly=\Gin@lly\space
urx=\Gin@urx\space
ury=\Gin@ury\space
\ifx\Gin@scalex\@tempa\else rwi=\number\dimen@\space\fi
\ifx\Gin@scaley\@tempa\else rhi=\number\@tempdima\space\fi
\ifGin@clip clip\fi}%
\egroup
}
If I restore the correct meaning (for XeTeX), then the run is successful.
\documentclass{standalone}
\usepackage{graphicx}
\makeatletter
\let\Ginclude@eps@orig\Ginclude@eps
\makeatother
\usepackage{asymptote}
\makeatletter
\let\Ginclude@eps\Ginclude@eps@orig
\makeatother
\usepackage{pst-poker}
\begin{document}
\crdKh
\end{document}
In order to avoid warnings from Ghostscript that might be innocuous, but may not, depending on the type of graphics involved, you should compile with
xelatex-unsafe
(it's not really that unsafe).
Another way might be to convert the eps
files of pst-poker
to PDF. I tried with epstopdf
and it works.