diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /info/examples/lgc/12-0-11.ltx |
Initial commit
Diffstat (limited to 'info/examples/lgc/12-0-11.ltx')
-rw-r--r-- | info/examples/lgc/12-0-11.ltx | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/info/examples/lgc/12-0-11.ltx b/info/examples/lgc/12-0-11.ltx new file mode 100644 index 0000000000..ab2f7b530e --- /dev/null +++ b/info/examples/lgc/12-0-11.ltx @@ -0,0 +1,93 @@ +\documentclass{ppex} +\nonstopmode +\usepackage {pstall} +\pagestyle{empty} + +\begin{document} +\ResetPreambleCommands +\ReadyForTheFray +\usepackage {pstall} +\definecolor{pink}{rgb}{1, .75, .8} +\definecolor{wheat}{rgb}{.96, .87, .7} +\definecolor{lightblue}{rgb}{.68, .85, .9} +\definecolor{brown}{rgb}{.65, .16, .16} +\definecolor{palegreen}{rgb}{.6, .98, .6} +\definecolor{white}{rgb}{1, 1, 1 } +\DeclareFixedFont{\curly}{T1}{pzc}{m}{it}{30} +% +% The cat is designed to appear on a 10 x 10 grid +% cat head +\def\Cathead{% + \pscircle[fillcolor=black](5,4.2){2.5}% +% ears + \bgroup + \psset{linecolor=black,fillcolor=pink,linewidth=.05,linestyle=solid} + \rput{45}(5,4.2){\pspolygon(2.5,.5)(2.5,-.5)(3.5,0)} + \rput{135}(5,4.2){\pspolygon(2.5,.5)(2.5,-.5)(3.5,0)} + \egroup +} +% eyes, nose and whiskers +\def\Catface{% + \pscircle[fillcolor=yellow](4,5.2){.5} + \psdiamond[fillcolor=gray](4,5.2)(.2,.5) + \pscircle[fillcolor=yellow](6,5.2){.5} + \psdiamond[fillcolor=gray](6,5.2)(.2,.5) +% nose + \rput{180}(5,4.6){\pstriangle[fillcolor=pink](.5,.5)} + % whiskers + \bgroup + \psset{linecolor=white,linestyle=solid,linewidth=.1} + \rput{5}(5,4.2){\psline(.8,0)(1.8,0)} + \rput{15}(5,4.2){\psline(.8,0)(1.8,0)} + \rput{165}(5,4.2){\psline(.8,0)(1.8,0)} + \rput{175}(5,4.2){\psline(.8,0)(1.8,0)} + \egroup +} +% paws +\def\Catpaws{% + \pscircle[fillcolor=black](1,4.2){.8} + \pscircle[fillcolor=black](9,4.2){.8} +% claws + \bgroup + \psset{fillcolor=yellow} + \def\clawsize{.4,.4} + \rput{180}(1,4.4){\pstriangle(\clawsize)} + \rput{180}(1,4.4){\pstriangle(-.45,0)(\clawsize)} + \rput{180}(1,4.4){\pstriangle(.45,0)(\clawsize)} + \rput{180}(9,4.4){\pstriangle(\clawsize)} + \rput{180}(9,4.4){\pstriangle(-.45,0)(\clawsize)} + \rput{180}(9,4.4){\pstriangle(.45,0)(\clawsize)} + \egroup +} +% wall +\def\Wall{% + \psframe[fillcolor=brown](0,0)(10,4) +} +% The whole cat on its wall +\def\Cat#1{% + {\psset{unit=#1} + \Cathead\Catface\Catpaws\Wall}% +} +% bricks +\def\Bricks{% + \bfseries\large + \psset{fillcolor=wheat} + \psframe(1,.4)(2.5,1.9) + \rput[bl](1.1,1){\LaTeX} + \psframe(5,.4)(6.3,1.9) + \psframe(7,.4)(8.5,1.9) + \psframe(2,2.2)(3.2,3.7) + \rput[bl]{90}(2.6,2.4){\normalsize$e=mc^2$} + \psframe(5.3,2.2)(8,3.7) + \rput[bl](5.4,2.8){\textsc{PostScript}} +} +\begin{pspicture}(10,8) +\psset{fillstyle=solid,linestyle=none,linewidth=0} +\psframe[fillcolor=lightblue](10,8) +\Cat{1} +\rput[bl]{5}(1,1){\curly\color{white}Don Knuth Rules OK} +\Bricks +\rput(7,1){\Cat{.1}} +\rput(.1,2){\Cat{.15}} +\end{pspicture} +\end{document} |