summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/bearwear/bearwear-doc.tex
blob: 80e6f2efdeacb38ac837f7f1e01c75e1d9c70bac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
%%
%% This is file `bearwear-doc.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% bearwear.dtx  (with options: `docu')
%% 
%% Copyright (C) 2020 Ulrike Fischer / Bär
%% 
%% It may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License (LPPL), either version 1.3c of
%% this license or (at your option) any later version.  The latest
%% version of this license is in the file:
%% 
%%    https://www.latex-project.org/lppl.txt
%% 
%% This file is part of the "bearwear bundle" (The Work in LPPL)
%% and all files in that bundle must be distributed together.
%% 
%% File: bearwear.dtx
\section{Basic Usage}

 The package is based on \TikZ{} and the main command should be used in a \texttt{tikzpicture} or -- as shown in some of the examples -- with \verb+\tikz+.

 \subsection{The shirts}
 The package provides a number of shirts for the bear, \bearwearkey{long sleeves} and \bearwearkey{round neckline} are the defaults:
 \begin{tcblisting}{righthand width=6cm}
 \tikz\bearwear % default
    [long sleeves,
     round neckline];
 \tikz\bearwear
   [t-shirt];
 \tikz\bearwear
   [muscle shirt];

 \tikz\bearwear
   [v-neckline];
 \tikz\bearwear
   [t-shirt,v-neckline];
 \tikz\bearwear
   [muscle shirt,v-neckline];
  \end{tcblisting}

 \subsection{Dressing the bear}

 To dress the bear with the shirt, simply add the \verb+\bear+ command from the \bearwearkey{tikzlings-bears} package.

 \begin{tcblisting}{before=\parindent0pt\nopagebreak}
 \tikz{\bear\bearwear[v-neckline];}
 \tikz{\bear\bearwear[muscle shirt];}
  \end{tcblisting}

 \subsection{Coloring the shirts}

 The body and the arms of the shirts can be colored. They are three basic keys: \bearwearkey{leftarm}, \bearwearkey{rightarm} and \bearwearkey{body}, and two meta keys: \bearwearkey{arms} and \bearwearkey{shirt}.
 Basically every option that would make sense in a \lstinline|\fill|  is allowed here.
 Patterns e.g. would work too.
 \begin{tcblisting}{tikz lower}
  \bear
  \bearwear
    [v-neckline,
     leftarm=red,
     rightarm=green,
     body=blue]
 \end{tcblisting}
 \begin{tcblisting}{tikz lower}
  \bear
  \bearwear[arms=green]
 \end{tcblisting}
 \begin{tcblisting}{tikz lower}
  \bear
  \bearwear
    [shirt=
      {shade,
       top color=blue,
       bottom color=red}]
 \end{tcblisting}

 \begin{tcblisting}{tikz lower,before=\parindent0pt\nopagebreak}
   \bear
   \bearwear
     [v-neckline,
      shirt  =
        {pattern=
          horizontal lines light blue}]
 \end{tcblisting}

 \subsection{Additional patterns}

 As seen in the last example patterns can be added instead of colors, but sometimes it makes sense to
 add them on top to preserve a background color. For this the package provides special \texttt{pattern} keys:\\
 \bearwearkey{leftarm pattern}, \bearwearkey{rightarm pattern}, \bearwearkey{arms pattern},
 \bearwearkey{body pattern}, \bearwearkey{shirt pattern},

 \begin{tcblisting}{tikz lower}
  \bear
  \bearwear
     [v-neckline,
      shirt=red,
      body pattern =
       {pattern=
         {Stars[points=6,
          radius=0.5mm,distance=1.5mm]},
        pattern color=yellow}]
 \end{tcblisting}

 \subsection{Decorations}

 The \lstinline|deco| keys add their value to a \texttt{path picture} key. This can be used to place emblems or use graphics as pattern. To help with the placement two coordinates are
 predefined: \bearwearkey{bearheart} and \bearwearkey{beartummy}.

 \begin{tcblisting}{tikz lower}
   \bear
   \bearwear[shirt deco =
    {\fill[red] (beartummy) circle (1pt);
     \fill[red] (bearheart) circle (1pt);}
     ]
 \end{tcblisting}

 \begin{tcblisting}{tikz lower}
  \bear
  \bearwear[shirt deco =
    {\node at (beartummy)
     {\includegraphics[width=5cm]
       {tartan3}};}]
 \end{tcblisting}

 \begin{tcblisting}{tikz lower}
  \bear
  \bearwear[body deco=
    {\node at ([yshift=-1mm]bearheart)
      {\includegraphics[width=0.3cm]
        {flag}};}]
 \end{tcblisting}

 \begin{tcblisting}{tikz lower}
  \bear
  \bearwear[
     shirt=Beige!80!black,
     body deco=
      {\node at ([yshift=-1mm]bearheart)
       {\includegraphics[width=0.5cm]
         {latex-project-logo}};}]
 \end{tcblisting}

 \begin{tcblisting}{tikz lower}
  \bear
  \bearwear[
     shirt=HotPink,
     body deco=
      {\path  (bearheart)--++(0,-3mm)
        pic{hippo};}];
 \end{tcblisting}

 \begin{tcblisting}{tikz lower}
  \bear
  \bearwear[
    arms= DeepSkyBlue,
    body deco =
     {\node at ([yshift=-2mm]beartummy)
       {\includegraphics[width=4cm]
         {montblanc}};
      \node[text=white,
           font=\tiny\sffamily]
        at ([yshift=1.95mm]beartummy)
        {{Mont Blanc}};
     }]
 \end{tcblisting}

 \subsection{Scaling}

 Scaling works as expected, but don't forget that nodes in \TikZ{} normally don't scale if you don't use the \lstinline|transform shape| key.
 You can use a scope for the scaling, or the \texttt{scale} key as as unknown keys are passed to tikz --
 in this case don't forget that both
 the bear and the shirt needs the same scaling factor.

 \begin{tcblisting}{tikz lower,before=\parindent0pt\nopagebreak,}
  \begin{scope}[scale=1.5]
  \bear
  \bearwear[
    arms= DeepSkyBlue,
    body deco =
     {\node at ([yshift=-2mm]beartummy)
       {\includegraphics[width=4cm]
         {montblanc}};
      \node[text=white,
           font=\tiny\sffamily]
        at ([yshift=2mm]beartummy)
        {{Mont Blanc}};
     }]
   \end{scope}
 \end{tcblisting}

