diff options
author | Karl Berry <karl@freefriends.org> | 2005-12-29 00:34:36 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2005-12-29 00:34:36 +0000 |
commit | 41ceff5a615ab4e3d46b1c94bd26d9dcf9d6c1f8 (patch) | |
tree | c710ef0b82f65ae0f818e6ea8f10c2f40f2decf3 /Master/texmf-doc/doc/english/latex-graphics-companion/4-8-5.ltx | |
parent | 2293d6885b754133151c14be7e01ad81baf0afbf (diff) |
doc/english/i-l
git-svn-id: svn://tug.org/texlive/trunk@21 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-doc/doc/english/latex-graphics-companion/4-8-5.ltx')
-rw-r--r-- | Master/texmf-doc/doc/english/latex-graphics-companion/4-8-5.ltx | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/Master/texmf-doc/doc/english/latex-graphics-companion/4-8-5.ltx b/Master/texmf-doc/doc/english/latex-graphics-companion/4-8-5.ltx new file mode 100644 index 00000000000..8596174605c --- /dev/null +++ b/Master/texmf-doc/doc/english/latex-graphics-companion/4-8-5.ltx @@ -0,0 +1,84 @@ +\documentclass{ppex} +\nonstopmode +\usepackage {pstcol,pst-3d} +\pagestyle{empty} + +\begin{document} +\ResetPreambleCommands +\ReadyForTheFray +\usepackage {pstcol,pst-3d} +\newcommand\DieFrame[1][darkgray] + {\psframe[linecolor=black,fillcolor=#1,fillstyle=solid](4,4)} +\newcommand\SpotColor{white} +\newcommand\DieOne{\DieFrame[lightgray] + \pscircle*[linecolor=\SpotColor](2,2){.3} +} +\newcommand\DieTwo{\DieFrame[lightgray] + \pscircle*[linecolor=\SpotColor](1,2){.3} + \pscircle*[linecolor=\SpotColor](3,2){.3} +} +\newcommand\DieThree{\DieFrame[lightgray] + \pscircle*[linecolor=\SpotColor](1,1){.3} + \pscircle*[linecolor=\SpotColor](2,2){.3} + \pscircle*[linecolor=\SpotColor](3,3){.3} +} +\newcommand\DieFour{\DieFrame + \pscircle*[linecolor=\SpotColor](1,1){.3} + \pscircle*[linecolor=\SpotColor](3,3){.3} + \pscircle*[linecolor=\SpotColor](1,3){.3} + \pscircle*[linecolor=\SpotColor](3,1){.3} +} +\newcommand\DieFive{\DieFrame + \pscircle*[linecolor=\SpotColor](1,1){.3} + \pscircle*[linecolor=\SpotColor](3,3){.3} + \pscircle*[linecolor=\SpotColor](1,3){.3} + \pscircle*[linecolor=\SpotColor](3,1){.3} + \pscircle*[linecolor=\SpotColor](2,2){.3} +} +\newcommand\DieSix{\DieFrame + \pscircle*[linecolor=\SpotColor](1,1){.3} + \pscircle*[linecolor=\SpotColor](1,2){.3} + \pscircle*[linecolor=\SpotColor](1,3){.3} + \pscircle*[linecolor=\SpotColor](3,1){.3} + \pscircle*[linecolor=\SpotColor](3,2){.3} + \pscircle*[linecolor=\SpotColor](3,3){.3} +} +\newcommand\DieSide[3]{\ThreeDput[normal=#1](#2){#3}} +\def\TheDie#1#2(#3)(#4){% + \begin{pspicture}(#3)(#4) + \ifcase #1 \relax + \or %1 + \psset{viewpoint=-1 -1 #2} + \DieSide{-1 0 0}{0,4,0}{\DieThree} + \DieSide{0 -1 0}{0,0,0}{\DieFive} + \or %2 + \psset{viewpoint=1 -1 #2} + \DieSide{0 -1 0}{0,0,0}{\DieFive} + \DieSide{1 0 0}{4,0,0}{\DieFour} + \or %3 + \psset{viewpoint=1 1 #2} + \DieSide{1 0 0}{4,0,0}{\DieFour} + \DieSide{0 1 0}{4,4,0}{\DieTwo} + \or %4 + \psset{viewpoint=-1 1 #2} + \DieSide{0 1 0}{4,4,0}{\DieTwo} + \DieSide{-1 0 0}{0,4,0}{\DieThree} + \fi + \ifnum#2<0 + \DieSide{0 0 -1}{0,4,0}{\DieSix} + \else + \DieSide{0 0 1}{0,0,4}{\DieOne} + \fi + \end{pspicture}} +\psset{unit=.5cm} +\begin{tabular}{ccc} + \TheDie{1}{1}(-4,-0.5)(5,7.5)& + \TheDie{2}{1}(-1.5,-1.5)(7.5,6.5)& + \TheDie{3}{1}(-4,-3)(5,5)\\ + \TheDie{4}{1}(-6.5,-2)(2.5,6)& + \TheDie{1}{-1}(-4,-3)(5,5)& + \TheDie{2}{-1}(-1.5,-1.5)(7.5,6.5)\\ + \TheDie{3}{-1}(-4,-0.5)(5,7.5)& + \TheDie{4}{-1}(-6.5,-2)(2.5,6)\\ +\end{tabular} +\end{document} |