summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/bearwear/bearwear-doc.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/bearwear/bearwear-doc.tex')
-rw-r--r--Master/texmf-dist/doc/latex/bearwear/bearwear-doc.tex73
1 files changed, 51 insertions, 22 deletions
diff --git a/Master/texmf-dist/doc/latex/bearwear/bearwear-doc.tex b/Master/texmf-dist/doc/latex/bearwear/bearwear-doc.tex
index 9c6bd593391..80e6f2efdea 100644
--- a/Master/texmf-dist/doc/latex/bearwear/bearwear-doc.tex
+++ b/Master/texmf-dist/doc/latex/bearwear/bearwear-doc.tex
@@ -47,8 +47,8 @@
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];}
+ \tikz{\bear\bearwear[v-neckline];}
+ \tikz{\bear\bearwear[muscle shirt];}
\end{tcblisting}
\subsection{Coloring the shirts}
@@ -57,33 +57,33 @@
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;
+ \bear
\bearwear
[v-neckline,
leftarm=red,
rightarm=green,
- body=blue];
+ body=blue]
\end{tcblisting}
\begin{tcblisting}{tikz lower}
- \bear;
- \bearwear[arms=green];
+ \bear
+ \bearwear[arms=green]
\end{tcblisting}
\begin{tcblisting}{tikz lower}
- \bear;
+ \bear
\bearwear
[shirt=
{shade,
top color=blue,
- bottom color=red}];
+ bottom color=red}]
\end{tcblisting}
\begin{tcblisting}{tikz lower,before=\parindent0pt\nopagebreak}
- \bear;
+ \bear
\bearwear
[v-neckline,
shirt =
{pattern=
- horizontal lines light blue}];
+ horizontal lines light blue}]
\end{tcblisting}
\subsection{Additional patterns}
@@ -94,7 +94,7 @@
\bearwearkey{body pattern}, \bearwearkey{shirt pattern},
\begin{tcblisting}{tikz lower}
- \bear;
+ \bear
\bearwear
[v-neckline,
shirt=red,
@@ -102,7 +102,7 @@
{pattern=
{Stars[points=6,
radius=0.5mm,distance=1.5mm]},
- pattern color=yellow}];
+ pattern color=yellow}]
\end{tcblisting}
\subsection{Decorations}
@@ -111,7 +111,7 @@
predefined: \bearwearkey{bearheart} and \bearwearkey{beartummy}.
\begin{tcblisting}{tikz lower}
- \bear;
+ \bear
\bearwear[shirt deco =
{\fill[red] (beartummy) circle (1pt);
\fill[red] (bearheart) circle (1pt);}
@@ -119,7 +119,7 @@
\end{tcblisting}
\begin{tcblisting}{tikz lower}
- \bear;
+ \bear
\bearwear[shirt deco =
{\node at (beartummy)
{\includegraphics[width=5cm]
@@ -127,25 +127,25 @@
\end{tcblisting}
\begin{tcblisting}{tikz lower}
- \bear;
+ \bear
\bearwear[body deco=
{\node at ([yshift=-1mm]bearheart)
{\includegraphics[width=0.3cm]
- {flag}};}];
+ {flag}};}]
\end{tcblisting}
\begin{tcblisting}{tikz lower}
- \bear;
+ \bear
\bearwear[
shirt=Beige!80!black,
body deco=
{\node at ([yshift=-1mm]bearheart)
{\includegraphics[width=0.5cm]
- {latex-project-logo}};}];
+ {latex-project-logo}};}]
\end{tcblisting}
\begin{tcblisting}{tikz lower}
- \bear;
+ \bear
\bearwear[
shirt=HotPink,
body deco=
@@ -154,7 +154,7 @@
\end{tcblisting}
\begin{tcblisting}{tikz lower}
- \bear;
+ \bear
\bearwear[
arms= DeepSkyBlue,
body deco =
@@ -170,11 +170,14 @@
\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:
+ 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;
+ \bear
\bearwear[
arms= DeepSkyBlue,
body deco =
@@ -189,6 +192,32 @@
\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: