[pstricks] Dice Example
David Arnold
dwarnold45 at suddenlink.net
Fri Mar 6 07:48:22 CET 2009
Looks like I need pst-func, but when I include it with:
\documentclass{article}
\usepackage{pstricks}
\usepackage{pstricks-add}
\include{pst-func}
\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}
Then I get this error:
Runaway definition?
->p\unskip \advance \par at deathcycles \@ne \let \reserved at d =*\def
\def \ETC.
! TeX capacity exceeded, sorry [main memory size=3000000].
\multido at loop ->\the \multido at stuff
\ifnum \multidocount <
\multido at count \ad...
l.18 \iA\space \iB\space add}}}}}}
No pages of output.
Transcript written on junk.log.
### WARNING: TeX returned non zero exit status
### /usr/texbin/dvips -R -Poutline -o /tmp/altpdflatex.
22416-1236322065/junk.ps junk.dvi
This is dvips(k) 5.97 Copyright 2008 Radical Eye Software
(www.radicaleye.com)
/usr/texbin/dvips: ! DVI file can't be opened.
### FAILED to generate /tmp/altpdflatex.22416-1236322065/junk.ps ()
Do I perhaps need to update pst-func?
David.
On Mar 5, 2009, at 10:25 PM, David Arnold wrote:
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.
_______________________________________________
PSTricks mailing list
PSTricks at tug.org
http://tug.org/mailman/listinfo/pstricks
More information about the PSTricks
mailing list