[pstricks] Dice Example

David Arnold dwarnold45 at suddenlink.net
Fri Mar 6 07:25:53 CET 2009


All,

I am trying the dice example on page 25 of pstricks-add-doc.pdf.

\documentclass{article}

\usepackage{pstricks}
\usepackage{pstricks-add}

\begin{document}

\begin{center}
\begin{pspicture}(-1,-1)(8,8)
\multido{\iA=1+1}{6}{%
	\rput(\iA,7.5){\psdice[unit=0.75,linecolor=red!90]{\iA}}
	\rput(! -0.5 7 \iA\space sub){\Huge\psdice[unit=0.75,linecolor=blue! 
70]{\iA}}
	\multido{\iB=1+1}{6}{%
		\rput(! \iA\space u \iB\space sub){%
			\rnode[c]{p\\iA\iB}{\makebox[1em][l]{\strut\psPrintValue 
[fontscale=12]{%
				\iA\space \iB\space add}}}
}}}
\end{pspicture}
\end{center}

\end{document}

I am getting this error:

! Undefined control sequence.
<argument> \strut \psPrintValue
                                 [fontscale=12]{\iA \space \iB \space  
add}
l.17 }}}


Any suggestions?

David.


More information about the PSTricks mailing list