Debian Codegraph @

texmf-dist/doc/generic/pst-fun/pst-fun-doc.tex

raw
1 %% $Id: pst-thick-doc.tex 170 2009-12-08 21:30:53Z herbert $
2 \documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,smallheadings,
3 headexclude,footexclude,oneside]{pst-doc}
4 \usepackage{pstricks-add,pst-fun}
5 \let\pstFV\fileversion
6
7 \def\bgImage{{%
8 \begin{pspicture}(0,-1.3)(10,3)
9 \psBird[Branch] \rput{-20}(4,1.8){\psBird}
10 \end{pspicture}
11 }}
12
13 \lstset{explpreset={pos=t,width=-99pt,overhang=0pt,hsep=\columnsep,
14 vsep=\bigskipamount,rframe={}},style=code}
15 \begin{document}
16
17 \title{\texttt{pst-fun}\\funny macros\\
18 \small v.\pstFV}
19 \subtitle{A PSTricks package for drawing funny objects}
20 \author{Manuel Luque\\Herbert Vo\ss}
21 \docauthor{Herbert Vo\ss}
22 \date{\today}
23 \maketitle
24
25 \clearpage
26
27 %\begin{abstract}
28 %\end{abstract}
29
30 \tableofcontents
31
32 \clearpage
33
34 \section{The macros}
35 \begin{LTXexample}
36 \begin{pspicture}[showgrid](-5,-4)(4,8) % needs pstricks-add
37 \psBill
38 \psHomothetie[linecolor=blue](4,-3){2}{\psBill}
39 \psdots[dotsize=3pt,linecolor=red](4,-3)
40 \pstVerb{ /m -3 -0.85 sub 4 0.6 sub div def }
41 \psplot[linestyle=dashed,linecolor=red]{-5}{4}{ m x mul m 4 mul sub 3 sub }
42 \psHomothetie[linecolor=green](4,-3){0.5}{\psBill}
43 \psHomothetie[linecolor=magenta](4,-3){-0.25}{\psBill}
44 \end{pspicture}
45 \end{LTXexample}
46 \xLcs{psBill}
47 %$
48
49
50 \begin{LTXexample}
51 \begin{pspicture}[showgrid](0,-0.5)(12,4)
52 \psFish
53 \rput(6,0){\psFish[fillstyle=slope]}
54 \end{pspicture}
55 \end{LTXexample}
56 \xLcs{psFish}
57
58
59 \begin{LTXexample}
60 \begin{pspicture}[showgrid](-2,-2.4)(6,2)
61 \psLouisXIII
62 \rput(4,0){\psLouisXIII[linecolor=red]}
63 \end{pspicture}
64 \end{LTXexample}
65 \xLcs{psLouisXIII}
66
67
68 \begin{LTXexample}
69 \begin{pspicture}[showgrid](0,-0.4)(11,6)
70 \psPulpo \rput(10,0.5){\psscalebox{0.15}{\psPulpo[fillcolor=yellow,fillstyle=solid]}}
71 \end{pspicture}
72 \end{LTXexample}
73 \xLcs{psPulpo}
74
75
76 \begin{LTXexample}
77 \begin{pspicture}[showgrid](0,-1.2)(12,3)
78 \psBird \rput(4,0){\psBird} \rput{-60}(8,2){\psBird}
79 \end{pspicture}
80 \end{LTXexample}
81 \xLcs{psBird}\xLkeyword{Branch}
82
83 \begin{LTXexample}
84 \begin{pspicture}[showgrid](0,-1.3)(10,3)
85 \psBird[Branch] \rput{-20}(4,1.8){\psBird}
86 \end{pspicture}
87 \end{LTXexample}
88 \xLcs{psBird}\xLkeyword{Branch}
89
90 \begin{LTXexample}
91 \begin{pspicture}[showgrid](0,-0.3)(8,10)
92 \psLuke
93 \rput(6.5,1){\psscalebox{0.15}{\psLuke}}
94 \end{pspicture}
95 \end{LTXexample}
96 \xLcs{psLuke}
97
98 \begin{LTXexample}
99 \begin{pspicture}[showgrid](-5,-5)(5,5)
100 \psAnt
101 \rput(-3,3){\psAnt[fillcolor=red!50]}
102 \rput{30}(3,-3){\psAnt[fillcolor=blue!50]}
103 \rput{-60}(-3,-3){\psAnt[fillcolor=blue!20]}
104 \rput(2.5,3){\psscalebox{0.15}{\psAnt}}
105 \end{pspicture}
106 \end{LTXexample}
107 \xLcs{psAnt}
108
109 \begin{LTXexample}
110 \begin{pspicture}[showgrid](6,7)
111 \psParrot{1}
112 \psParrot{0.2}\rput(4,5){\psParrot{0.2}}
113 \end{pspicture}
114 \end{LTXexample}
115 \xLcs{psParrot}
116
117 \begin{LTXexample}
118 \begin{pspicture}[showgrid](8,7)
119 \psKangaroo{1}
120 \multido{\iA=2+1}{5}{\rput[lb](1,\iA){\psKangaroo[fillcolor=red]{1}}}
121 \rput(4,0){\psKangaroo[fillcolor=red!30]{5}}
122 \rput(5,1){\psKangaroo[fillcolor=blue!30,opacity=0.5]{5}}
123 \end{pspicture}
124 \end{LTXexample}
125 \xLcs{psKangaroo}
126
127 \begin{LTXexample}
128 \begin{pspicture}(-1,-4)(8,4)
129 \psPig(0,0)\psPig[fillcolor=blue!40,noseColor=purple,
130 eyeColor=red,linewidth=4pt,unit=2](4,0)
131 \end{pspicture}
132 \end{LTXexample}
133 \xLcs{psPig}\xLkeyword{eyeColor}\xLkeyword{noseColor}
134
135 \begin{LTXexample}
136 \begin{pspicture}(-1,-3)(8,4)
137 \psDog\psdot(0,0)
138 \rput(4,0){\psDog[fillcolor=blue!40,fillstyle=solid,linewidth=4pt,unit=2]}
139 \psdot(4,0)
140 \end{pspicture}
141 \end{LTXexample}
142 \xLcs{psDog}
143
144 \begin{LTXexample}
145 \begin{pspicture}[showgrid](-1,0)(5,6)
146 \psHuman[humancolor=red,dotscale=2]% is (0,0)
147 \psHuman[rotate=45,opacity=0.4]
148 \psHuman[opacity=0.6,humancolor=green](2,1)
149 \psHuman[rotate=90,humancolor=blue](2,1)
150 \psHuman[humancolor=cyan!60](4,0)
151 \end{pspicture}
152 \end{LTXexample}
153 \xLcs{psHuman}
154
155 \begin{LTXexample}
156 \begin{pspicture}[showgrid](-1,0)(5,6)
157 \psHuman[linecolor=red,type=B]% is (0,0)
158 \psHuman[rotate=45,opacity=0.4,type=B]
159 \psHuman[opacity=0.6,humancolor=green,type=B](2,1)
160 \psHuman[rotate=90,humancolor=blue,type=B](2,1)
161 \psHuman[humancolor=cyan!60,type=B](4,0)
162 \end{pspicture}
163 \end{LTXexample}
164 \xLcs{psHuman}
165
166 \clearpage
167 \section{List of all optional arguments for \texttt{pst-fun}}
168
169 \xkvview{family=pst-fun,columns={key,type,default}}
170
171
172 \bgroup
173 \raggedright
174 \nocite{*}
175 \printbibliography
176 \egroup
177
178
179 \printindex
180 \end{document}
181
182