I need help with the pst-poker package included in texlive. I verified that everything is installed, but if I try to run
\documentclass{article}
\usepackage{pst-poker}
\begin{document}
\As
\end{document}
I get the "Undefined control sequence. \As" error.
Note that if I try to load the package using "\usepackage{poker2}" as instructed in the documentation, it tells me "File `poker2.sty' not found. \begin". I guess the name of the package has simply changed and the documentation hasn't been updated.
Now, if I make it run despite the error, I get this messed up output:
so clearly the package exists and is detected, but there's a weird bug.
Edit: Alright, compiling with latex/dvips/ps2pdf works. xelatex works as well, and also seems to work with documents that give me errors with latex in dvi mode, and even works through latexmk!




latexmkisn't smart enough to detect that you need to compile withlatex+dvipsinstead ofpdflatex. So you need to tell TeX Studio to compile it that way. – Alan Munn Mar 15 '18 at 02:51pdflatexif add\usepackage{auto-pst-pdf}(after pstricks) and add the option--enable-write18to pdflatex switches if you're under MiKTeX, or-shell-escapefor TeX Live or MacTeX. – Bernard Mar 15 '18 at 10:47