| 1 |
%% |
| 2 |
%% This is file `bearwear-doc.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% bearwear.dtx (with options: `docu') |
| 8 |
%% |
| 9 |
%% Copyright (C) 2020 Ulrike Fischer / Bär |
| 10 |
%% |
| 11 |
%% It may be distributed and/or modified under the conditions of |
| 12 |
%% the LaTeX Project Public License (LPPL), either version 1.3c of |
| 13 |
%% this license or (at your option) any later version. The latest |
| 14 |
%% version of this license is in the file: |
| 15 |
%% |
| 16 |
%% https://www.latex-project.org/lppl.txt |
| 17 |
%% |
| 18 |
%% This file is part of the "bearwear bundle" (The Work in LPPL) |
| 19 |
%% and all files in that bundle must be distributed together. |
| 20 |
%% |
| 21 |
%% File: bearwear.dtx |
| 22 |
\section{Basic Usage} |
| 23 |
|
| 24 |
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+. |
| 25 |
|
| 26 |
\subsection{The shirts} |
| 27 |
The package provides a number of shirts for the bear, \bearwearkey{long sleeves} and \bearwearkey{round neckline} are the defaults: |
| 28 |
\begin{tcblisting}{righthand width=6cm} |
| 29 |
\tikz\bearwear % default |
| 30 |
[long sleeves, |
| 31 |
round neckline]; |
| 32 |
\tikz\bearwear |
| 33 |
[t-shirt]; |
| 34 |
\tikz\bearwear |
| 35 |
[muscle shirt]; |
| 36 |
|
| 37 |
\tikz\bearwear |
| 38 |
[v-neckline]; |
| 39 |
\tikz\bearwear |
| 40 |
[t-shirt,v-neckline]; |
| 41 |
\tikz\bearwear |
| 42 |
[muscle shirt,v-neckline]; |
| 43 |
\end{tcblisting} |
| 44 |
|
| 45 |
\subsection{Dressing the bear} |
| 46 |
|
| 47 |
To dress the bear with the shirt, simply add the \verb+\bear+ command from the \bearwearkey{tikzlings-bears} package. |
| 48 |
|
| 49 |
\begin{tcblisting}{before=\parindent0pt\nopagebreak} |
| 50 |
\tikz{\bear\bearwear[v-neckline];} |
| 51 |
\tikz{\bear\bearwear[muscle shirt];} |
| 52 |
\end{tcblisting} |
| 53 |
|
| 54 |
\subsection{Coloring the shirts} |
| 55 |
|
| 56 |
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}. |
| 57 |
Basically every option that would make sense in a \lstinline|\fill| is allowed here. |
| 58 |
Patterns e.g. would work too. |
| 59 |
\begin{tcblisting}{tikz lower} |
| 60 |
\bear |
| 61 |
\bearwear |
| 62 |
[v-neckline, |
| 63 |
leftarm=red, |
| 64 |
rightarm=green, |
| 65 |
body=blue] |
| 66 |
\end{tcblisting} |
| 67 |
\begin{tcblisting}{tikz lower} |
| 68 |
\bear |
| 69 |
\bearwear[arms=green] |
| 70 |
\end{tcblisting} |
| 71 |
\begin{tcblisting}{tikz lower} |
| 72 |
\bear |
| 73 |
\bearwear |
| 74 |
[shirt= |
| 75 |
{shade, |
| 76 |
top color=blue, |
| 77 |
bottom color=red}] |
| 78 |
\end{tcblisting} |
| 79 |
|
| 80 |
\begin{tcblisting}{tikz lower,before=\parindent0pt\nopagebreak} |
| 81 |
\bear |
| 82 |
\bearwear |
| 83 |
[v-neckline, |
| 84 |
shirt = |
| 85 |
{pattern= |
| 86 |
horizontal lines light blue}] |
| 87 |
\end{tcblisting} |
| 88 |
|
| 89 |
\subsection{Additional patterns} |
| 90 |
|
| 91 |
As seen in the last example patterns can be added instead of colors, but sometimes it makes sense to |
| 92 |
add them on top to preserve a background color. For this the package provides special \texttt{pattern} keys:\\ |
| 93 |
\bearwearkey{leftarm pattern}, \bearwearkey{rightarm pattern}, \bearwearkey{arms pattern}, |
| 94 |
\bearwearkey{body pattern}, \bearwearkey{shirt pattern}, |
| 95 |
|
| 96 |
\begin{tcblisting}{tikz lower} |
| 97 |
\bear |
| 98 |
\bearwear |
| 99 |
[v-neckline, |
| 100 |
shirt=red, |
| 101 |
body pattern = |
| 102 |
{pattern= |
| 103 |
{Stars[points=6, |
| 104 |
radius=0.5mm,distance=1.5mm]}, |
| 105 |
pattern color=yellow}] |
| 106 |
\end{tcblisting} |
| 107 |
|
| 108 |
\subsection{Decorations} |
| 109 |
|
| 110 |
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 |
| 111 |
predefined: \bearwearkey{bearheart} and \bearwearkey{beartummy}. |
| 112 |
|
| 113 |
\begin{tcblisting}{tikz lower} |
| 114 |
\bear |
| 115 |
\bearwear[shirt deco = |
| 116 |
{\fill[red] (beartummy) circle (1pt); |
| 117 |
\fill[red] (bearheart) circle (1pt);} |
| 118 |
] |
| 119 |
\end{tcblisting} |
| 120 |
|
| 121 |
\begin{tcblisting}{tikz lower} |
| 122 |
\bear |
| 123 |
\bearwear[shirt deco = |
| 124 |
{\node at (beartummy) |
| 125 |
{\includegraphics[width=5cm] |
| 126 |
{tartan3}};}] |
| 127 |
\end{tcblisting} |
| 128 |
|
| 129 |
\begin{tcblisting}{tikz lower} |
| 130 |
\bear |
| 131 |
\bearwear[body deco= |
| 132 |
{\node at ([yshift=-1mm]bearheart) |
| 133 |
{\includegraphics[width=0.3cm] |
| 134 |
{flag}};}] |
| 135 |
\end{tcblisting} |
| 136 |
|
| 137 |
\begin{tcblisting}{tikz lower} |
| 138 |
\bear |
| 139 |
\bearwear[ |
| 140 |
shirt=Beige!80!black, |
| 141 |
body deco= |
| 142 |
{\node at ([yshift=-1mm]bearheart) |
| 143 |
{\includegraphics[width=0.5cm] |
| 144 |
{latex-project-logo}};}] |
| 145 |
\end{tcblisting} |
| 146 |
|
| 147 |
\begin{tcblisting}{tikz lower} |
| 148 |
\bear |
| 149 |
\bearwear[ |
| 150 |
shirt=HotPink, |
| 151 |
body deco= |
| 152 |
{\path (bearheart)--++(0,-3mm) |
| 153 |
pic{hippo};}]; |
| 154 |
\end{tcblisting} |
| 155 |
|
| 156 |
\begin{tcblisting}{tikz lower} |
| 157 |
\bear |
| 158 |
\bearwear[ |
| 159 |
arms= DeepSkyBlue, |
| 160 |
body deco = |
| 161 |
{\node at ([yshift=-2mm]beartummy) |
| 162 |
{\includegraphics[width=4cm] |
| 163 |
{montblanc}}; |
| 164 |
\node[text=white, |
| 165 |
font=\tiny\sffamily] |
| 166 |
at ([yshift=1.95mm]beartummy) |
| 167 |
{{Mont Blanc}}; |
| 168 |
}] |
| 169 |
\end{tcblisting} |
| 170 |
|
| 171 |
\subsection{Scaling} |
| 172 |
|
| 173 |
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. |
| 174 |
You can use a scope for the scaling, or the \texttt{scale} key as as unknown keys are passed to tikz -- |
| 175 |
in this case don't forget that both |
| 176 |
the bear and the shirt needs the same scaling factor. |
| 177 |
|
| 178 |
\begin{tcblisting}{tikz lower,before=\parindent0pt\nopagebreak,} |
| 179 |
\begin{scope}[scale=1.5] |
| 180 |
\bear |
| 181 |
\bearwear[ |
| 182 |
arms= DeepSkyBlue, |
| 183 |
body deco = |
| 184 |
{\node at ([yshift=-2mm]beartummy) |
| 185 |
{\includegraphics[width=4cm] |
| 186 |
{montblanc}}; |
| 187 |
\node[text=white, |
| 188 |
font=\tiny\sffamily] |
| 189 |
at ([yshift=2mm]beartummy) |
| 190 |
{{Mont Blanc}}; |
| 191 |
}] |
| 192 |
\end{scope} |
| 193 |
\end{tcblisting} |
| 194 |
|
| 195 |
\begin{tcblisting}{tikz lower,before=\parindent0pt\nopagebreak,} |
| 196 |
\bear[scale=0.7] |
| 197 |
\bearwear[scale=0.7, |
| 198 |
arms= DeepSkyBlue, |
| 199 |
body deco = |
| 200 |
{\node at ([yshift=-2mm]beartummy) |
| 201 |
{\includegraphics[width=4cm] |
| 202 |
{montblanc}}; |
| 203 |
\node[text=white, |
| 204 |
font=\tiny\sffamily] |
| 205 |
at ([yshift=2mm]beartummy) |
| 206 |
{{Mont Blanc}}; |
| 207 |
}] |
| 208 |
\end{tcblisting} |
| 209 |
|
| 210 |
\subsection{Moving} |
| 211 |
|
| 212 |
It is possible to move the bear and the shirt with it. Ensure that the same shift |
| 213 |
is used if you don't want to undress the bear. |
| 214 |
|
| 215 |
\begin{tcblisting}{tikz lower,before=\parindent0pt\nopagebreak,} |
| 216 |
\coordinate (newbear) at (3,0); |
| 217 |
\bear\bearwear |
| 218 |
\bear[shift=(newbear)]\bearwear[shirt=red,shift=(newbear)] |
| 219 |
\end{tcblisting} |
| 220 |
|
| 221 |
\subsection{Setting up defaults} |
| 222 |
|
| 223 |
With \lstinline|\bearwearsetup| you can change the defaults: |
| 224 |
|
| 225 |
\begin{tcblisting}{} |
| 226 |
\bearwearsetup |
| 227 |
{body=green!50!black,arms=green} |
| 228 |
\tikz{\bear;\bearwear;} |
| 229 |
\tikz{\bear;\bearwear;} |
| 230 |
\end{tcblisting} |
| 231 |
\section{The brains behind \texorpdfstring{\bearwearlogo{}}{BearWear}} |
| 232 |
\includegraphics[width=3cm]{baer} |
| 233 |
\begin{description} |
| 234 |
\item[Ulrike] |
| 235 |
Bär, your decision to create \bearwearlogo{} has come as a surprise to many. Did you expect this? |
| 236 |
\item[Bär] Quite true, Ulrike. I am better known as an outdoor type |
| 237 |
and the fashionistas didn't reckon with me at all. |
| 238 |
\item[Ulrike] So, why did you take this step? |
| 239 |
\item[Bär] There were quite a few reasons -- most importantly |
| 240 |
my deeply felt desire to bring more justice to the world. |
| 241 |
Look at the wonderful world of \TikZ ducks fashion, and even Marmots have come |
| 242 |
far in the area of refinement. Why should \TikZ bears be left behind? |
| 243 |
\item[Ulrike] You are also concerned with the more momentous issues of our day. |
| 244 |
\item[Bär] Correct! My fashion line is the first ever to have practically |
| 245 |
no negative influence on our environment. Manufacture and transportation |
| 246 |
are ecologically neutral. In fact it's the first time in the |
| 247 |
history of world economy that goods are produced without |
| 248 |
the use of raw materials. |
| 249 |
\item[Ulrike] You claim that \bearwearlogo{} will have a global impact. |
| 250 |
\item[Bär] Yes, the issue of globalization is one which has been interesting |
| 251 |
me for a long time. \bearwearlogo{} caters for the needs of \TikZ bears all |
| 252 |
over the world. There is the Longshirt Line for those who live near the poles, |
| 253 |
t-shirts for those in temperate regions and even a Muscle Shirt Line for the |
| 254 |
bears of Australia. |
| 255 |
\item[Ulrike] How about individuality? |
| 256 |
\item[Bär] I am particularly proud that \bearwearlogo{} enables every single |
| 257 |
bear to create his own personal shirt -- free of the dictates of the modern |
| 258 |
Brummells. He may use my suggestions but he need not do so. |
| 259 |
\item[Ulrike] Will you be seen wearing your own creations? |
| 260 |
\item[Bär] Well Ulrike, I am afraid this is not very likely. |
| 261 |
I have got this most beautiful fur and I'd hate to cover it with artifical |
| 262 |
patterns -- no matter how ravishing. |
| 263 |
\item[Ulrike] One last question: what impulse got you moving towards |
| 264 |
\bearwearlogo{}? |
| 265 |
\item[Bär] The death of Karl Lagerfeld. Someone had to fill the void. |
| 266 |
\end{description} |
| 267 |
%</docu> |
| 268 |
%% |
| 269 |
%% |
| 270 |
%% End of file `bearwear-doc.tex'. |