\begin{tcblisting}{tikz lower,before=\parindent0pt\nopagebreak,}
  \bear[scale=0.7]
  \bearwear[scale=0.7,
    arms= DeepSkyBlue,
    body deco =
     {\node at ([yshift=-2mm]beartummy)
       {\includegraphics[width=4cm]
         {montblanc}};
      \node[text=white,
           font=\tiny\sffamily]
        at ([yshift=2mm]beartummy)
        {{Mont Blanc}};
     }]
 \end{tcblisting}

 \subsection{Moving}

It is possible to move the bear and the shirt with it. Ensure that the same shift
is used if you don't want to undress the bear.

\begin{tcblisting}{tikz lower,before=\parindent0pt\nopagebreak,}
  \coordinate (newbear) at (3,0);
  \bear\bearwear
  \bear[shift=(newbear)]\bearwear[shirt=red,shift=(newbear)]
\end{tcblisting}

 \subsection{Setting up defaults}

 With \lstinline|\bearwearsetup| you can change the defaults:

 \begin{tcblisting}{}
 \bearwearsetup
   {body=green!50!black,arms=green}
 \tikz{\bear;\bearwear;}
 \tikz{\bear;\bearwear;}
 \end{tcblisting}
 \section{The brains behind \texorpdfstring{\bearwearlogo{}}{BearWear}}
 \includegraphics[width=3cm]{baer}
 \begin{description}
 \item[Ulrike]
  Bär, your decision to create \bearwearlogo{} has come as a surprise to many. Did you expect this?
  \item[Bär] Quite true, Ulrike. I am better known as an outdoor type
  and the fashionistas didn't reckon with me at all.
 \item[Ulrike] So, why did you take this step?
 \item[Bär] There were quite a few reasons -- most importantly
 my deeply felt desire to bring more justice to the world.
 Look at the wonderful world of \TikZ ducks fashion, and even Marmots have come
 far in the area of refinement. Why should \TikZ bears be left behind?
 \item[Ulrike] You are also concerned with the more momentous issues of our day.
 \item[Bär] Correct! My fashion line is the first ever to have practically
 no negative influence on our environment. Manufacture and transportation
 are ecologically neutral. In fact it's the first time in the
 history of world economy that goods are produced without
 the use of raw materials.
 \item[Ulrike] You claim that \bearwearlogo{} will have a global impact.
 \item[Bär] Yes, the issue of globalization is one which has been interesting
  me for a long time. \bearwearlogo{} caters for the needs of \TikZ bears all
  over the world. There is the Longshirt Line for those who live near the poles,
  t-shirts for those in temperate regions and even a Muscle Shirt Line for the
  bears of Australia.
 \item[Ulrike] How about individuality?
 \item[Bär] I am particularly proud that \bearwearlogo{} enables every single
 bear to create his own personal shirt -- free of the dictates of the modern
 Brummells. He may use my suggestions but he need not do so.
 \item[Ulrike] Will you be seen wearing your own creations?
 \item[Bär] Well Ulrike, I am afraid this is not very likely.
 I have got this most beautiful fur and I'd hate to  cover it with artifical
 patterns -- no matter how ravishing.
 \item[Ulrike] One last question: what impulse got you moving towards
 \bearwearlogo{}?
 \item[Bär] The death of Karl Lagerfeld. Someone had to fill the void.
 \end{description}
 %</docu>
%% 
%%
%% End of file `bearwear-doc.tex'.