答案1
由于\rotatebox
工作方式的原因,它并不完全是圆形的,但可以通过调整角度和偏移来进行调整110pt
。
此外,pst-poker
排版需要很长时间。使用 XeLaeX。
虽然这些 MWE 是用默认阴影完成的,但还是要感谢 Paul Gaborit 指出可以使用选项crdshadow=none
来抑制它们。
这里有110pt
偏移和 7 度增量:
\documentclass{article}
\usepackage{pst-poker, rotating, stackengine}
\newcommand\inhand[3][110pt]{\rotatebox[origin=b]{#2}{\raisebox{#1}{#3}}}
\begin{document}
\setstackgap{L}{0pt}
\Longunderstack{%
\inhand{42}{\crdAs}
\inhand{35}{\crdtenh}
\inhand{28}{\crdsevd}
\inhand{21}{\crdsevc}
\inhand{14}{\crdQd}
\inhand{7}{\crdtenh}
\inhand{0}{\crdsevc}
\inhand{-7}{\crdQd}
\inhand{-14}{\crdAs}
\inhand{-21}{\crdsevc}
\inhand{-28}{\crdQd}
\inhand{-35}{\crdtenh}
\inhand{-42}{\crdsevc}
}
\end{document}
150pt
以下是具有偏移和 5 度增量的变体:
\documentclass{article}
\usepackage{pst-poker, rotating, stackengine}
\newcommand\inhand[3][150pt]{\rotatebox[origin=b]{#2}{\raisebox{#1}{#3}}}
\begin{document}
\setstackgap{L}{0pt}
\Longunderstack{%
\inhand{30}{\crdAs}
\inhand{25}{\crdtenh}
\inhand{20}{\crdsevd}
\inhand{15}{\crdsevc}
\inhand{10}{\crdQd}
\inhand{5}{\crdtenh}
\inhand{0}{\crdsevc}
\inhand{-5}{\crdQd}
\inhand{-10}{\crdAs}
\inhand{-15}{\crdsevc}
\inhand{-20}{\crdQd}
\inhand{-25}{\crdtenh}
\inhand{-30}{\crdsevc}
}
\end{document}
最后,250pt
偏移和 4 度增量:
\documentclass{article}
\usepackage{pst-poker, rotating, stackengine}
\newcommand\inhand[3][250pt]{\rotatebox[origin=b]{#2}{\raisebox{#1}{#3}}}
\begin{document}
\setstackgap{L}{0pt}
\Longunderstack{%
\inhand{24}{\crdAs}
\inhand{20}{\crdtenh}
\inhand{16}{\crdsevd}
\inhand{12}{\crdsevc}
\inhand{8}{\crdQd}
\inhand{4}{\crdtenh}
\inhand{0}{\crdsevc}
\inhand{-4}{\crdQd}
\inhand{-8}{\crdAs}
\inhand{-12}{\crdsevc}
\inhand{-16}{\crdQd}
\inhand{-20}{\crdtenh}
\inhand{-24}{\crdsevc}
}
\end{document}
这是一个内联版本
\documentclass{article}
\usepackage{pst-poker, rotating, stackengine}
\newcommand\inline[1]{#1\kern-35pt\ignorespaces}
\begin{document}
\inline{\crdAs}
\inline{\crdtenh}
\inline{\crdsevd}
\inline{\crdsevc}
\inline{\crdQd}
\inline{\crdtenh}
\inline{\crdsevc}
\inline{\crdQd}
\inline{\crdAs}
\inline{\crdsevc}
\inline{\crdQd}
\inline{\crdtenh}
\inline{\crdsevc}
\end{document}