Debian Codegraph @

texmf-dist/source/latex/tikzsymbols/tikzsymbols.dtx

raw
1 % \iffalse meta-comment
2 % !TEX encoding = UTF-8 Unicode
3 % !TEX program = pdfLaTeX
4 %
5 %
6 %<*internal>
7 \iffalse
8 %</internal>
9 %<*readme>
10
11 tikzsymbols
12 ===========
13
14 Overview
15 --------
16
17 The *tikzsymbols* package v4.12a (2021/12/14) contains symbols created using tikz.
18
19 This package provides:
20 * various emoticons
21 * cooking symbols
22 * trees
23 * other symbols (e.g. Penrose-Triangle (Triban), chair, coffeecup, etc.)
24 * some tools to create your own tikzsymbol
25
26 FAQ
27 -------
28 See documentation
29
30
31 Changes
32 -------
33 * v1.6 Several bugs fixed and some options added.
34 * v1.7 New symbols and some `bugs` fixed
35 * v2.0
36 - Bug fixed, now option `tree=on/off` is working again,
37 - new symbols: `\Triban`, improved BasicTree code.
38 - New option: `marvsoym` (see documentation for more details).
39 * v2.2
40 - Included `\@ifpackageloaded`, now symbols can have negative scale,
41 - Did something else, I can't remember.
42 * v2.25 Changed some code
43 * v2.5
44 - New option: `draftabsolute` (symbols are replaced by text and LateX becomes faster again). Changed manual a bit.
45 * v3.0
46 - Symbols are stored inside a save-box and are used via `\usebox`,
47 - New option: `draft=absolute` (old option is still useable, but obsolete),
48 - Changed output of `draft=absolute`,
49 - New option: `prefix=<prefix>`, adds a `<prefix>` to all commands,
50 - New option: `usebox=true/false` If false the symbols aren't stored inside a box,
51 - See manual for more changes.
52 * v3.0a New cooking-symbols: `\grater`, `\bottle`
53 * v3.0b Deleted some non-ASCII characters.
54 * v3.0g
55 - Removed a bug caused by me messing up with commands.
56 - Removed package `calc` and replaced `\setlength` with `\pgfmathsetlength`
57 - Reworked some code of the symbols.
58 - Did not change the manual.
59 * v3.0h Created a bug in the process of fixing the last bug, added the forgotten \\fi.
60 * v3.01alpha Copied the 2e code and started rewriting the code in LaTeX3.
61 * v3.38 Nearly finished rewriting.
62 * v3.40 Now everything is coded in LaTeX3.
63 * v3.40-v3.95 Various fixes and changes.
64 * v3.95 New emoticon `\(d)Changey`.
65 * v4.0 Finished reworking the code.
66 * v4.01
67 - Added a known problem to the documentation.
68 - New Symbol: `\rollingpin` (and of course the german equivalent `\Nudelholz`)
69 * v4.02
70 - Added option `baseline=true/false` to fix a bug occurring with `todonotes`
71 - New Symbols: `\cChangey` and `\dcChangey`
72 * v4.06
73 - New Emoticon: `\(d)Sleepey`.
74 - New Emoticon: `\SchrodingersCat`.
75 - New option: `global-scale`.
76 - New option: `symbol-scale`.
77 - `\tikzsymbolsset` now raises a warning if a load-time option is used.
78 - Some minor fixes.
79 * v4.07 Option `usebox` is now usable during the document.
80 * v4.10
81 - Added FAQ.
82 - All files are now derived from the .dtx file.
83 - New option: `append-style`.
84 - New option: `remember-picture`.
85 - Internal change: `baseline`.
86 - Deleted invisible sign.
87 - New symbolpair: `\Knoblauchpresse` and `\garlicpress`.
88 - Option `draft` and `final` now set the internal draft boolean locally.
89 - Reworked sizes of the plain vanilla draft boxes.
90 * v4.10a Bugfix: Forgot to remove colors from `\Strichmaxerl`
91 * v4.10b Bugfix: Replace deprecated `\c_zero` by `0`
92 * v4.10c Bugfix: Added dimension to `xshift` and `yshift` for `\Fire`, `\Candle` and `\(d)Laughey`
93 * v4.12
94 - New (public) command to define symbols: `\tikzsymbolsdefinesymbol`
95 - Some other auxiliary functions `\tikzsymbolsprovideandusesavebox`, `\tikzsymbolssetscaleabs`, `\tikzsymbolsscaleabs`.
96 - Continuing with `\tikzsymbols_create_draftbox:nn`, `\tikzsymbols_create_squared_draftbox:n` and `\l_tikzsymbols_if_opt_draft_bool`
97 - New symbols: `\Heart` and `\dHeart`
98 - New symbol: `\Maskey`
99 * v4.12a
100 - Fixing `final` option.
101
102 Requirements
103 ------------
104
105 * expl3 & xparse
106 * tikz
107 * xcolor
108 * xspace
109 * l3keys2e
110
111
112 This file contains
113 ------------------
114
115 * README
116 * tikzsymbols.pdf
117 * tikzsymbols.dtx
118 * tikzsymbols.ins
119
120 License
121 -------
122 This material is subject to the LATEX Project Public License 1.3c. See
123
124 https://www.latex-project.org/lppl/
125
126 for the details of that license.
127
128 %</readme>
129 %<*internal>
130 \fi
131 \def\nameofplainTeX{plain}
132 \ifx\fmtname\nameofplainTeX\else
133 \expandafter\begingroup
134 \fi
135 %</internal>
136 %<*install>
137 \input l3docstrip.tex
138 %\keepsilent
139 \askforoverwritefalse
140 \preamble
141
142 Copyright (C) 2013--2021 by Ben Vitecek (current Maintainer)
143
144 This work may be distributed and/or modified under the
145 conditions of the LaTeX Project Public License, either version 1.3c
146 of this license or (at your option) any later version.
147 The latest version of this license is in
148 https://www.latex-project.org/lppl/
149 and version 1.3c or later is part of all distributions of LaTeX
150 version 2005/12/01 or later.
151
152 This work has the LPPL maintenance status `maintained'.
153
154 This work consists of the files README.md, tikzsymbols.dtx,
155 tikzsymbols.ins and the derived files tikzsymbols.sty.
156
157 \endpreamble
158 %\postamble
159
160 %\endpostamble
161 \usedir{tex/latex/tikzsymbols}
162 \generate{
163 \file{\jobname.sty}{\from{\jobname.dtx}{package}}
164 }
165 %</install>
166 %<install>\endbatchfile
167 %<*internal>
168 \usedir{source/latex/tikzsymbols}
169 \generate{
170 \file{\jobname.ins}{\from{\jobname.dtx}{install}}
171 }
172 \nopreamble\nopostamble
173 \usedir{doc/latex/tikzsymbols}
174 \generate{
175 \file{README.md}{\from{\jobname.dtx}{readme}}
176 }
177 \ifx\fmtname\nameofplainTeX
178 \expandafter\endbatchfile
179 \else
180 \expandafter\endgroup
181 \fi
182 %</internal>
183 %<*driver>
184 \documentclass[onlydoc,11pt,english]{l3doc}
185 %: documentclass
186 \usepackage[utf8]{inputenc}
187 \usepackage[T1]{fontenc}
188 \usepackage{lmodern}
189 \usepackage{babel}
190 \usepackage{marvosym}
191 %\usepackage{microtype}
192 \usepackage{longtable}
193 \usepackage{booktabs}
194 \usepackage{mathtools}
195 \usepackage{tikzsymbols}
196 \usepackage{xparse}
197 \usepackage{marginnote}
198
199 \usepackage{cleveref}
200
201
202 \EnableCrossrefs
203 \CodelineIndex
204 \RecordChanges
205 \AtEndDocument { \PrintChanges \PrintIndex }
206
207 \makeatletter
208 \ExplSyntaxOn
209
210
211 \newcommand\tikzsymbols{\Package{tikzsymbols}}
212
213 \NewDocumentCommand{\definedBasicTree} { O{1} m m m m }
214 {
215 \group_begin:
216 \__tikzsymbols_Basic_Tree_off:nnnnn {#1} {#2} {#3} {#4} {#5}
217 \group_end:
218 }
219
220
221 \let\tikzsymbolscs\cs
222 \renewcommand\cs[1]
223 {
224 \tikzsymbolscs { \textcolor {blue} {#1} }
225 }
226
227 \newcommand{\Package}{\pkg}
228 \newcommand{\Option}{\texttt}
229 \newcommand{\opt}{\texttt}
230 \newcommand{\Makro}{\cs}
231 \newcommand{\mycs}{\cs}
232 \newcommand{\makrouse}[1]{\use:c{#1}}
233 \newcommand{\Meta}[1]{\meta{#1}}
234
235 \colorlet{mybracegreen}{green!50!black}
236 \renewcommand\marg[1]{\textcolor{mybracegreen}{\texttt{\char`\{}}%
237 \meta{#1}%
238 \textcolor{mybracegreen}{\texttt{\char`\}}}%
239 }
240
241
242 \hfuzz=500pt
243 \vbadness=\maxdimen
244 \hbadness=\maxdimen
245
246
247 \cs_new:Npn \CreateExample #1#2
248 {
249 \tl_set_rescan:Nnn \l_tmpa_tl
250 {
251 \char_set_catcode_other:N \{
252 \char_set_catcode_other:N \}
253 }
254 {#2}
255 \Makro{#1\textcolor{black}{\l_tmpa_tl}} \space \use:c {#1}#2
256 }
257
258 \clist_new:N \printclist
259
260 \cs_new:Npn \MapinTable
261 {
262 \clist_use:Nn \printclist { }
263 }
264
265 \clist_gset_eq:NN \printclist \g_tikzsymbols_list_of_printing_cooking_with_argument_commands_clist
266
267 \clist_if_exist:NF \printclist { \ERROR }
268
269 \newcommand{\loadtime}{\marginpar{load-time}}
270 \newcommand{\preamble}{\marginpar{preamble}}
271 \newcommand{\preload}{\marginpar{load-time and preamble}}
272
273
274
275 \NewDocumentEnvironment { myexample } { }
276 {
277 \medskip
278 \noindent\textbf{Examples:}
279 }{
280
281 }
282 \NewDocumentEnvironment { mynote } { }
283 {
284 \medskip
285 \noindent\textbf{Note:}%
286 }{
287
288 }
289
290 %\tikzsymbolsset { marvosym=true }
291
292
293 \ExplSyntaxOff
294 \makeatother
295
296
297
298 \begin{document}
299 \DocInput{\jobname.dtx}
300 \end{document}
301 %</driver>
302 % \fi
303 %
304 %
305 % \CharacterTable
306 % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
307 % Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
308 % Digits \0\1\2\3\4\5\6\7\8\9
309 % Exclamation \! Double quote \" Hash (number) \#
310 % Dollar \$ Percent \% Ampersand \&
311 % Acute accent \' Left paren \( Right paren \)
312 % Asterisk \* Plus \+ Comma \,
313 % Minus \- Point \. Solidus \/
314 % Colon \: Semicolon \; Less than \<
315 % Equals \= Greater than \> Question mark \?
316 % Commercial at \@ Left bracket \[ Backslash \\
317 % Right bracket \] Circumflex \^ Underscore \_
318 % Grave accent \` Left brace \{ Vertical bar \|
319 % Right brace \} Tilde \~}
320 %
321 %
322 %
323 %
324 % \iffalse meta-comment
325 %: Changes
326 % \fi
327 %
328 %
329 %
330 %
331 % \GetFileInfo{\jobname.sty}
332 %
333 % \iffalse meta-comment
334 %: DoNotIndex
335 % \fi
336 %
337 %\DoNotIndex {\begin{tikzpicture},\end{tikzpicture}}
338 %\DoNotIndex {\verb, \DeclareRobustCommandx}
339 %\DoNotIndex {=\verb}
340 %\DoNotIndex {\verb||}
341 %\DoNotIndex {\draw,\fill,\DeclareRobustCommand, \colorlet,\shade}
342 %\DoNotIndex {\xspace,\begin,\end}
343 %
344 %
345 %
346 %
347 % \begin{documentation}
348 %
349 % \title{The \Package{\jobname} package\thanks{This document corresponds to \textsf{\jobname}~\fileversion, dated~\filedate.}}
350 %
351 %\author{Ben Vitecek \\
352 % \href{mailto:[email protected]}{[email protected]} \\
353 % \href{https://github.com/Vidabe/tikzsymbols}{GitHub}
354 % }
355 %
356 %^^A \date{August 19, 2017}
357 %
358 % \maketitle{}
359 %
360 %
361 %
362 % \begin{abstract} \centering
363 % Some symbols created using \Package{tikz}.
364 %
365 % For differences between the releases
366 % see \cref{sec:important-changes}.
367 %
368 % English is (still) not my native language so there (still) might be some
369 % errors\footnote{They are -- of course -- on purpose (expect for
370 % \enquote{avaiable} (sic!)).} \Winkey.
371 % \end{abstract}
372 %
373 % \tableofcontents
374 %
375 %
376 % \section{Introduction}
377 % \label{sec:intro}
378 %
379 % \begin{comment}
380 % As far as I can remember this package is a result of me writing a cooking book.
381 % I wasn't able to find the symbols I wanted on CTAN and so I used \Package{tikz}
382 % and my (sadly) very humble skills to develop the predecessor
383 % called \Package{somesymbols}. Developing and making symbols
384 % was a lot of fun and suddenly I had (badly coded) Emoticons, cooking-symbols
385 % and other symbols. Somehow I got the idea of uploading them to CTAN
386 % and wrote
387 %
388 % Well,
389 % \end{comment}
390 %
391 %
392 % As far as I can remember this package is the result of me writing a
393 % cooking book\footnote{Well, it's one result, the other one is a cooking book.}.
394 % Back then I wasn't able to find the cooking symbols I wanted and
395 % using time, \Package{tikz}, lot's of magic
396 % (also known as \enquote{programming}, but only if the respective person
397 % knows what's going on) and a documentation in bad grammar\footnote{Not that it' now any better.} I somehow ended up with this package.
398 %
399 % During time \LaTeX3 became known to me and I started experimenting
400 % and programming in this (I would say due to its simplicity compared to \LaTeXe\
401 % far superior) language. Well, long story short: I was impressed.
402 % And so the idea of writing my package in \LaTeX3 was born.
403 %
404 % I finally took my time and started rewriting my code using \LaTeX3.
405 % This process can be summarized as: \enquote{What \emph{does} this command?},
406 % \enquote{Why did I define \emph{this} command?} and
407 % more generally \enquote{\emph{What} have I done?!}
408 % Well, let's hope my code (and grammar) is better this time\footnote{Looking at own risk.
409 % You have been warned.}.
410 %
411 % Well \dots\ that's it, have fun!
412 %
413 %
414 %
415 % \section{Important changes}
416 % \label{sec:important-changes}
417 %
418 % The package should behave the same way as the \enquote{old} \LaTeXe\ release.
419 %
420 % \begin{description}
421 % \item[2018] Option \opt{draft} and \opt{final} are now local.
422 % \item[2017] Option \Option{usebox} can be used during the document.
423 % \item[old] The horribly named command
424 % \Makro{tikzsymbolsaftersymbolinput} is not defined anymore by this
425 % package.
426 % Please use the new option \Option{after-symbol},
427 % in combination with the new command \Makro{tikzsymbolsset},
428 % see \cref{sec:options} for more information.
429 % \item[very old]
430 % The option \Option{draft=absolute} is now
431 % obsolete and replaced by the much simpler option \Option{draft=true}.
432 % \end{description}
433 %
434 %
435 %^^A And a new Emoticon: \Makro{Changey} (and \Makro{dChangey}).
436 %
437 %
438 % \section{Options}
439 % \label{sec:options}
440 %
441 % ^^A All options but \Option{after-symbols} can be set as load-time
442 % ^^A options and can be given inside the optional argument of
443 % ^^A \Makro{usepackage}:
444 %
445 %
446 % Options can either be set as package options or using
447 % \Makro{tikzsymbolsset}. Some options can only be set as package
448 % options, those are described in \cref{sec:glob-opt}.
449 %
450 % It is recommended to use the option \Option{draft=true} while
451 % working on the document.
452 %
453 % \begin{function}{\tikzsymbolsset}
454 % \begin{syntax}
455 % \Makro{tikzsymbolsset} \marg{keys = values}
456 % \end{syntax}
457 %
458 % Most keys, except
459 % for the load-time options (\cref{sec:glob-opt}), can be
460 % set using this command.
461 %
462 %^^A This command can only be used in the preamble and most keys, except
463 %^^A for the load-time options (\cref{sec:glob-opt}), can be
464 %^^A set using this command.
465 % \end{function}
466 %
467 %
468 %
469 % \subsection{Load-time Options}
470 % \label{sec:glob-opt}
471 %
472 % The following options \emph{cannot} be set using \Makro{tikzsymbolsset}.
473 %
474 % \subsubsection{marvosym (true/false)}
475 % \label{sec:marvosym}
476 %
477 % \begin{syntax}
478 % marvosym = true / false
479 % \end{syntax}
480 %
481 % Please load \tikzsymbols\
482 % \emph{after} \Package{marvosym}.
483 %
484 % \Package{marvosym} also defines \Makro{Smiley} and
485 % \Makro{Coffeecup}. If you prefer those symbols (\mvchr{169}, \mvchr{75}) over the
486 % \tikzsymbols\ ones (\Smiley, \Coffeecup) you can use this option. If set to true
487 % \Package{tikzsymbols} cancels the definition of its
488 % \Makro{Smiley} and \Makro{Coffeecup}:
489 %
490 % \begin{center}
491 % \begin{tabular}{ c c }
492 % \toprule
493 % Without option \enquote{marvosym}: \Smiley \Coffeecup & With
494 % option \enquote{marvosym}: \mvchr{169} \mvchr{75}\\ \midrule
495 % \verb|\usepackage{marvosym}| & \verb|\usepackage{marvosym}|\\
496 % \verb|\usepackage{tikzsymbols}| &
497 % \verb|\usepackage[marvosym]{tikzsymbols}| \\
498 % \bottomrule
499 % \end{tabular}
500 % \end{center}
501 %
502 %
503 % This option raises an error if set \Option{true} without loading package \Package{marvosym}.
504 %
505 % Can only be set as load-time option.
506 %
507 % You may also use the option \Option{prefix} (\cref{sec:prefix}).
508 %
509 %
510 % \subsubsection{prefix (\meta{string})}
511 % \label{sec:prefix}
512 %
513 % This option takes a string as value: \Option{prefix=\meta{string}} and
514 % adds this prefix to every command defined by this package. So
515 % setting \Option{prefix=\meta{prefix}} adds \meta{prefix} to all commands of
516 % this package: \Makro{\meta{prefix}command}.
517 %
518 %\meta{prefix} should neither contain
519 % any special characters (e.g., \"a, \"u, \ss, etc.) nor spaces.
520 %
521 % By default it is empty, so no prefix is given, if this option is given
522 % without an argument \meta{prefix} is set to \Option{tikzsymbols}.
523 %
524 % Can only be set as a load-time option.
525 %
526 % For example:
527 %
528 % \begin{center}
529 % \Makro{usepackage}[prefix=tikzsym]\{tikzsymbols\}
530 % \end{center}
531 %
532 % defines \Makro{Smiley} as \Makro{tikzsymSmiley}, \Makro{Kochtopf} as
533 % \Makro{tikzsymKochtopf}, \Makro{pot} as \Makro{tikzsympot}, etc.
534 %
535 % If you use this option or think about using this option the
536 % following command may be handy:
537 %
538 % \begin{function}{\tikzsymbolsuse}
539 % \begin{syntax}
540 % \Makro{tikzsymbolsuse}\marg{Symbolname}
541 % \end{syntax}
542 % This command takes the name of the symbol \emph{without}
543 % backslash and prints the symbol (or raises an error if the symbol
544 % is not defined). Using this command you don't have to worry about
545 % a \meta{prefix}, just write the command name and this command adds
546 % automatically the given prefix to the command name.
547 %
548 %
549 % \end{function}
550 %
551 %
552 % \begin{myexample}
553 %
554 % \CreateExample{tikzsymbolsuse}{{Smiley}[2]}
555 %
556 % \CreateExample{tikzsymbolsuse}{{BasicTree}[1.2]{black}{red!50!black}{red}{leaf}}
557 %
558 % \CreateExample{tikzsymbolsuse}{{Ofen}}
559 %
560 % \CreateExample{tikzsymbolsuse}{{Fire}[-1.3]}
561 %
562 %
563 % etc.
564 % \end{myexample}
565 %
566 % \subsection{Normal Options}
567 % \label{sec:pream-opt}
568 %
569 % Most of these options can be set either as a package-option or with
570 % \Makro{tikzsymbolsset}.
571 %
572 % \subsubsection{draft (true/false)}
573 % \label{sec:draft}
574 %
575 % \begin{function}{draft}
576 % \begin{syntax}
577 % draft = \meta{true/false}
578 % \end{syntax}
579 %
580 % While working on the document it is recommended to set this option
581 % to \Option{true} because creating many symbols may takes some time
582 % to compile and by setting this option to \Option{true} the symbols
583 % are replaced by plain vanilla rectangles (with approximately the same height and width as
584 % the symbols) which are faster to
585 % create.
586 %
587 % You can also set this option during the document.
588 %
589 % The old option \Option{draft=absolute} is
590 % obsolete and should therefore not be used.
591 %
592 % \end{function}
593 %
594 % \subsubsection{final (true/false)}
595 % \label{sec:final}
596 %
597 % \begin{function}{final}
598 % \begin{syntax}
599 % final= \meta{true/false}
600 % \end{syntax}
601 %
602 % This key has the opposite behavior of the option \Option{draft}.
603 %
604 % It is a boolean key and therefore accepts only \Option{true} or
605 % \Option{false} and is set to \Option{true} by default. Setting it to
606 % \Option{true} prints all symbols normally. Setting it to
607 % \Option{false} prints plain vanilla draft-boxes instead which speeds
608 % up the compile-process.
609 %
610 % \end{function}
611 %
612 %
613 %
614 %
615 % \subsubsection{tree (true/false/on/off)}
616 % \label{sec:tree}
617 %
618 % \begin{function}{tree}
619 % \begin{syntax}
620 % tree= \meta{true/on/false/off}
621 % \end{syntax}
622 %
623 % This key accepts \Option{true}, \Option{false} and furthermore
624 % \Option{on} and \Option{off} (for historical reasons). The latter do exactly the same as the
625 % first ones.
626 %
627 % This option has only an effect on the command \Makro{BasicTree}
628 % and its derivates (\Makro{Springtree}, \Makro{Summertree},
629 % \Makro{Autumntree} and \Makro{Wintertree}) and substitutes them with
630 % \Package{tikz} drawn boxes.
631 %
632 % So while \Option{draft=true} replaces the output of \emph{all} commands with simple
633 % black boxes, \Option{tree=true/on} only replaces the output of
634 % \enquote{tree}-commands with boxes.
635 %
636 % It is recommended to use \Option{draft=true}, but if you want you
637 % can use this option.
638 %
639 % \end{function}
640 %
641 %
642 %
643 %
644 % \subsubsection{after-symbol (\meta{string or command})}
645 % \label{sec:after-symbol}
646 %
647 % \begin{function}{after-symbol}
648 % Is more stable if set using \Makro{tikzsymbolsset}.
649 % \begin{syntax}
650 % after-symbol = \marg{string or command}
651 % \end{syntax}
652 % The value of this key is inserted after every command of this
653 % package. By default it is set to \Makro{xspace}.
654 %^^A This command is more robust
655 %^^A if used with \Makro{tikzsymbolsset}
656 % \end{function}
657 %
658 %
659 % \subsubsection{global-scale (\meta{number}) \\
660 % symbol-scale (\meta{key-value list})}
661 % \label{sec:global-scale}
662 %
663 % \begin{function}{global-scale, symbol-scale}
664 % \begin{syntax}
665 % global-scale = \marg{number}
666 % symbol-scale = \marg{symbol-1=number-1, symbol-2=number-2,\dots}
667 % \end{syntax}
668 % \opt{global-scale} can be used to scale \emph{all} commands by given \meta{number}.
669 %
670 % If only some specific symbols should be scaled, you may use the second option
671 % and specify which symbol or symbols (name of the symbol without backslash) should be scaled.
672 % Using the german name (if available) has the same effect as using the english one.
673 %
674 % \begin{mynote}
675 % You can scale the symbols in this package in three different ways: The first
676 % is to scale \emph{all} symbols using \opt{global-scale}, the second is scaling
677 % specific symbols using \opt{symbol-scale} and the third is by using the
678 % optional argument provided by the symbols (which I call \opt{local-scale}; e.g.
679 % \verb|\Smiley[2]|).
680 %
681 % The important thing is that those scaling methods \emph{do not cancel} each
682 % other, but behave multiplicative.
683 %
684 % If a local scale is given (e.g.\ \verb|\Smiley[2]|) with \opt{global-scale=3}
685 % the resulting scaling will be $3\cdot 2=6$. Is furthermore this specific symbol
686 % is also scaled (e.g. by $1.1$), the resulting scaling
687 % (for this symbol) will be $3\cdot 1.1 \cdot 2=6.6$.
688 % \end{mynote}
689 %
690 % \end{function}
691 %
692 % \begin{myexample}
693 % \verb|\tikzsymbolsset{symbol-scale={ Smiley= 1.5 }}|
694 % \tikzsymbolsset{symbol-scale={ Smiley= 1.5 }}
695 % \Smiley \\
696 % \verb|\tikzsymbolsset{symbol-scale={ Smiley= 5 }}|
697 % \tikzsymbolsset{symbol-scale={ Smiley= 5 }}
698 % \Smiley \\
699 % \verb|\tikzsymbolsset{symbol-scale={ Smiley= 2, Schneebesen=2.1 }}|
700 % \tikzsymbolsset{symbol-scale={ Smiley= 2, Schneebesen=2.1 }}
701 % \Smiley \Schneebesen \\
702 % \verb|\tikzsymbolsset{global-scale=3,symbol-scale={ Smiley= 2, Schneebesen=2.1 }}|
703 % \tikzsymbolsset{global-scale=3,symbol-scale={ Smiley= 2, Schneebesen=2.1 }}
704 % \Smiley \Schneebesen
705 % \end{myexample}
706 %
707 % \begin{mynote}
708 % Using \enquote{eggbeater} instead of \enquote{Schneebesen}
709 % does the same thing.
710 % \end{mynote}
711 %
712 %
713 %
714 % \subsubsection{append-style (\meta{tikz' keyval})}
715 % \label{sec:append-style}
716 %
717 % \begin{function}{append-style}
718 % \begin{syntax}
719 % append-style = \marg{tikz' keyval}
720 % \end{syntax}
721 %
722 % With this option you can append \pkg{tikz}' \meta{keyval}
723 % to \pkg{tikzsymbols} internal style.
724 %
725 % \begin{mynote}
726 % The style is called \verb|__tikzsymbols| and while the name
727 % will probably not change, you are discouraged to use it directly
728 % unless it is \emph{really} necessary (e.g.\ if I did something wrong).
729 % \end{mynote}
730 % \end{function}
731 %
732 %
733 % \subsubsection{usebox (true/false)}
734 % \label{sec:usebox}
735 %
736 % \begin{function}{usebox}
737 % \begin{syntax}
738 % usebox = \marg{true/false}
739 % \end{syntax}
740 % In \Package{tikzsymbols} all symbols are stored inside boxes
741 % (\Makro{sbox}) and while I still have no idea what exactly happens,
742 % it shortens the compilation time of the document. By
743 % default this option is \Option{true}.
744 %
745 % The drawback is that \LaTeX\ has only a limited number of box
746 % registers. If you come across an error message regarding boxes try setting \Option{usebox=false}.
747 % \end{function}
748 %
749 %
750 %
751 % \subsubsection{baseline (true/false)}
752 % \label{sec:baseline}
753 %
754 % \begin{function}{baseline}
755 % \begin{syntax}
756 % baseline = \marg{true/false}
757 % \end{syntax}
758 % This option mainly exists to let the commands of this package work inside
759 % \pkg{todonotes}' \cs{todo} command. If set to \Option{true} it adds to each
760 % symbol of this package
761 % the tikz option \Option{baseline=default}. If you do not want this, set this option
762 % to \Option{false}. It is set to \Option{true} by default.
763 % \end{function}
764 %
765 % \subsubsection{remember-picture (true/false)}
766 % \label{sec:rem-picture}
767 %
768 % \begin{function}{remember-picture}
769 % \begin{syntax}
770 % remember-picture = \marg{true/false}
771 % \end{syntax}
772 %
773 % Adds to each symbol created by this package the \pkg{tikz}
774 % option \opt{remember picture=\meta{true/false}}.
775 % It is not added by default.
776 %
777 % \end{function}
778 %
779 %
780 %
781 %
782 %
783 %
784 %
785 % \section {Symbols}
786 %
787 %
788 % In this section the symbols are introduced.
789 % { They \Kochtopf \tiny all \dInnocey \Huge change \Moai \small automatically \Wintertree \large with \oven \normalsize text-size \Strichmaxerl. }
790 %
791 %
792 %
793 %
794 %
795 %
796 % \subsection{Cooking-symbols \texorpdfstring{\Kochtopf}{Kochtopf}}
797 %
798 % \begin{function}
799 % {
800 % \Kochtopf,
801 % \pot,
802 % \Bratpfanne,
803 % \fryingpan,
804 % \Schneebesen,
805 % \eggbeater,
806 % \Sieb,
807 % \sieve,
808 % \Purierstab,
809 % \blender,
810 % \Dreizack,
811 % \trident,
812 % \Backblech,
813 % \bakingplate,
814 % \Ofen,
815 % \oven,
816 % \Pfanne,
817 % \pan,
818 % \Herd,
819 % \cooker,
820 % \Saftpresse,
821 % \squeezer,
822 % \Schussel,
823 % \bowl,
824 % \Schaler,
825 % \peeler,
826 % \Reibe,
827 % \grater,
828 % \Flasche,
829 % \bottle,
830 % \Nudelholz,
831 % \rollingpin ,
832 % \Knoblauchpresse , \garlicpress
833 % }
834 %
835 % The following table shows all available cooking-symbols and their
836 % respective commands.
837 % The first column shows the command-names (german \& english),
838 % the second the optional parameter(s).
839 % The optional parameter(s) are for both the german and the
840 % english commands the same.
841 %
842 % \Meta{scale} can be a number between (not exactly) $-1400$ and
843 % (also not exactly) $1400$, default is $1$.
844 %
845 %
846 % Da Umlaute nicht in Befehlsnamen vorkommen dürfen, werden die Umlaute
847 % \"o, \"a, \"u durch o, a, u ersetzt.
848 %
849 % \begin{longtable}{l l c@{~~}c}
850 % \multicolumn{2}{l}{German \& English Commands} & Optional
851 % parameter(s) & Output \\\toprule\endhead
852 % \\ \bottomrule \endfoot
853 % \MapinTable
854 % \bottomrule
855 % \end{longtable}
856 %
857 %
858 %
859 %
860 % \end{function}
861 %
862 %
863 %
864 %
865 %\subsection{Emoticons \texorpdfstring{\Smiley}{Smiley}}
866 %
867 %\subsubsection{\enquote{Normal} Emoticons \texorpdfstring{\Cat}{Cat}}
868 %
869 %
870 %
871 % \begin{function}
872 % {
873 % \Smiley,
874 % \Sadey,
875 % \Neutrey,
876 % \Changey,
877 % \cChangey,
878 % \Annoey,
879 % \Laughey,
880 % \Winkey,
881 % \oldWinkey,
882 % \Sey,
883 % \Xey,
884 % \Innocey,
885 % \wInnocey,
886 % \Cooley,
887 % \Tongey,
888 % \Nursey,
889 % \Vomey,
890 % \Walley,
891 % \rWalley,
892 % \Cat,
893 % \SchrodingersCat,
894 % \Ninja,
895 % \Sleepey,
896 % \NiceReapey
897 % }
898 %
899 % First column shows the commands, the second the (optional)
900 % parameter(s), the third the default-output (the only command with
901 % a mandatory argument is \Makro{Changey}).
902 %
903 % \Meta{scale} can be a number between (not exactly) $-2000$ and (not
904 % exactly) $2000$, ^^A{Do you even need so large symbols?},
905 % default is $1$.
906 %
907 % \Meta{color} can be every defined color. Note: The color names
908 % shouldn't contain special characters like \ss, \"a, \"o, \dots
909 %
910 % \Makro{Changey}'s \Meta{mood} has to be between $-2$ and $2$
911 % ($1$ equals \Makro{Smiley}, $-1$ \Makro{Sadey} and $0$ \Makro{Neutrey}).
912 %
913 % \Makro{SchrodingersCat}'s \Meta{case} can either be $1$ (alive), $0$ (unknown)
914 % or $-1$ (dead).
915 %
916 % \begin{longtable}{llc}
917 % Commands & (Optional) parameter(s) & Output \\\toprule\endhead
918 %
919 % \bottomrule\endfoot
920 %
921 %
922 % \Makro{Smiley}& \oarg{scale}\oarg{color} & \Smiley \\
923 % \Makro{Sadey}& \oarg{scale}\oarg{color} & \Sadey \\
924 % \Makro{Neutrey}& \oarg{scale}\oarg{color} & \Neutrey \\
925 % \Makro{Changey}& \oarg{scale}\oarg{color}\marg{mood} & \Changey{2} \\
926 % \Makro{cChangey}& \oarg{scale}\oarg{color1}\oarg{color2}\oarg{color3}\marg{mood} & \cChangey{2} \\
927 % \Makro{Annoey}& \oarg{scale}\oarg{color} & \Annoey \\
928 % \Makro{Laughey}& \oarg{scale}\oarg{color}\oarg{mouth color} & \Laughey \\
929 % \Makro{Winkey}& \oarg{scale}\oarg{color} & \Winkey \\
930 % \Makro{oldWinkey}& \oarg{scale}\oarg{color} & \oldWinkey \\
931 % \Makro{Sey}& \oarg{scale}\oarg{color} & \Sey \\
932 % \Makro{Xey}& \oarg{scale}\oarg{color} & \Xey \\
933 % \Makro{Innocey}& \oarg{scale}\oarg{color}\oarg{halo color} & \Innocey \\
934 % \Makro{wInnocey}& \oarg{scale} & \wInnocey \\
935 % \Makro{Cooley}& \oarg{scale}\oarg{color} & \Cooley \\
936 % \Makro{Tongey}& \oarg{scale}\oarg{color}\oarg{tongue color} & \Tongey \\
937 % \Makro{Nursey}& \oarg{scale}\oarg{color}\oarg{cap color}\oarg{cross color} &\Nursey \\
938 % \Makro{Vomey}& \oarg{scale}\oarg{color}\oarg{vomit color} & \Vomey \\
939 % \Makro{Walley}& \oarg{scale}\oarg{color}\oarg{wall color} & \Walley \\
940 % \Makro{rWalley}\marginnote{\enquote{r} for \enquote{random generated cracks}.}& \oarg{scale}\oarg{color}\oarg{wall color} & \rWalley \\
941 % \Makro{Cat}& \oarg{scale}& \Cat \\
942 % \Makro{SchrodingersCat}& \oarg{scale}\marg{case}& \SchrodingersCat{0} \\
943 % \Makro{Ninja}& \oarg{scale}\oarg{color}\oarg{headband color}\oarg{eye color}& \Ninja \\
944 % \Makro{Sleepey}& \oarg{scale}\oarg{color}\oarg{cap color}\oarg{star color}& \Sleepey \\
945 % \Makro{Maskey}& \oarg{scale}\oarg{color}\oarg{mask color}& \Maskey \\
946 % \Makro{NiceReapey} & \oarg{scale} & \NiceReapey \\
947 % \bottomrule
948 % \end{longtable}
949 %
950 %
951 %
952 % \end{function}
953 %
954 % Examples: \CreateExample{Sadey}{[][red]}
955 %
956 % \CreateExample{Cooley} {[-3][cyan]}
957 %
958 % \CreateExample{Vomey}{[1.5][green!80!black][olive]}
959 %
960 % \CreateExample{Nursey}{[][yellow][blue][red]}.
961 %
962 % \CreateExample{Ninja}{[1.3][][violet][red]}.
963 %
964 % \verb|\colorbox{yellow}{\Winkey \Annoey[-1]\Neutrey}|\colorbox{yellow}{\Winkey \Annoey [-1]\Neutrey}
965 %
966 % \verb|\textcolor{blue}{\Sey}| \textcolor{blue}{\Sey}
967 %
968 % \CreateExample{Sleepey} {[1][white][blue][yellow!95!black]}
969 %
970 % \CreateExample{SchrodingersCat} {{1}} \par
971 % \CreateExample{SchrodingersCat} {{0}}\par
972 % \CreateExample{SchrodingersCat} {{-1}}
973 %
974 % \CreateExample{Changey} {{-2}}
975 % \CreateExample{Changey} {{-1.367}}
976 % \CreateExample{Changey} {{-1}}
977 % \CreateExample{Changey} {{0}}
978 % \CreateExample{Changey} {{1}}
979 % \CreateExample{Changey} {{1.41}}
980 % \CreateExample{Changey} {{2}}
981 %
982 % \CreateExample{cChangey} {{2}}
983 % \CreateExample{cChangey} {{1}}
984 % \CreateExample{cChangey} {{0.5}}
985 % \CreateExample{cChangey} {{0.1}}
986 % \CreateExample{cChangey} {{0}}
987 % \CreateExample{cChangey} {{-0.5}}
988 % \CreateExample{cChangey} {{-1}}
989 % \CreateExample{cChangey} {{-2}}
990 %
991 % \CreateExample{cChangey} {[][][blue]{-1}}
992 % \CreateExample{cChangey} {[][][blue]{0.5}}
993 %
994 % If you intent to change the color of \cs{cChangey} you may define a new command
995 % so that you do not have to write those brackets each time.
996 %
997 %
998 % \subsubsection{\enquote{3D} Emoticons \texorpdfstring{\dSmiley\dSadey[-1]}{dSmiley dSadey}}
999 %
1000 %
1001 % \begin{function}
1002 % {
1003 % \dSmiley,
1004 % \dSadey,
1005 % \dNeutrey,
1006 % \dChangey,
1007 % \dcChangey,
1008 % \dAnnoey,
1009 % \dLaughey,
1010 % \dWinkey,
1011 % \dSey,
1012 % \dXey,
1013 % \dInnocey,
1014 % \dCooley,
1015 % \dNinja,
1016 % \drWalley,
1017 % \dWalley,
1018 % \dVomey,
1019 % \dNursey,
1020 % \dTongey,
1021 % \dSleepey,
1022 % \olddWinkey
1023 % }
1024 %
1025 %
1026 %
1027 % First column shows the commands (note: the \enquote{3D} Emoticons
1028 % begin with \Makro{d\dots}), the second shows the (optional)
1029 % parameter(s), the third shows the default-output (the only command
1030 % with a mandatory argument is \Makro{dChangey}).
1031 %
1032 % \Meta{scale} can be a number between a small number (under
1033 % $-500$ for sure) and a large number (over 500 for sure),
1034 % default is $1$.
1035 %
1036 % \Meta{color} can be every defined color (see examples below). Note:
1037 % The color names shouldn't contain special characters like \ss, \"a,
1038 % \"o, \dots
1039 %
1040 % \Makro{Changey}'s \meta{mood} has to be between $-2$ and $2$
1041 % ($1$ equals \Makro{dSmiley}, $-1$ \Makro{dSadey} and $0$ \Makro{dNeutrey}).
1042 %
1043 % \begin{longtable}{llc}
1044 % Commands & Optional parameter(s) & Output \\\toprule\endhead
1045 %
1046 % \bottomrule\endfoot
1047 %
1048 % \Makro{dSmiley}& \oarg{scale}\oarg{color} & \dSmiley \\
1049 % \Makro{dSadey}& \oarg{scale}\oarg{color} & \dSadey \\
1050 % \Makro{dNeutrey}& \oarg{scale}\oarg{color} & \dNeutrey \\
1051 % \Makro{dChangey}& \oarg{scale}\oarg{color}\marg{mood} & \dChangey{2} \\
1052 % \Makro{dcChangey}& \oarg{scale}\oarg{color1}\oarg{color2}\oarg{color3}\marg{mood} & \dcChangey{2} \\
1053 % \Makro{dLaughey}& \oarg{scale}\oarg{color}\oarg{mouth color} & \dLaughey \\
1054 % \Makro{dAnnoey}& \oarg{scale}\oarg{color} & \dAnnoey \\
1055 % \Makro{dWinkey}& \oarg{scale}\oarg{color} & \dWinkey \\
1056 % \Makro{olddWinkey}& \oarg{scale}\oarg{color} & \olddWinkey \\
1057 % \Makro{dSey}& \oarg{scale}\oarg{color} & \dSey \\
1058 % \Makro{dXey}& \oarg{scale}\oarg{color} & \dXey \\
1059 % \Makro{dInnocey}& \oarg{scale}\oarg{color}\oarg{halo color} & \dInnocey \\
1060 % \Makro{dCooley}& \oarg{scale}\oarg{color} & \dCooley \\
1061 % \Makro{dTongey}& \oarg{scale}\oarg{color}\oarg{tongue color} & \dTongey \\
1062 % \Makro{dNursey}& \oarg{scale}\oarg{color}\oarg{cap color}\oarg{cross color} & \dNursey \\
1063 % \Makro{dVomey}& \oarg{scale}\oarg{color}\oarg{vomit color} & \dVomey \\
1064 % \Makro{dWalley}& \oarg{scale}\oarg{color}\oarg{wall color} & \dWalley \\
1065 % \Makro{drWalley}\marginnote{\enquote{r} for \enquote{random generated cracks}.}& \oarg{scale}\oarg{color}\oarg{wall color}& \drWalley \\
1066 % \Makro{dNinja}& \oarg{scale}\oarg{color}\oarg{headband color}\oarg{eye color} & \dNinja \\
1067 % \Makro{dSleepey}& \oarg{scale}\oarg{color}\oarg{cap color}\oarg{star color}& \dSleepey \\
1068 % \bottomrule
1069 % \end{longtable}
1070 %
1071 % \end{function}
1072 %
1073 %
1074 % Examples:
1075 % \CreateExample{dSadey}{[][red]}
1076 %
1077 % \CreateExample{dCooley}{[-3][cyan]}
1078 %
1079 % \CreateExample{dVomey}{[1.5][green!70!black][olive]}
1080 %
1081 % \CreateExample{dNursey}{[][yellow][blue][red]}.
1082 %
1083 % \CreateExample{dNinja}{[1.3][][violet][red]}.
1084 %
1085 % \CreateExample{dChangey} {{-2}}
1086 % \CreateExample{dChangey} {{-1.367}}
1087 % \CreateExample{dChangey} {{-1}}
1088 % \CreateExample{dChangey} {{0}}
1089 % \CreateExample{dChangey} {{1}}
1090 % \CreateExample{dChangey} {{1.41}}
1091 % \CreateExample{dChangey} {{2}}
1092 %
1093 %
1094 % \CreateExample{dcChangey} {{2}}
1095 % \CreateExample{dcChangey} {{1}}
1096 % \CreateExample{dcChangey} {{0.5}}
1097 % \CreateExample{dcChangey} {{0.1}}
1098 % \CreateExample{dcChangey} {{0}}
1099 % \CreateExample{dcChangey} {{-0.5}}
1100 % \CreateExample{dcChangey} {{-1}}
1101 % \CreateExample{dcChangey} {{-2}}
1102 %
1103 % \CreateExample{dcChangey} {[][][blue]{-1}}
1104 % \CreateExample{dcChangey} {[][][blue]{0.5}}
1105 %
1106 % If you intent to change the color of \cs{dcChangey} you may define a new command
1107 % so that you do not have to write those brackets each time.
1108 %
1109 % \subsection{Other Symbols \texorpdfstring{\Moai}{Moai}}
1110 %
1111 % \begin{function}
1112 % {
1113 % \Strichmaxerl,
1114 % \Heart,
1115 % \dHeart,
1116 % \Candle,
1117 % \Fire,
1118 % \Coffeecup,
1119 % \Chair,
1120 % \Bed,
1121 % \Tribar,
1122 % \Moai,
1123 % \Snowman
1124 % }
1125 %
1126 % \Makro{Strichmaxerl}'s optional parameters 2--5 (\Meta{left arm} to
1127 % \Meta{right leg}) can be a number
1128 % between $-360$ and $360$ (of course the number can be even
1129 % greater or even smaller.). The parameters are
1130 % the angles between the body and the separate parts of
1131 % \Makro{Strichmaxerl} (see examples).
1132 %
1133 % \Meta{scale} can be a very great and a very small negative number (but I
1134 % don't think, that you need so large symbols).
1135 %
1136 % \Meta{color} can be every defined color. Note: The color names
1137 % shouldn't contain special characters like \ss, \"a, \"o, \dots.
1138 %
1139 % \begin{longtable}{llc}
1140 % Commands & Optional parameter(s) & Output \\\toprule\endhead
1141 %
1142 % \bottomrule\endfoot
1143 %
1144 % \Makro{Strichmaxerl} & \oarg{scale}\oarg{left arm}\oarg{right arm}\oarg{left leg}\oarg{right leg} &\Strichmaxerl\\
1145 % \Makro{Heart}& \oarg{scale}\oarg{color}& \Heart \\
1146 % \Makro{dHeart}& \oarg{scale}\oarg{color}& \dHeart \\
1147 % \Makro{Candle} & \oarg{scale} & \Candle\\
1148 % \Makro{Fire} & \oarg{scale} & \Fire\\
1149 % \Makro{Coffeecup} & \oarg{scale} & \Coffeecup\\
1150 % \Makro{Chair} & \oarg{scale} & \Chair\\
1151 % \Makro{Bed} & \oarg{scale} & \Bed\\
1152 % \Makro{Moai} & \oarg{scale} & \Moai\\
1153 % \Makro{Tribar} &\oarg{scale}\oarg{color 1}\oarg{color 2}\oarg{color 3} & \Tribar\\
1154 % \Makro{Snowman} &\oarg{scale} & \Snowman\\
1155 % \bottomrule
1156 % \end{longtable}
1157 %
1158 %
1159 % \end{function}
1160 %
1161 % \CreateExample{Tribar}{[-10][blue][red][green]}
1162 %
1163 % \CreateExample{Tribar}{[2.1][blue][blue!50][blue!20]}
1164 %
1165 % \vspace{1ex}
1166 %
1167 % \CreateExample{Strichmaxerl}{[1][10][30][40][4]} ,
1168 %
1169 % \CreateExample{Strichmaxerl}{[1.4][210][310][10][90]} ,
1170 %
1171 % \CreateExample{Strichmaxerl}{[2][510][110][190][990]} ,
1172 %
1173 % \CreateExample{Strichmaxerl}{[0.9][54][28][95][16]}
1174 %
1175 % \CreateExample{Strichmaxerl}{[][54][28]}
1176 %
1177 % \CreateExample{Strichmaxerl}{[][45][45][45][45]}
1178 %
1179 %
1180 % \begin{function}
1181 % {
1182 % \BasicTree ,
1183 % \Springtree ,
1184 % \Summertree ,
1185 % \Wintertree ,
1186 % \WorstTree ,
1187 % }
1188 %
1189 % \subsection{Trees \texorpdfstring{\BasicTree{blue!60!black}{red}{green}{leaf}}{BasicTree}}\label{Trees}
1190 %
1191 % \Meta{scale} can be a number between (not exactly) $-900$ and (again
1192 % not exactly) $900$, default is
1193 % $1$.
1194 %
1195 % \Meta{color} can be every defined color (see examples below). Note:
1196 % The color names shouldn't contain special characters like \ss, \"a,
1197 % \"o, \dots.
1198 %
1199 % \marg{leaf} uses the colors of \marg{leaf color a}
1200 % and \marg{leaf color b}, you can leave this one empty if you don't
1201 % want leaves (\verb|\Wintertree| is without \emph{leaf}, see examples
1202 % below).
1203 %
1204 % If you are using those trees, \LaTeX{} needs longer to produce the
1205 % output. So you may use the package option \Option{tree=off},
1206 % or (better) \Option{draft=true} (see section
1207 % \cref{sec:draft} and \cref{sec:tree}) to make \LaTeX{} faster.
1208 %
1209 % Furthermore those trees are pretty much stolen from the
1210 % \Package{tikz} manual.
1211 %
1212 % \begin{center}
1213 % \begin{tabular}{@{}llc@{}}
1214 % Commands & Optional/Needed parameter(s) & Output
1215 % \\\toprule
1216 %
1217 %
1218 % \Makro{BasicTree} & \oarg{scale}\marg{trunk color}\marg{leaf color a}\marg{leaf color b}\marg{leaf} & see below \\
1219 %
1220 % \Makro{Springtree} & \oarg{scale} & \Springtree \\
1221 % \Makro{Summertree} & \oarg{scale} & \Summertree \\
1222 % \Makro{Autumntree} & \oarg{scale} & \Autumntree \\
1223 % \Makro{Wintertree} & \oarg{scale} & \Wintertree \\
1224 % \Makro{WorstTree} & \oarg{scale} & \WorstTree \\
1225 % \bottomrule
1226 % \end{tabular}
1227 % \end{center}
1228 %
1229 % \end{function}
1230 %
1231 % \paragraph{\Makro{BasicTree} examples} Some \enquote{normal} trees:
1232 %
1233 % \verb|\colorbox{green}{\BasicTree{red}{orange}{yellow}{leaf}}|\colorbox{green}{\BasicTree{red}{orange}{yellow}{leaf}}
1234 %
1235 % \CreateExample{BasicTree}{[5]{orange!95!black}{orange!80!black}{orange!70!black}{leaf}}
1236 %
1237 % \CreateExample{BasicTree}{[2]{blue!65!white}{cyan!50!white}{cyan!50!white}{}}
1238 %
1239 % \CreateExample{BasicTree}{[-1.54]{green!20!black}{green!50!black}{green!70!black}{leaf}}
1240 %
1241 % \verb|\colorbox{black}{\BasicTree[3.75]{gray!80}{gray!50}{gray!40}{leaf}}|
1242 % \colorbox{black}{\BasicTree[3.75]{gray!80}{gray!50}{gray!40}{leaf}}
1243 %
1244 % \paragraph{draftbox \Makro{BasicTree} examples} Some \enquote{draftbox} trees
1245 % (using \Option{tree=false}):
1246 %
1247 % \dots and using the same trees with \Option{tree=off/false} or \Option{draft}(\Option{=true}):
1248 %
1249 % \verb|\colorbox{green}{\BasicTree{red}{orange}{yellow}{leaf}}|
1250 % \colorbox{green}{\definedBasicTree{red}{orange}{yellow}{leaf}}
1251 %
1252 % \verb|\BasicTree[5]{orange!95!black}{orange!80!black}{orange!70!black}{leaf}|
1253 % \definedBasicTree[5]{orange!95!black}{orange!80!black}{orange!70!black}{leaf}
1254 %
1255 % \verb|\BasicTree[2]{blue!65!white}{cyan!50!white}{cyan!50!white}{}|
1256 % \definedBasicTree[2]{blue!65!white}{cyan!50!white}{cyan!50!white}{}
1257 %
1258 % \verb|\BasicTree[-1.54]{green!20!black}{green!50!black}{green!70!black}{leaf}|
1259 % \definedBasicTree[-1.54]{green!20!black}{green!50!black}{green!70!black}{leaf}
1260 %
1261 % \verb|\colorbox{black}{\BasicTree[3.75]{gray!80}{gray!50}{gray!40}{leaf}}| \colorbox{black}{\definedBasicTree[3.75]{gray!80}{gray!50}{gray!40}{leaf}}
1262 %
1263 % \bigskip
1264 %
1265 % I think it's better if you define your own trees using \verb|\newcommand| and \verb|\BasicTree|:
1266 %\begin{verbatim}
1267 % \newcommand{\Myicetree}[1][1]{%
1268 % \BasicTree[#1]{blue!65!white}{cyan!50!white}{cyan!50!white}{}}
1269 % \end{verbatim}
1270 %
1271 %
1272 % \begin{comment}
1273 % \section{Known errors \& Problems}
1274 %
1275 % \subsection*{marvosym}
1276 % Make sure you load \Package{marvosym} \emph{before}
1277 % \Package{tikzsymbols} because both packages define \verb|\Smiley|,
1278 % \Package{marvosym} via \verb|\newcommand| \tikzsymbols\ via
1279 % \Makro{DeclareDocumentCommand}.
1280 %
1281 % If you load \Package{marvosym} \emph{after} \tikzsymbols,
1282 % \LaTeX{} generates an error-message because \verb|\Smiley| has
1283 % already been defined.
1284 %
1285 % If you load \Package{marvosym} \emph{before} \tikzsymbols,
1286 % \Package{tikzsymbols} will overwrite \Package{marvosym}'s Smiley (and Coffeecup) and no
1287 % error-message is generated (if you like the \verb|\Smiley| from
1288 % marvosym more, use the \tikzsymbols{} option \verb|marvosym|
1289 % or \Option{prefix}).
1290 %
1291 % \subsection*{babel}
1292 %
1293 % If you encounter an error message like
1294 % \begin{verbatim}
1295 % Argument of \pgffor@next has an extra }
1296 % \end{verbatim}
1297 % while using \pkg{babel} with e.g. language \enquote{francais}
1298 % and for example \cs{Cooley} you may add
1299 % \begin{verbatim}
1300 % \usetikzlibrary{babel}
1301 % \end{verbatim}
1302 % to your preamble. This should (hopefully) fix the problem.
1303 %
1304 % \end{comment}
1305 %
1306 %
1307 %
1308 % \section{Create your own tikzsymbol}
1309 %
1310 % Suppose you have your own symbol, created in a tikzpicture (or something else).
1311 % This package offers some commands
1312 % with whom you can create your own tikzsymbol
1313 % (including the benefits of using \opt{symbol-scale}, \opt{global-scale}, etc.).
1314 %
1315 % \subsection{tikzsymbols style}
1316 %
1317 % \begin{function}{/tikzsymbolsstyle}
1318 % \begin{syntax}
1319 % /tikzsymbolsstyle
1320 % \end{syntax}
1321 % \pkg{tikzsymbols} defines it own \pkg{tikz}-style. A public version of it is available
1322 % \emph{via} \emph{/tikzsymbolsstyle}.
1323 %
1324 % (Note: To change the internal style version use the option \Option{append-style}.
1325 % Everything added to the internal version is also added to the public version.)
1326 % \end{function}
1327 %
1328 %
1329 % \subsection{Symbol Definition}
1330 % \begin{function}{\tikzsymbolsdefinesymbol}
1331 % \begin{syntax}
1332 % \cs{tikzsymbolsdefinesymbol} \marg{symbol-name} \marg{argument-types} \marg{code}
1333 % \end{syntax}
1334 % This is the main command to define your symbol.
1335 % \meta{symbol-name} is the name
1336 % of your symbol (without backslash) and to-be command.
1337 % \meta{code} is the place to put your |tikzpicture|.
1338 % \meta{argument-types} is somewhat similar to \pkg{xparse}'s
1339 % system with some changes
1340 % and only three argument types available:
1341 % \begin{itemize}
1342 % \item |m| is for mandatory arguments (given in curly braces).
1343 % \item |B{<default>}| specifies an optional argument that inserts |<default>|
1344 % if the optional argument (given in square-brackets)
1345 % is not given \emph{or empty}.
1346 % \item |S| (for |S|cale) is the argument for scaling the symbol;
1347 % the optional argument \oarg{scale} for each symbol is created by it.
1348 % The absolute value of the scaling can be accessed by \cs{tikzsymbolsscaleabs}.
1349 % \end{itemize}
1350 % \end{function}
1351 %
1352 %\paragraph{Example} Assume you have created the following picture:
1353 %
1354 %
1355 % \begin{verbatim}
1356 % \begin{tikzpicture}[/tikzsymbolsstyle]
1357 % \fill[fill=none] (0,1) -- (0.5,1.5) -- (1,1);
1358 % \filldraw[fill=none] (0,0) rectangle (1,1);
1359 % \draw (-0.11,0.9) -- (0.5,1.5) -- (1.11,0.9);
1360 % \draw[fill=none] (0.5,0) rectangle (0.8,0.6);
1361 % \fill (0.72,0.3) circle [radius=0.02];
1362 % \end{tikzpicture}%
1363 % \end{verbatim}
1364 %
1365 % Which prints:
1366 % \begin{tikzpicture}[/tikzsymbolsstyle]
1367 % \fill[fill=none] (0,1) -- (0.5,1.5) -- (1,1);
1368 % \filldraw[fill=none] (0,0) rectangle (1,1);
1369 % \draw (-0.11,0.9) -- (0.5,1.5) -- (1.11,0.9);
1370 % \draw[fill=none] (0.5,0) rectangle (0.8,0.6);
1371 % \fill (0.72,0.3) circle [radius=0.02];
1372 % \end{tikzpicture}%
1373 %
1374 % Now you want three different parts to be filled with color: The house itself, the roof
1375 % and the door, let's use orange, red and teal:
1376 %
1377 % \begin{verbatim}
1378 % \begin{tikzpicture}[/tikzsymbolsstyle]
1379 % \fill[fill=red] (0,1) -- (0.5,1.5) -- (1,1);
1380 % \filldraw[fill=orange] (0,0) rectangle (1,1);
1381 % \draw (-0.11,0.9) -- (0.5,1.5) -- (1.11,0.9);
1382 % \draw[fill=teal] (0.5,0) rectangle (0.8,0.6);
1383 % \fill (0.72,0.3) circle [radius=0.02];
1384 % \end{tikzpicture}%
1385 % \end{verbatim}
1386 %
1387 % \begin{tikzpicture}[/tikzsymbolsstyle]
1388 % \fill[fill=red] (0,1) -- (0.5,1.5) -- (1,1);
1389 % \filldraw[fill=orange] (0,0) rectangle (1,1);
1390 % \draw (-0.11,0.9) -- (0.5,1.5) -- (1.11,0.9);
1391 % \draw[fill=teal] (0.5,0) rectangle (0.8,0.6);
1392 % \fill (0.72,0.3) circle [radius=0.02];
1393 % \end{tikzpicture}%
1394 % Satisfied with this you put it into \cs{tikzsymbolsdefinesymbol} and make it to
1395 % have three optional arguments (using the |B| type) to change the colors.
1396 % The default colors themselves are put into the argument of |B|:
1397 % \begin{verbatim}
1398 % \tikzsymbolsdefinesymbol {myHouse} { B{orange} B{red} B{teal} }
1399 % {%
1400 % \begin{tikzpicture}[/tikzsymbolsstyle]
1401 % \fill[fill=#2] (0,1) -- (0.5,1.5) -- (1,1);
1402 % \filldraw[fill=#1] (0,0) rectangle (1,1);
1403 % \draw (-0.11,0.9) -- (0.5,1.5) -- (1.11,0.9);
1404 % \draw[fill=#3] (0.5,0) -- (0.5,0.5) -- (0.8,0.5) -- (0.8,0) -- cycle;
1405 % \fill (0.75,0.25) circle [radius=0.02];
1406 % \end{tikzpicture}%
1407 % }
1408 % \end{verbatim}
1409 %\tikzsymbolsdefinesymbol {myHouse} { B{orange} B{red} B{teal} }
1410 % {%
1411 % \begin{tikzpicture}[/tikzsymbolsstyle]
1412 % \fill[fill=#2] (0,1) -- (0.5,1.5) -- (1,1);
1413 % \filldraw[fill=#1] (0,0) rectangle (1,1);
1414 % \draw (-0.11,0.9) -- (0.5,1.5) -- (1.11,0.9);
1415 % \draw[fill=#3] (0.5,0) -- (0.5,0.5) -- (0.8,0.5) -- (0.8,0) -- cycle;
1416 % \fill (0.75,0.25) circle [radius=0.02];
1417 % \end{tikzpicture}%
1418 % }
1419 %
1420 % \CreateExample{myHouse}{}
1421 % \CreateExample{myHouse}{[blue]}
1422 % \CreateExample{myHouse}{[][][green]}
1423 %
1424 % Although it looks good, you also want the ability to scale it.
1425 % Furthermore, you want the symbol to be a bit smaller by default. Scaling with the text size
1426 % and having a thicker line width would also be not bad.
1427 % Looking at the \pkg{tikz} manual we can get the options necessary: |scale|, |line width|,
1428 % |x| and |y|. Let's start with |x| and |y| to make the house around the same size
1429 % as an uppercase letter. Let's start with |x=1ex, y=1ex|
1430 % \begin{verbatim}
1431 % \tikzsymbolsdefinesymbol {myHouse} { B{orange} B{red} B{teal} }
1432 % {%
1433 % \begin{tikzpicture}[/tikzsymbolsstyle, x=1ex,y=1ex]
1434 % \fill[fill=#2] (0,1) -- (0.5,1.5) -- (1,1);
1435 % \filldraw[fill=#1] (0,0) rectangle (1,1);
1436 % \draw (-0.11,0.9) -- (0.5,1.5) -- (1.11,0.9);
1437 % \draw[fill=#3] (0.5,0) -- (0.5,0.5) -- (0.8,0.5) -- (0.8,0) -- cycle;
1438 % \fill (0.75,0.25) circle [radius=0.02];
1439 % \end{tikzpicture}%
1440 % }
1441 % \end{verbatim}
1442 % \tikzsymbolsdefinesymbol {myHouse} { B{orange} B{red} B{teal} }
1443 % {^^A
1444 % \begin{tikzpicture}[/tikzsymbolsstyle, x=1ex,y=1ex]^^A
1445 % \fill[fill=#2] (0,1) -- (0.5,1.5) -- (1,1);
1446 % \filldraw[fill=#1] (0,0) rectangle (1,1);
1447 % \draw (-0.11,0.9) -- (0.5,1.5) -- (1.11,0.9);
1448 % \draw[fill=#3] (0.5,0) -- (0.5,0.5) -- (0.8,0.5) -- (0.8,0) -- cycle;
1449 % \fill (0.75,0.25) circle [radius=0.02];
1450 % \end{tikzpicture}^^A
1451 % }
1452 % A \myHouse. Well a bit small maybe, but around the size of the letter \enquote{A}.
1453 % Increasing |x| and |y| to |1.1ex| should be good. Now add the scaling option |S|
1454 % to the command, which will be the new first argument. As it will be the new |#1|,
1455 % the other arguments should be increased by 1 each.
1456 % \begin{verbatim}
1457 % \tikzsymbolsdefinesymbol {myHouse} { S B{orange} B{red} B{teal} }
1458 % {%
1459 % \begin{tikzpicture}[/tikzsymbolsstyle, x=1.1ex, y=1.1ex, scale=#1]
1460 % \fill[fill=#3] (0,1) -- (0.5,1.5) -- (1,1);
1461 % \filldraw[fill=#2] (0,0) rectangle (1,1);
1462 % \draw (-0.11,0.9) -- (0.5,1.5) -- (1.11,0.9);
1463 % \draw[fill=#4] (0.5,0) -- (0.5,0.5) -- (0.8,0.5) -- (0.8,0) -- cycle;
1464 % \fill (0.75,0.25) circle [radius=0.02];
1465 % \end{tikzpicture}%
1466 % }
1467 % \end{verbatim}
1468 % \tikzsymbolsdefinesymbol {myHouse} { S B{orange} B{red} B{teal} }
1469 % {^^A
1470 % \begin{tikzpicture}[/tikzsymbolsstyle, x=1.1ex, y=1.1ex, scale=#1]
1471 % \fill[fill=#3] (0,1) -- (0.5,1.5) -- (1,1);
1472 % \filldraw[fill=#2] (0,0) rectangle (1,1);
1473 % \draw (-0.11,0.9) -- (0.5,1.5) -- (1.11,0.9);
1474 % \draw[fill=#4] (0.5,0) -- (0.5,0.5) -- (0.8,0.5) -- (0.8,0) -- cycle;
1475 % \fill (0.75,0.25) circle [radius=0.02];
1476 % \end{tikzpicture}^^A
1477 % }
1478 % Now we can scale the symbol: \CreateExample{myHouse}{[2]} \CreateExample{myHouse}{[5][][][green]} \CreateExample{myHouse}{[][][][green]}.
1479 % { \CreateExample{tikzsymbolsset}{{symbol-scale={myHouse=2}}}\CreateExample{myHouse}{}}
1480 %
1481 % Something you may not notice currently,
1482 % but becomes apparent once you increase the symbol
1483 % to a large scale is that the line width does not scale with the symbol. The line width
1484 % can be set \emph{via} |line width|. For the border of the emoticons I generally use
1485 % a line width of |0.12ex|. Multiplying it with the scaling allows the symbol to keep
1486 % the line width even at larger (or smaller) scales. Let's try it:
1487 % \begin{verbatim}
1488 % \tikzsymbolsdefinesymbol {myHouse} { S B{orange} B{red} B{teal} }
1489 % {%
1490 % \begin{tikzpicture}[/tikzsymbolsstyle, x=1.1ex, y=1.1ex,
1491 % scale=#1, line width=0.12ex*#1]
1492 % \fill[fill=#3] (0,1) -- (0.5,1.5) -- (1,1);
1493 % \filldraw[fill=#2] (0,0) rectangle (1,1);
1494 % \draw (-0.11,0.9) -- (0.5,1.5) -- (1.11,0.9);
1495 % \draw[fill=#4] (0.5,0) -- (0.5,0.5) -- (0.8,0.5) -- (0.8,0) -- cycle;
1496 % \fill (0.75,0.25)circle [radius=0.02];
1497 % \end{tikzpicture}%
1498 % }
1499 % \end{verbatim}
1500 % \tikzsymbolsdefinesymbol {myHouse} { S B{orange} B{red} B{teal} }
1501 % {^^A
1502 % \begin{tikzpicture}[/tikzsymbolsstyle, x=1.1ex, y=1.1ex, scale=#1, line width=0.12ex*#1]
1503 % \fill[fill=#3] (0,1) -- (0.5,1.5) -- (1,1);
1504 % \filldraw[fill=#2] (0,0) rectangle (1,1);
1505 % \draw (-0.11,0.9) -- (0.5,1.5) -- (1.11,0.9);
1506 % \draw[fill=#4] (0.5,0) -- (0.5,0.5) -- (0.8,0.5) -- (0.8,0) -- cycle;
1507 % \fill (0.75,0.25) circle [radius=0.02];
1508 % \end{tikzpicture}^^A
1509 % }
1510 % A \myHouse. \CreateExample{myHouse}{[2]} \CreateExample{myHouse}{[5]}\CreateExample{myHouse}{[10]}
1511 %
1512 % Not sure if |0.12ex| looks good for large scales. Let's use |0.07ex| and put the doorknob
1513 % a bit to the left (and make it larger). Furthermore, parts of the house clip through the
1514 % ceiling so let's change
1515 % some coordinates there too.
1516 % \begin{verbatim}
1517 % \tikzsymbolsdefinesymbol {myHouse} { S B{orange} B{red} B{teal} }
1518 % {%
1519 % \begin{tikzpicture}[/tikzsymbolsstyle, x=1.1ex, y=1.1ex,
1520 % scale=#1, line width=0.07ex*#1]
1521 % \fill[fill=#3] (0,1) -- (0.5,1.5) -- (1,1);
1522 % \filldraw[fill=#2] (0,0) rectangle (1,1);
1523 % \draw (-0.12,0.92) -- (0.5,1.5) -- (1.12,0.92);
1524 % \draw[fill=#4] (0.5,0) -- (0.5,0.5) -- (0.8,0.5) -- (0.8,0) -- cycle;
1525 % \fill (0.72,0.25) circle [radius=0.03];
1526 % \end{tikzpicture}%
1527 % }
1528 % \end{verbatim}
1529 % \tikzsymbolsdefinesymbol {myHouse} { S B{orange} B{red} B{teal} }
1530 % {^^A
1531 % \begin{tikzpicture}[/tikzsymbolsstyle, x=1.1ex, y=1.1ex, scale=#1, line width=0.07ex*#1]
1532 % \fill[fill=#3] (0,1) -- (0.5,1.5) -- (1,1);
1533 % \filldraw[fill=#2] (0,0) rectangle (1,1);
1534 % \draw (-0.12,0.92) -- (0.5,1.5) -- (1.12,0.92);
1535 % \draw[fill=#4] (0.5,0) -- (0.5,0.5) -- (0.8,0.5) -- (0.8,0) -- cycle;
1536 % \fill (0.72,0.25) circle [radius=0.03];
1537 % \end{tikzpicture}^^A
1538 % }
1539 % A \myHouse. \CreateExample{myHouse}{[2]} \CreateExample{myHouse}{[5]}\CreateExample{myHouse}{[10]} \CreateExample{myHouse}{[-10]}
1540 %
1541 % Well, looks like for negative scaling the line width does not feel so good.
1542 % For this reason \cs{tikzsymbolsscaleabs} exists, which stores the absolute
1543 % value of the scaling. Replacing |#1| with \cs{tikzsymbolsscaleabs} for the line widths
1544 % yields:
1545 % \begin{verbatim}
1546 % \tikzsymbolsdefinesymbol {myHouse} { S B{orange} B{red} B{teal} }
1547 % {%
1548 % \begin{tikzpicture}[/tikzsymbolsstyle, x=1.1ex, y=1.1ex, scale=#1,
1549 % line width=0.07ex*\tikzsymbolsscaleabs]
1550 % \fill[fill=#3] (0,1) -- (0.5,1.5) -- (1,1);
1551 % \filldraw[fill=#2] (0,0) rectangle (1,1);
1552 % \draw (-0.12,0.92) -- (0.5,1.5) -- (1.12,0.92);
1553 % \draw[fill=#4] (0.5,0) -- (0.5,0.5) -- (0.8,0.5) -- (0.8,0) -- cycle;
1554 % \fill (0.72,0.25) circle [radius=0.03];
1555 % \end{tikzpicture}%
1556 % }
1557 % \end{verbatim}
1558 % \tikzsymbolsdefinesymbol {myHouse} { S B{orange} B{red} B{teal} }
1559 % {^^A
1560 % \begin{tikzpicture}[/tikzsymbolsstyle, x=1.1ex, y=1.1ex, scale=#1, line width=0.07ex*\tikzsymbolsscaleabs]
1561 % \fill[fill=#3] (0,1) -- (0.5,1.5) -- (1,1);
1562 % \filldraw[fill=#2] (0,0) rectangle (1,1);
1563 % \draw (-0.12,0.92) -- (0.5,1.5) -- (1.12,0.92);
1564 % \draw[fill=#4] (0.5,0) -- (0.5,0.5) -- (0.8,0.5) -- (0.8,0) -- cycle;
1565 % \fill (0.72,0.25) circle [radius=0.03];
1566 % \end{tikzpicture}^^A
1567 % }
1568 % A \myHouse. \CreateExample{myHouse}{[2]} \CreateExample{myHouse}{[5]}\CreateExample{myHouse}{[10][][blue]} \CreateExample{myHouse}{[-10][][blue]}
1569 %
1570 % Now it works.
1571 %
1572 % \subsection{Using a box}
1573 %
1574 %^^A Now, in order to not draw the symbol every time from scratch it is used,
1575 % If your symbol is a more complex, using it often may slow down the compilation
1576 % process. In order to mitigate this we can store the symbol in a box and reuse the
1577 % box instead of redrawing the symbol every time. To store the symbol, one can use
1578 % the following command.
1579 %
1580 % \begin{function}{\tikzsymbolsprovideandusesavebox}
1581 % \begin{syntax}
1582 % \cs{tikzsymbolsprovideandusesavebox}\marg{box-name}\marg{box-code}
1583 % \end{syntax}
1584 %
1585 % The name of the box \meta{box-name} (without backslash) should contain the name
1586 % of the symbol and its arguments (separated by a sign).
1587 % Everything inside \meta{box-code} is stored in the box and repated if used again.
1588 % \end{function}
1589 %
1590 % \paragraph{Example}
1591 % \begin{verbatim}
1592 % \tikzsymbolsdefinesymbol {myHouse} { S B{orange} B{red} B{teal} }
1593 % {%
1594 % % Putting every argument in the name is important!
1595 % \tikzsymbolsprovideandusesavebox {myHouse;#1;#2;#3;#4} {%
1596 % \begin{tikzpicture}[/tikzsymbolsstyle, x=1.1ex, y=1.1ex, scale=#1,
1597 % line width=0.07ex*\tikzsymbolsscaleabs]
1598 % \fill[fill=#3] (0,1) -- (0.5,1.5) -- (1,1);
1599 % \filldraw[fill=#2] (0,0) rectangle (1,1);
1600 % \draw (-0.12,0.92) -- (0.5,1.5) -- (1.12,0.92);
1601 % \draw[fill=#4] (0.5,0) -- (0.5,0.5)
1602 % -- (0.8,0.5) -- (0.8,0) -- cycle;
1603 % \fill (0.72,0.25) circle [radius=0.03];
1604 % \end{tikzpicture}%
1605 % }%
1606 % }
1607 % \end{verbatim}
1608 % \tikzsymbolsdefinesymbol {myHouse} { S B{orange} B{red} B{teal} }
1609 % {^^A
1610 % \tikzsymbolsprovideandusesavebox {myHouse;#1;#2;#3;#4} {^^A
1611 % \begin{tikzpicture}[/tikzsymbolsstyle, x=1.1ex, y=1.1ex, scale=#1, line width=0.07ex*\tikzsymbolsscaleabs]
1612 % \fill[fill=#3] (0,1) -- (0.5,1.5) -- (1,1);
1613 % \filldraw[fill=#2] (0,0) rectangle (1,1);
1614 % \draw (-0.12,0.92) -- (0.5,1.5) -- (1.12,0.92);
1615 % \draw[fill=#4] (0.5,0) -- (0.5,0.5)
1616 % -- (0.8,0.5) -- (0.8,0) -- cycle;
1617 % \fill (0.72,0.25) circle [radius=0.03];
1618 % \end{tikzpicture}^^A
1619 % }}
1620 %
1621 % Now the first time the symbol is used it is stored in a box.
1622 %^^A If the same conditions are met as the first time the symbol
1623 %^^A was used, a box is used instead of creating the symbol a-new.
1624 % Using the symbol again in the same conditions resues the content of the box.
1625 % \textbf{Keep in mind:}
1626 % It is important to give \cs{tikzsymbolsprovideandusesavebox} \emph{all} arguments
1627 % your symbol has. If you add or remove one option you need to update the
1628 % \meta{box-name} accordingly.
1629 %
1630 %
1631 % \CreateExample{myHouse}{} \CreateExample{myHouse}{[10]} \CreateExample{myHouse}{[3][][blue]}
1632 %
1633 % This concludes this example.
1634 %
1635 % \subsection{Some other commands and variable(s)}
1636 % Here some other commands which may be useful
1637
1638 % \begin{function}{\tikzsymbolssetscaleabs, \tikzsymbolsscaleabs}
1639 % \begin{syntax}
1640 % \cs{tikzsymbolssetscaleabs}\marg{dimension}
1641 % \cs{tikzsymbolsscaleabs}
1642 % \end{syntax}
1643 %
1644 % \cs{tikzsymbolssetscaleabs} sets the value of |\tikzsymbolsscaleabs| equal to
1645 % the absolute value of \meta{dimension}.
1646 % \end{function}
1647 %
1648 % Other public functions and variables which need to be used inside the
1649 % |\ExplSyntaxOn| and |\ExplSyntaxOff| environment.
1650 % \begin{function}{\tikzsymbols_create_draftbox:nn, \tikzsymbols_create_squared_draftbox:n, \l_tikzsymbols_if_opt_draft_bool}
1651 % \begin{syntax}
1652 % \cs{tikzsymbols_create_draftbox:nn} \marg{x-dim} \marg{y-dim}
1653 % \cs{tikzsymbols_create_squared_draftbox:n} \marg{dimension}
1654 % \cs{l_tikzsymbols_if_opt_draft_bool}
1655 % \end{syntax}
1656 %
1657 % \cs{tikzsymbols_create_draftbox:nn} creates draft-box
1658 % (option \Option{draft=true}) with length \meta{x-dim} and height \meta{y-dim}.
1659 %
1660 %\cs{tikzsymbols_create_squared_draftbox:n} does the same thing,
1661 % it just takes one argument and creates a square.
1662 %
1663 % \cs{l_tikzsymbols_if_opt_draft_bool}
1664 % is a public variable that stores
1665 % the value of the \Option{draft} option.
1666 % \end{function}
1667 %
1668 %
1669 % \section{FAQ (Known errors and problems)}
1670 %
1671 % Or \enquote{Questions I assume would be frequently asked, if people would
1672 % frequently ask questions}.
1673 %
1674 % \subsection{How to get rid of the space after each symbol?}
1675 %
1676 % By default the package adds \cs{xspace} after each command.
1677 % To remove it use the option \opt{after-symbol}. Using
1678 % \begin{verbatim}
1679 % \tikzsymbolsset{after-symbol={}}
1680 % \end{verbatim}
1681 % removes the \cs{xspace} command and thus the unwanted space.
1682 %
1683 %^^A This was done way back and today I most probably wouldn't do it anymore,
1684 %^^A but it stayed now for around $4$ years and I don't know if I really should get
1685 %^^A rid of it by default.
1686 %
1687 %
1688 %
1689 %
1690 % \subsection{Using the symbols causes unwanted \meta{problem}. How could I get rid of it?}
1691 %
1692 % This could have something to do with question \ref{sec:Q:store-symbol}
1693 % (after you made sure that the symbols cause the problem).
1694 % Try using setting the option \opt{usebox=false} and recompile a few
1695 % times. If the problem persists, please send a bug report (\cref{sec:bug}).
1696 %
1697 % \subsection{I am getting the error-message \texttt{Argument of \textbackslash pgffor@next has an extra \}}}
1698 %
1699 % If you encounter an error message like
1700 % \begin{verbatim}
1701 % Argument of \pgffor@next has an extra }
1702 % \end{verbatim}
1703 % while using \pkg{babel} with e.g. language \enquote{francais}
1704 % and for example \cs{Cooley} you may add
1705 % \begin{verbatim}
1706 % \usetikzlibrary{babel}
1707 % \end{verbatim}
1708 % to your preamble. This should (hopefully) fix the problem.
1709 %
1710 %
1711 % \subsection{Another package I load already defines \meta{symbol}.}
1712 %
1713 % You can override pretty much every symbol simply by loading
1714 % \pkg{tikzsymbols} last as it defines the symbols via
1715 % \cs{DeclareDocumentCommand} (see \pkg{xparse}).
1716 %
1717 % If you want to use the symbols of both packages you may have
1718 % a look at option \opt{prefix}.
1719 %
1720 %
1721 %^^A \subsection{Why is it important to know that this package stores symbols in boxes
1722 %^^A and reuses them instead of creating a new picture every time?}
1723 % \subsection{Does this package store symbols in boxes
1724 % and reuses them instead of creating a new picture every time?}
1725 % \label{sec:Q:store-symbol}
1726 %
1727 % Yes, it does. It can become a problem if \LaTeX\ runs out of boxes. If this happens,
1728 % use \opt{usebox=false}.
1729 %
1730 % Furthermore, \pkg{tikz} allows to reference pictures using e.g.\
1731 % \opt{remember picture}. This also influences the symbols
1732 % of \pkg{tikzsymbols}. As those symbols are stored and
1733 % copied for printing, labels attached to the symbols get repeated.
1734 % In this case, also try using \opt{usebox=false} (or try the option
1735 % \opt{remember-picture=false}).
1736 %
1737 %^^A Another problem is that if a label is added to a symbol
1738 %^^A (for example by the \pkg{tikz} option \opt{remember picture})
1739 %^^A then this label is repeated every time the symbol is used. If you have
1740 %^^A already used the symbol \emph{before} the label is added, nothing happens
1741 %^^A as a copy of the symbol without the label is used. If it is used the first time,
1742 %^^A then the label is also stored and repeated every time the symbol is used later.
1743 %^^A This behavior can also be fixed by \opt{usebox=false} or adding
1744 %^^A a \pkg{tikz} style by \opt{append-style}.
1745 %
1746 %
1747 % \subsection{Are the symbols created with the environment \texttt{tikzpicture}?}
1748 %
1749 % Yes, they are.
1750 %
1751 %
1752 %
1753 %
1754 %
1755 %
1756 %
1757 %
1758 % \section{Nobody is perfect}
1759 % \label{sec:bug}
1760 %
1761 % If you find a bug please send me a mail (or report it on GitHub)
1762 % involving a \emph{minimal example}
1763 % showing the bug and a short description (english or german).
1764 % Please mention (if you are writing
1765 % a mail)
1766 % \enquote{\Package{tikzsymbols}} in the header, \enquote{gmx} has
1767 % a habit of putting mails into the spam-folder
1768 % and it helps me to recognize those mails faster.
1769 % This can also be the reason why I may need some time to answer
1770 % the mail.
1771 %
1772 % As I am also new to GitHub, I also may take longer to answer, at least until I
1773 % figured out how to get a mail if a new issue is created.
1774 %
1775 % Suggestions are also welcome.
1776 %
1777 %
1778 %
1779 %
1780 %
1781 % \section{Danksagung}
1782 %
1783 % I would like to thank all users for providing bug reports
1784 % and helping to improve this package.
1785 %
1786 % Furthermore many thanks to my brother helping me improving
1787 % the symbols.
1788 %
1789 % \section{Changes}
1790 %
1791 % See the \enquote{README.md} file.
1792 %
1793 %
1794 % \end{documentation}
1795 % \begin{implementation}
1796 %
1797 % \iffalse meta-comment
1798 %: subsec: Code
1799 % \fi
1800 %
1801 % There is not much to see, all this symbols were created with \Package{tikz}.
1802 % But it may helps you (somehow).
1803 %
1804 % PS. Enter at own risk, bad code and grammar up ahead.
1805 %
1806 %
1807 %
1808 %
1809 %
1810 %
1811 % \section{\LaTeX3 code}
1812 %
1813 %
1814 %
1815 % \begin{macrocode}
1816 %<@@=tikzsymbols>
1817 % \end{macrocode}
1818 %
1819 % \begin{macrocode}
1820 %<*package>
1821 % \end{macrocode}
1822 %
1823 %
1824 %\changes {v1.0} {2013/01/19} {Initial version}
1825 %\changes {v1.05} {2013/02/13} {Deleted a \enquote{t} in the BasicTree-code, shortened the trunk from the tree a bit, renamed some codes, made an index}
1826 %\changes {v1.6} {2013/02/14} {Now \enquote{Person} can be used in sections, etc.}
1827 %\changes {v1.6} {2013/02/14} {Now an error message is generated if the last parameter of \enquote{BasicTree} is neither \enquote{leaf} nor empty.}
1828 %\changes {v1.6} {2013/02/14} { New options: draft and final. If in documentclass the option \enquote{draft} is defined, the package recognizes it. Plus some warnings if you use class option draft/final with package option tree=on/off.}
1829 %\changes {v1.6} {2013/02/14} { Renamed \enquote{tikzsymbolsaftersymbolinput} to \enquote{tikzsymbolsaftersymbolinput}}
1830 %\changes {v1.61} {2013/02/17} {Made an invisible box in BasicTree.}
1831 %\changes {v1.65} {2013/02/17} {Improved BasicTree; New symbols \enquote{Schaler/peeler}, Laughey, Walley, Ninja; but didn't improve the source-description}
1832 %\changes {v1.7} {2013/02/28} {New symbols, etc.}
1833 %\changes {v2.0} {2013/03/07} {Fixed Bugs, improved BasicTree, new option \enquote{marvosym}, new symbol}
1834 %\changes {v2.2} {2013/03/23} {Now you can use negative scaling. Include \Makro{@ifpackageloaded}. Did something else, I can't remember}
1835 %\changes {v2.5} {2013/04/18} {New option: draftabsolute, changed the documentation a bit}
1836 %\changes {v3.0} {2013/07/21} {Changed the documentation}
1837 %\changes {v3.0} {2013/07/21} {Replaced \cs{let} by \cs{tikzsymbols@let}}
1838 % \changes{v3.0}{2013/07/21}{Changed symbol code}
1839 % \changes{v3.0}{2013/07/26}{Using \cs{changes{}{}{}} correctly (hopefully)}
1840 % \changes{v3.0}{2013/07/21}{Changed output of \enquote{absolute} option}
1841 % \changes{v3.0b}{2014/10/19}{Deleted non ASCII characters in der .sty file.}
1842 % \changes{v3.0d}{2014/10/29}{\cs{tikzsymbolsscl} to \cs{tikzsymbols@scl}}
1843 % \changes{v3.0e}{2014/10/29}{\cs{tikzsymbolsDeclareRobustCommand} to \cs{tikzsymbols@Declare@Robust@Command}}
1844 % \changes{v3.0f}{2014/10/29}{\cs{tikzsymbolsbxPrmtrstore} to \cs{tikzsymbols@bx@Prmtrstore}}
1845 %
1846 % \changes{v3.0g}{2015/10/01}{Deleted package \Package{calc}, using now \cs{pgfmathsetlength} instead of \cs{setlength}.}
1847 %
1848 % \changes{v3.0h}{2015/10/13}{Added a missing \cs{fi} into the code. }
1849 %
1850 % \changes{v3.01alpha}{2015/10/03}{Started from new using \LaTeX3}
1851 %
1852 % \changes{v3.38}{2015/10/03}{Nearly finished translating the code to
1853 % \LaTeX3. Himmel! Das war einfach nur zach! Muss aber noch den
1854 % \LaTeXe\ Code löschen.}
1855 %
1856 % \changes{v3.40}{2015/10/03}{Now everything is written in \LaTeX3.}
1857 %
1858 % \changes{v3.50}{2015/10/03}{Now it compiles without error (without
1859 % using any command or options.)}
1860 %
1861 % \changes{v3.58}{2015/10/04}{Fixed every error occurring while using
1862 % the symbols without optional arguments and package
1863 % options. Something is still wrong with \cs{@@_Basic_Tree_off:nnnnn}}
1864 %
1865 % \changes{v3.60}{2015/10/05}{Fixed \cs{@@_Basic_Tree_off:nnnnn}}
1866 %
1867 % \changes{v3.70}{2015/10/05}{Now every draftbox has the correct
1868 % size.}
1869 %
1870 % \changes{v3.75}{2015/10/05}{\cs{tikzsymbolsuse} works now.}
1871 %
1872 % \changes{v3.9}{2015/10/8}{Various fixes, new command \Makro{tikzsymbolsuse} and started to write a new documentation.}
1873 % \changes{v3.95}{2016/03/20}{Removed the only-preambility of \Makro{tikzsymbolsset}.}
1874 % \changes{v3.95}{2016/03/20}{Changed name of key-group from 'preamble' to
1875 % 'document'.}
1876 %
1877 % \changes{v3.9}{2016/04/04}{Added \Makro{@ifackagelater}.}
1878 % \changes{v3.99}{2016/04/04}{As advised undid my version-resetting.}
1879 % \changes{v4.0}{2016/03/20}{Finished reworking the code.}
1880 % \changes{v4.0}{2016/26/12}{Added \cs{Nudelholz} bzw. \cs{rollingpin}.}
1881 %
1882 % \changes{v4.02}{2017/05/14}{Added option 'baseline=true/false' to fix a some strange
1883 % behaviors with \pkg{todonotes}.}
1884 % \changes{v4.02}{2017/05/14}{Defined the tikz-style '/\_\_tikzsymbols' which is used to implement 'baseline'.}
1885 %
1886 % \changes{v4.03}{2017/08/08}{New symbols: \cs{Sleepey} and \cs{dSleepey}.}
1887 % \changes{v4.04}{2017/08/08}{New symbol: \cs{SchrodingersCat}.}
1888 %
1889 % \changes{v4.10}{2018/04/11}{New option: \opt{append-style}.}
1890 % \changes{v4.10}{2018/04/11}{New option: \opt{remember-picture}.}
1891 % \changes{v4.10}{2018/04/11}{Change how \opt{baseline} works (internal).}
1892 % \changes{v4.10}{2018/04/11}{Delete invisible sign (I \emph{hate} those).}
1893 % \changes{v4.10}{2018/04/11}{New symbolpair: \cs{Knoblauchpresse} and \cs{garlicpress}.}
1894 % \changes{v4.10}{2018/04/11}{Option \opt{draft} and \opt{final} are local now.}
1895 %
1896 % \changes{v4.10a}{2018/05/16}{Removed colors from \cs{Strichmaxerl}.}
1897 % \changes{v4.10b}{2019/02/07}{Replaced \cs{c_zero} by \texttt{0}.}
1898 % \changes{v4.10c}{2019/02/08}{Fixed \texttt{xshift} and \texttt{yshift} by adding dimensions. Fixes \cs{Fire}, \cs{Candle} and \cs{(d)Laughey}.}
1899 %
1900 % \changes{v4.12}{2021/10/14}{New commands: \cs{tikzsymbolsdefinesymbol}, \cs{tikzsymbolsprovideandusesavebox}, \cs{tikzsymbolssetscaleabs}, \cs{tikzsymbolsscaleabs}, \cs{tikzsymbols_create_draftbox:nn}, \cs{tikzsymbols_create_squared_draftbox:n} and \cs{l_tikzsymbols_if_opt_draft_bool}}
1901 % \changes{v4.12}{2021/10/14}{New symbols: \cs{Heart} and \cs{dHeart}.}
1902 % \changes{v4.12}{2021/10/14}{New symbol: \cs{Maskey} }
1903 %
1904 % \changes{v4.12a}{2021/12/14}{Fixing \enquote{final} option!}
1905 %
1906 %
1907 % The first lines are always the same: What do I need, what is the
1908 % package named.
1909 % \begin{macrocode}
1910 \@ifpackageloaded{xparse}{}{\RequirePackage{xparse}}
1911 \@ifpackageloaded{expl3}{}{\RequirePackage{expl3}}
1912 \@ifpackagelater{expl3}{2021/08/27}
1913 {}
1914 {%
1915 \PackageError { tikzsymbols }{ Support~package~expl3~too~old }
1916 {%
1917 You~need~to~update~your~installation~of~the~bundles~'l3kernel'~and~
1918 'l3packages'.\MessageBreak
1919 Loading~tikzsymbols~will~abort!
1920 }%
1921 \endinput
1922 }
1923 \ProvidesExplPackage
1924 {tikzsymbols}
1925 {2021/12/14}
1926 {4.12a}
1927 {Some symbols created using tikz and LaTeX3.}
1928 \@ifpackageloaded { tikz } {} { \RequirePackage { tikz } }
1929 \@ifpackageloaded { xcolor } {} { \RequirePackage { xcolor } }
1930 \@ifpackageloaded { xspace } {} { \RequirePackage { xspace } }
1931 \@ifpackageloaded { l3keys2e } {} { \RequirePackage { l3keys2e } }
1932 % \end{macrocode}
1933 %
1934 % Furthermore we need to load some libraries from \Package{tikz}, I
1935 % hope these \Makro{ExplSyntax...} don't break anything.
1936 % \begin{macrocode}
1937 \ExplSyntaxOff
1938 \usetikzlibrary {arrows,decorations.pathmorphing,trees}
1939 \ExplSyntaxOn
1940 % \end{macrocode}
1941 %
1942 %
1943 % \begin{macro}{
1944 % \l_@@_if_scale_negative_bool ,
1945 % \g_@@_if_opt_tree_print_bool ,
1946 % \l_@@_if_opt_draft_bool ,
1947 % \g_@@_if_opt_marvosym_bool ,
1948 % \l_@@_argument_parser_error_bool ,
1949 % }
1950 % Booleans we later need, \cs{l_@@_if_scale_negative_bool} is set true
1951 % in symbols which need some extra code if the scaling is negative
1952 % (like \verb|\Chair|). The other booleans are used for the package
1953 % options and are therefor globally.
1954 % \begin{macrocode}
1955 \bool_new:N \l_@@_if_scale_negative_bool
1956 \bool_new:N \g_@@_if_opt_tree_print_bool
1957 \bool_new:N \l_@@_if_opt_draft_bool
1958 \bool_new:N \l_tikzsymbols_if_opt_draft_bool
1959 \bool_new:N \g_@@_if_opt_marvosym_bool
1960 \bool_new:N \l_@@_argument_parser_error_bool
1961 % \end{macrocode}
1962 % \end{macro}
1963 %
1964 % Setting some of them to true by default.
1965 % \begin{macrocode}
1966 \bool_gset_true:N \g_@@_if_opt_tree_print_bool
1967 % \end{macrocode}
1968 %
1969 %
1970 %
1971 %
1972 % \begin{macro}{
1973 % \g_@@_command_prefix_tl ,
1974 % \l_@@_tikzsymbols_after_symbol_tl ,
1975 % \g_@@_current_situation_tl ,
1976 % \g_@@_scale_abs_tl ,
1977 % \c_@@_leaf_tl ,
1978 % \c_@@_black_tl ,
1979 % }
1980 %
1981 % I think the names speak for themselves,
1982 % \cs{g_@@_command_prefix_tl} is used in the option \Option{prefix}
1983 % and adds its content to the command names as a prefix, by default
1984 % it is empty.
1985 %
1986 % \Makro{g_tikzsymbols_after_symbol_tl} adds its content to the
1987 % document after the symbol is used.
1988 %
1989 % In \Makro{l_@@_current_situation} is a storage for the
1990 % current font-size and color-configurations which is needed when
1991 % defining boxes.
1992 %
1993 % \Makro{l_@@_scale_abs_tl} safes absolute scaling of a symbol;
1994 % could have used \Makro{l_tmpa_tl}. It is a \texttt{tl} because
1995 % using a \texttt{fp} would have required me to use
1996 % \Makro{fp_use:N} every time. I'm lazy, I know.
1997 %
1998 % The last two are constants and are used to check user specific
1999 % input at some commands (\Makro{BasicTree} and \Makro{Ninja} I believe).
2000 % \begin{macrocode}
2001 \tl_clear_new:N \g_@@_command_prefix_tl
2002 \tl_new:N \l_@@_tikzsymbols_after_symbol_tl
2003 \tl_new:N \l_@@_current_situation_tl
2004 \tl_new:N \l_@@_scale_abs_tl
2005 \tl_const:Nn \c_@@_leaf_tl { leaf }
2006 \tl_const:Nn \c_@@_black_tl { black }
2007 % \end{macrocode}
2008 % \end{macro}
2009 %
2010 % Setting the default value and yes, I know that you maybe should not
2011 % use \Makro{xspace}, but I do it anyway:
2012 % \begin{macrocode}
2013 \tl_set:Nn \l_@@_tikzsymbols_after_symbol_tl { \xspace }
2014 % \end{macrocode}
2015 %
2016 % \begin{macrocode}
2017 \tl_new:N \l_@@_save_global_scale_for_later_because_no_better_idea_tl
2018 % \end{macrocode}
2019 %
2020 % \begin{macrocode}
2021 \tl_new:N \l_@@_symbol_name_tl
2022 \tl_new:N \l_@@_symbol_options_clist
2023 % \end{macrocode}
2024 %
2025 % \begin{macrocode}
2026 \fp_new:N \l_@@_global_scale_fp
2027 \fp_set:Nn \l_@@_global_scale_fp { 1.0 }
2028 % \end{macrocode}
2029 %
2030 %
2031 % \begin{macro}{\tikzsymbolsaftersymbolinput}
2032 % An obsolete macro. Is not defined anymore.
2033 % \begin{macrocode}
2034 %\cs_set_eq:NN \tikzsymbolsaftersymbolinput {}
2035 % \end{macrocode}
2036 % \end{macro}
2037 %
2038 % \begin{macro}{
2039 % \l_@@_Strichmaxerl_x_LA_fp ,
2040 % \l_@@_Strichmaxerl_x_RA_fp,
2041 % \l_@@_Strichmaxerl_x_LB_fp,
2042 % \l_@@_Strichmaxerl_x_RB_fp,
2043 % \l_@@_Strichmaxerl_y_LA_fp,
2044 % \l_@@_Strichmaxerl_y_RA_fp,
2045 % \l_@@_Strichmaxerl_y_LB_fp,
2046 % \l_@@_Strichmaxerl_y_RB_fp,
2047 % \@@_Strichmaxerl_x_max_fp,
2048 % \@@_Strichmaxerl_x_min_fp,
2049 % }
2050 %
2051 % Needed for the plain vanilla boxes of \Makro{Strichmaxerl} for
2052 % the length (\texttt{x}) and height (\texttt{y}).
2053 % \begin{macrocode}
2054 \fp_new:N \l_@@_Strichmaxerl_x_LA_fp
2055 \fp_new:N \l_@@_Strichmaxerl_x_RA_fp
2056 \fp_new:N \l_@@_Strichmaxerl_x_LB_fp
2057 \fp_new:N \l_@@_Strichmaxerl_x_RB_fp
2058 % \end{macrocode}
2059 % \begin{macrocode}
2060 \fp_new:N \l_@@_Strichmaxerl_y_LA_fp
2061 \fp_new:N \l_@@_Strichmaxerl_y_RA_fp
2062 \fp_new:N \l_@@_Strichmaxerl_y_LB_fp
2063 \fp_new:N \l_@@_Strichmaxerl_y_RB_fp
2064 % \end{macrocode}
2065 % \begin{macrocode}
2066 \fp_new:N \@@_Strichmaxerl_x_max_fp
2067 \fp_new:N \@@_Strichmaxerl_x_min_fp
2068 % \end{macrocode}
2069 % \end{macro}
2070 %
2071 %
2072 %
2073 %
2074 %
2075 % \begin{macro} { \l_@@_Moai_thickness_dim }
2076 %
2077 % It is used inside \Makro{Moai}. I figured that depending
2078 % on the scaling the line-thickness of \Makro{Moai} should change
2079 % its value (bad explained, please just look at the code).
2080 %
2081 % \begin{macrocode}
2082 \dim_new:N \l_@@_Moai_thickness_dim
2083 % \end{macrocode}
2084 % \end{macro}
2085 %
2086 %
2087 % \begin{macro} { \g_tikzsymbols_list_of_printing_cooking_with_argument_commands_clist }
2088 % Store every command defined by this package. I may delete them.
2089 % \begin{macrocode}
2090 \clist_new:N \g_tikzsymbols_list_of_printing_cooking_with_argument_commands_clist
2091 % \end{macrocode}
2092 % \end{macro}
2093 %
2094 % \begin{macro}{ \g_@@_english_commands_prop }
2095 % \begin{macrocode}
2096 \prop_new:N \g_@@_english_commands_prop
2097 % \end{macrocode}
2098 % \end{macro}
2099 %
2100 %
2101 % \begin{macro}{\l_@@_tmpa_tl }
2102 % Some scratch variables
2103 % \begin{macrocode}
2104 \tl_new:N \l_@@_tmpa_tl
2105 % \end{macrocode}
2106 % \end{macro}
2107 %
2108 %
2109 % \subsection{Messages}
2110 %
2111 % Nothing special happens in this subsection.
2112 %
2113 % \begin{macro}{ obsolete-option }
2114 % Message for obsolete options.
2115 % \begin{macrocode}
2116 \msg_new:nnnn { tikzsymbols } { obsolete-option }
2117 {
2118 Option \ '#1' \ is \ obsolete. \
2119 Please \ use \ '#2' \ instead.
2120 }{
2121 The \ option \ you \ used \ is \ obsolete.
2122 \msg_see_documentation_text:n { tikzsymbols }
2123 }
2124 % \end{macrocode}
2125 % \end{macro}
2126 %
2127 % \begin{macro}{undefined-command}
2128 % Message for undefined commands used by \Makro{tikzsymbolsuse}.
2129 % \begin{macrocode}
2130 \msg_new:nnnn { tikzsymbols } { undefined-command }
2131 {
2132 Undefined \ Control \ sequence: \ '#1'. \
2133 Did \ you \ write \ the \ name \ correctly?
2134 }{
2135 The \ command \ is \ not \ defined.
2136 \msg_see_documentation_text:n { tikzsymbols }
2137 }
2138 % \end{macrocode}
2139 % \end{macro}
2140 %
2141 % \begin{macro}{ obsolete-command }
2142 % Message for obsolete commands (\Makro{Person}, etc.)
2143 % \begin{macrocode}
2144 \msg_new:nnnn { tikzsymbols } { obsolete-command }
2145 {
2146 Command \ '#1' \ is \ obsolete. \
2147 Please \ use \ '#2' \ instead.
2148 }
2149 {
2150 The \ command \ you \ used \ is \ obsolete.
2151 \msg_see_documentation_text:n { tikzsymbols }
2152 }
2153 % \end{macrocode}
2154 % \end{macro}
2155 %
2156 % \begin{macro}{ tree }
2157 % Error message for \Makro{BasicTree}. I hope the text is understandable.
2158 % \begin{macrocode}
2159 \msg_new:nnnn { tikzsymbols } { tree }
2160 {
2161 Parameter \ '#1' \ cannot \ be \ used. \
2162 The \ last \ parameter \ has \ either \ to \ be \
2163 'leaf' \ or \ has \ to \ be \ empty.
2164 }
2165 {
2166 The \ fourth \ mandatory \ argument \ of \ '\protect\BasicTree' \
2167 has \ either \ to \ be \ leaf \ or \ empty.
2168 \msg_see_documentation_text:n { tikzsymbols }
2169 }
2170 % \end{macrocode}
2171 % \end{macro}
2172 %
2173 % \begin{macro}{ marvosym }
2174 % Message if option \Option{marvosym} is used, but the package not
2175 % loaded at all.
2176 % \begin{macrocode}
2177 \msg_new:nnnn { tikzsymbols } { marvosym }
2178 {
2179 Use \ option \ 'marvosym' \ only\
2180 if \ you \ load \ package \ 'marvosym'. \
2181 }{
2182 Either \ load \ package \ 'marvosym' \ or \
2183 delete \ the \ tikzsymbols \ option \ 'marvosym'. \
2184 \msg_see_documentation_text:n { tikzsymbols }
2185 }
2186 % \end{macrocode}
2187 % \end{macro}
2188 %
2189 %
2190 % \begin{macro}{ Changey-number-too-large }
2191 % \changes{v3.95}{2016/03/20}{New}
2192 % \begin{macrocode}
2193 \msg_new:nnnn { tikzsymbols } { Changey-number-too-large }
2194 {
2195 Changey's \ mood \ has \ to \ be \ between \
2196 -2 \ and \ 2 \ (currently:\ '#1' ).
2197 }{
2198 Given \ number \ is \ too \ large \ (small), \ please
2199 \ use \ an \ number \ between \ -2 \ and \ 2.
2200 \msg_see_documentation_text:n { tikzsymbols }
2201 }
2202 \msg_new:nnnn { tikzsymbols } { cChangey-number-too-large }
2203 {
2204 cChangey's \ mood \ has \ to \ be \ between \
2205 -2 \ and \ 2 \ (currently:\ '#1' ).
2206 }{
2207 Given \ number \ is \ too \ large \ (small), \ please
2208 \ use \ an \ number \ between \ -2 \ and \ 2.
2209 \msg_see_documentation_text:n { tikzsymbols }
2210 }
2211 % \end{macrocode}
2212 % \end{macro}
2213 %
2214 % \begin{macro}{ tikzsymbolsaftersymbolinput }
2215 % \changes{v3.95}{2016/03/20}{New}
2216 % \begin{macrocode}
2217 \msg_new:nnnn { tikzsymbols } { tikzsymbolsaftersymbolinput }
2218 {
2219 The \ command \ \exp_not:N\tikzsymbolsaftersymbolinput is \
2220 obsolete. \ Please \ use \ the \ option \ 'after-symbol' \ instead.
2221 }{
2222 \exp_not:N\tikzsymbolsaftersymbolinput is \ not \ supported \ anymore.
2223 \msg_see_documentation_text:n { tikzsymbols }
2224 }
2225 % \end{macrocode}
2226 % \end{macro}
2227 %
2228 % \begin{macro}{ SchrodingersCat }
2229 % \begin{macrocode}
2230 \msg_new:nnnn { tikzsymbols } { SchrodingersCat }
2231 {
2232 \SchrodingersCat\ only \ accepts \ '-1' \ (dead), \ '0'\ (unknown)\ or \ '1'\
2233 (alive) \ for \ its \ mandatory \ argument. \ You \ have \ given \ '#1'.
2234 }{
2235 Your \ input \ number \ is \ not \ allowed.
2236 \msg_see_documentation_text:n { tikzsymbols }
2237 }
2238 % \end{macrocode}
2239 % \end{macro}
2240 %
2241 % \begin{macro}{ internal-message }
2242 % \changes{v4.05}{2017/08/09}{New}
2243 % \begin{macrocode}
2244 \msg_new:nnnn { tikzsymbols } { internal-message }
2245 {
2246 This \ is \ an \ internal \ message \ and \ means \ that \
2247 I \ (the \ package \ author) \ fucked \ up. \ If \ you \
2248 stumble \ across \ this, \ the \ description \ message \
2249 is \ '#1'.
2250 }{
2251 I \ apologize \ for \ that.
2252 \msg_see_documentation_text:n { tikzsymbols }
2253 }
2254 % \end{macrocode}
2255 % \end{macro}
2256 %
2257 % \begin{macro}{ unknown-argument-type }
2258 % \changes{v4.05}{2021/09/29}{New}
2259 % \begin{macrocode}
2260 \msg_new:nnnn { tikzsymbols } { unknown-argument-type }
2261 {
2262 The \ argument \ type ~ '#1' ~ is ~ not ~ known ~ by ~ this ~
2263 package. ~ Perhaps ~ you ~ misspelled ~ it? ~ The ~ allowed ~
2264 argument ~ types ~ are ~ 'm', ~ 'B' ~ and ~ 'S'.
2265 }{
2266 You ~ cannot ~ use ~ '#1' ~ as ~ an ~ argument ~ type.
2267 \msg_see_documentation_text:n { tikzsymbols }
2268 }
2269 % \end{macrocode}
2270 % \end{macro}
2271 %
2272 % \begin{macro}{ unknown-argument-type }
2273 % \changes{v4.05}{2021/09/29}{New}
2274 % \begin{macrocode}
2275 \msg_new:nnnn { tikzsymbols } { bad-argument-spec }
2276 { Bad ~ argument ~ specification ~ '#2' ~ for ~ symbol ~ #1 . }
2277 {
2278 The ~ argument ~ specification~provided~was~not~valid:~
2279 one~or~more~mandatory~pieces~of~information~were~missing.
2280 \msg_see_documentation_text:n { tikzsymbols }
2281 }
2282 % \end{macrocode}
2283 % \end{macro}
2284 %
2285 % \begin{macro}{ package-option }
2286 % \changes{v4.05}{2017/08/09}{New}
2287 % \begin{macrocode}
2288 \msg_new:nnnn { tikzsymbols } { package-option }
2289 {
2290 The \ option \ '#1' \ is \ only \ allowed \ as \ a \ package
2291 \ option.
2292 }{
2293 This \ option \ is \ not \ allowed \ to \ be \ set \
2294 using \ \tikzsymbolsset{}.
2295 \msg_see_documentation_text:n { tikzsymbols }
2296 }
2297 % \end{macrocode}
2298 % \end{macro}
2299 %
2300 % \begin{macro}{ symbol-name-unknown }
2301 % \changes{v4.05}{2017/08/09}{New}
2302 % \begin{macrocode}
2303 \msg_new:nnnn { tikzsymbols } { symbol-name-unknown }
2304 {
2305 The \ symbol \ '#1' \ is \ not \ available \ by \ this \ package.
2306 }{
2307 Perhaps \ you \ have \ misspelled it.
2308 \msg_see_documentation_text:n { tikzsymbols }
2309 }
2310 % \end{macrocode}
2311 % \end{macro}
2312 %
2313 %
2314 %
2315 %
2316 %
2317 %
2318 %
2319 %
2320 %
2321 %
2322 % \subsection{Helping Commands}
2323 % \label{sec:helping-commands}
2324 %
2325 % I define some macros which will help me to write less.
2326 %
2327 %
2328 %
2329 %
2330 %^^A The command \Makro{BasicTree} is split up into two commands, named
2331 %^^A \texttt{on} and \texttt{off}. The helper command
2332 %^^A \Makro{@@_Basic_Tree_aux:nnnnn} is redefined accordingly.
2333 %^^A \begin{macrocode}
2334 %^^A \end{macrocode}
2335 %
2336 %
2337 % \begin{macro}{ \@@_symbol_scale_i:n , \@@_symbol_scale_ii:nn }
2338 % \begin{macrocode}
2339 \cs_new:Npn \@@_symbol_scale_i:n #1
2340 {
2341 \@@_symbol_scale_ii:nn {#1} { 1.0 }
2342 }
2343 \cs_new:Npn \@@_symbol_scale_ii:nn #1#2
2344 {
2345 \prop_get:NnNTF \g_@@_english_commands_prop {#1} \l_tmpa_tl
2346 {
2347 \fp_set:cn { l_@@_ \l_tmpa_tl _scale_fp } {#2}
2348 }{
2349 \fp_if_exist:cTF { l_@@_ #1 _scale_fp }
2350 { \fp_set:cn { l_@@_ #1 _scale_fp } {#2} }
2351 { \msg_error:nnn { tikzsymbols} { symbol-name-unknown } {#1} }
2352 }
2353 }
2354 % \end{macrocode}
2355 % \end{macro}
2356 %
2357 %
2358 % \begin{macro}{ \@@_set_scale_abs_tl:n }
2359 % Sets \Makro{l_@@_scale_abs_tl} to the absolute input value. I made
2360 % this to write less which is always a good idea (mostly).
2361 % \begin{macrocode}
2362 \cs_new:Npn \@@_set_scale_abs_tl:n #1
2363 {
2364 \tl_set:Nf \l_@@_scale_abs_tl { \fp_abs:n {#1} }
2365 \tl_set_eq:NN \tikzsymbolsscaleabs \l_@@_scale_abs_tl
2366 }
2367 % \end{macrocode}
2368 % \end{macro}
2369 %
2370 %
2371 % \begin{macro}{ \@@_create_draftbox:nn }
2372 % Creating the command to print the plain vanilla draft-boxes. The
2373 % group is needed because I am setting \Makro{vbadness} to
2374 % \Makro{c_max_dimen} to suppress underfull-hbox messages. The input
2375 % is evaluated because we need it for the height and the length of
2376 % the draftbox. The draftbox itself contains just the vbox and hbox
2377 % commands to set the height and length of the box surrounded by a
2378 % frame.
2379 %
2380 % Note to self: DO NOT USE DIM! Multiplications do not work.
2381 % \begin{macrocode}
2382 \cs_new:Npn \@@_create_draftbox:nn #1#2
2383 {
2384 \group_begin:
2385 \vbadness=\c_max_dim
2386 \fp_set:Nn \l_tmpa_fp {#1}
2387 \fp_set:Nn \l_tmpb_fp {#2}
2388 \frame
2389 {
2390 \vbox_to_ht:nn { \fp_to_dim:N \l_tmpb_fp }
2391 {
2392 \hbox_to_wd:nn { \fp_to_dim:N \l_tmpa_fp } { }
2393 }
2394 }
2395 \group_end:
2396 }
2397 % \end{macrocode}
2398 % \end{macro}
2399 %
2400 % \begin{macro}{ \@@_create_squared_draftbox:n }
2401 % Again a command to write less. This command is used if the drat-box
2402 % is a square.
2403 % \begin{macrocode}
2404 \cs_new:Npn \@@_create_squared_draftbox:n #1
2405 {
2406 \@@_create_draftbox:nn {#1} {#1}
2407 }
2408 % \end{macrocode}
2409 % \end{macro}
2410 %
2411 %
2412 % \begin{macro}{ \@@_provide_savebox:nn }
2413 % \Makro{l_@@_current_situation_tl} is used here. The box
2414 % is only defined if it not defined yet. I don't know how those
2415 % boxes work, but if the same box (alias the same command in the
2416 % same font size and the same color and same options) is used again
2417 % the output (maybe) doesn't need to be calculated again. Its
2418 % faster, somehow, but it's faster. I am using the old commands
2419 % \Makro{global} and \Makro{sbox} because I didn't find the \LaTeX3
2420 % equivalents.
2421 % \begin{macrocode}
2422 \cs_new:Npn \@@_provide_savebox:nn #1#2
2423 {
2424 \tl_set:Nx \l_@@_current_situation_tl
2425 {
2426 \bool_if:NTF \l_@@_if_opt_draft_bool { T } { F } _
2427 \current@color _ \f@size
2428 }
2429 \box_if_exist:cF { g_@@_savebox_ \l_@@_current_situation_tl _ #1 _box }
2430 {
2431 \box_new:c { g_@@_savebox_ \l_@@_current_situation_tl _ #1 _box }
2432 \exp_args:NNc \global \sbox
2433 { g_@@_savebox_ \l_@@_current_situation_tl _ #1 _box } {#2}
2434 }
2435 }
2436 % \end{macrocode}
2437 % \end{macro}
2438 %
2439 %
2440 %
2441 %
2442 % \begin{macro}{ \@@_use_savebox_aux:n }
2443 % Use the defined \Makro{sbox}-box.
2444 % \begin{macrocode}
2445 \cs_new:Npn \@@_use_savebox:n #1
2446 {
2447 \exp_args:Nc \usebox
2448 { g_@@_savebox_ \l_@@_current_situation_tl _ #1 _box }
2449 }
2450 % \end{macrocode}
2451 % \end{macro}
2452 %
2453 %
2454 %
2455 %
2456 % \begin{macro}{\@@_provide_savebox_and_use_default:nn,
2457 % \@@_provide_savebox_and_use:nn }
2458 % Again to support my laziness. It creates the box (if it isn't
2459 % defined yet) and uses the box immediately afterwards.
2460 % \begin{macrocode}
2461 \cs_new:Npn \@@_provide_savebox_and_use_default:nn #1#2
2462 {
2463 \@@_provide_savebox:nn {#1} {#2}
2464 \@@_use_savebox:n {#1}
2465 }
2466 \cs_set_eq:NN \@@_provide_savebox_and_use:nn
2467 \@@_provide_savebox_and_use_default:nn
2468 % \end{macrocode}
2469 % \end{macro}
2470 %
2471 %
2472 % To make this package \pkg{todonotes} safe:
2473 % \begin{macrocode}
2474 \pgfkeys{ /@@/baseline /.style= { baseline=default } }
2475 \pgfkeys{ /@@/arrows /.style= { arrows=- } }
2476 \pgfkeys{ /@@/.style= { /@@/baseline , /@@/arrows } }
2477 \pgfkeys{ /tikzsymbolsstyle/.style= { /@@ } }
2478 % \end{macrocode}
2479 %
2480 %
2481 % \subsection{Keys}
2482 % \label{sec:keys}
2483 %
2484 % Now let's define the keys for this package. Using \LaTeX3 makes the
2485 % whole thing a bit easier. All keys (or most) are in a group. I may
2486 % delete it because it may be not necessary.
2487 % \begin{macrocode}
2488 \keys_define:nn { tikzsymbols }
2489 {
2490 % \end{macrocode}
2491 %
2492 % \begin{macro}{ final }
2493 % Its the final option, deddepi, deedidbtutp. Nothing special.
2494 % Also set the public version of this bool.
2495 % \begin{macrocode}
2496 final .choices:nn =
2497 { true , false }
2498 {
2499 \int_case:nn { \l_keys_choice_int }
2500 {
2501 { 1 } { \bool_set_false:N \l_@@_if_opt_draft_bool }
2502 { 2 } { \bool_set_true:N \l_@@_if_opt_draft_bool }
2503 }
2504 \bool_set_eq:NN \l_tikzsymbols_if_opt_draft_bool \l_@@_if_opt_draft_bool
2505 } ,
2506 % final .bool_set_inverse:N = \l_@@_if_opt_draft_bool ,
2507 final .default:n = { true } ,
2508 % \end{macrocode}
2509 % \end{macro}
2510 %
2511 %
2512 % \begin{macro}{ draft }
2513 % This option can be set to three values: true, false and absolute. I
2514 % decided that \Option{draft=absolute} is obsolete and that
2515 % \Option{draft=true} replaces this option. Of course, the 'absolute' is
2516 % still available, but gives a warning when used. Also sets the public version of
2517 % this bool.
2518 % \begin{macrocode}
2519 draft .choices:nn =
2520 { true , false , absolute }
2521 {
2522 \int_case:nn { \l_keys_choice_int }
2523 {
2524 { 1 } { \bool_set_true:N \l_@@_if_opt_draft_bool }
2525 { 2 } { \bool_set_false:N \l_@@_if_opt_draft_bool }
2526 { 3 }
2527 {
2528 \msg_error:nnnn { tikzsymbols } { obsolete-option }
2529 { draft = absolute } { draft = true }
2530 \bool_set_true:N \l_@@_if_opt_draft_bool
2531 }
2532 }
2533 \bool_set_eq:NN \l_tikzsymbols_if_opt_draft_bool \l_@@_if_opt_draft_bool
2534 } ,
2535 draft .default:n= { false } ,
2536 % \end{macrocode}
2537 % \end{macro}
2538 %
2539 % \begin{macro}{ draftabsolute }
2540 % Obsolete option. Old name for \Option{draft=absolute} which is
2541 % itself an old name for \Option{draft=true}. Don't use this option.
2542 % \begin{macrocode}
2543 draftabsolute .code:n =
2544 {
2545 \msg_error:nnnn { tikzsymbols } { obsolete-option }
2546 { draftabsolute } { draft = true }
2547 \bool_set_true:N \l_@@_if_opt_draft_bool
2548 \bool_set_eq:NN \l_tikzsymbols_if_opt_draft_bool \l_@@_if_opt_draft_bool
2549 } ,
2550 % \end{macrocode}
2551 % \end{macro}
2552 %
2553 % \begin{macro}{ marvosym }
2554 % Sets the marvosym-boolean to it respective value.
2555 % \begin{macrocode}
2556 marvosym .bool_gset:N = \g_@@_if_opt_marvosym_bool ,
2557 marvosym .default:n = { true } ,
2558 marvosym .groups:n = { only-package } ,
2559 % \end{macrocode}
2560 % \end{macro}
2561 %
2562 % \begin{macro}{ usebox }
2563 % Don't want to speed up the code due to random reasons? Set this
2564 % option to 'false'.
2565 % \begin{macrocode}
2566 usebox .choice: ,
2567 usebox/true .code:n =
2568 {
2569 \cs_set_eq:NN
2570 \@@_provide_savebox_and_use:nn
2571 \@@_provide_savebox_and_use_default:nn
2572 } ,
2573 usebox/false .code:n =
2574 {
2575 \cs_set_eq:NN
2576 \@@_provide_savebox_and_use:nn
2577 \use_ii:nn
2578 } ,
2579 usebox .default:n = { true } ,
2580 % \end{macrocode}
2581 % \end{macro}
2582 %
2583 % \begin{macro}{ prefix }
2584 % Sets the prefix of the commands. If for example \Option{prefix} is
2585 % set to \Option{tikz} this prefix is added to the command
2586 % names. \Makro{Sieb} will be \Makro{tikzSieb}.
2587 % \begin{macrocode}
2588 prefix .tl_gset:N = \g_@@_command_prefix_tl ,
2589 prefix .default:n = { tikzsymbols } ,
2590 prefix .groups:n = { only-package } ,
2591 % \end{macrocode}
2592 % \end{macro}
2593 %
2594 % \begin{macro}{ tree }
2595 % An old option, you should use \Option{draft=true} instead, but it
2596 % is not obsolete. For historic reasons this key still accepts 'on'
2597 % and 'off'.
2598 % \begin{macrocode}
2599 tree .choices:nn =
2600 { true , on , false , off }
2601 {
2602 \int_compare:nNnTF { \l_keys_choice_int } < { 3 }
2603 { \bool_gset_true:N \g_@@_if_opt_tree_print_bool }
2604 { \bool_gset_false:N \g_@@_if_opt_tree_print_bool }
2605 } ,
2606 tree .default:n = { true } ,
2607 % \end{macrocode}
2608 % \end{macro}
2609 %
2610 %
2611 % \begin{macro}{ after-symbol }
2612 % Available as package option, but should be used
2613 % using \Makro{tikzsymbolsuse}.
2614 % \begin{macrocode}
2615 after-symbol .tl_set:N = \l_@@_tikzsymbols_after_symbol_tl ,
2616 after-symbol .default:n= { \xspace } ,
2617 % \end{macrocode}
2618 % \end{macro}
2619 %
2620 % \begin{macro}{ append-style }
2621 % \begin{macrocode}
2622 append-style .code:n = { \pgfkeys{ /@@/.append ~ style= {#1} } } ,
2623 append-style .default:n = { } ,
2624 % \end{macrocode}
2625 % \end{macro}
2626 %
2627 % \begin{macro}{ baseline }
2628 % \begin{macrocode}
2629 baseline .choice: ,
2630 baseline / true .code:n = { \pgfkeys{ /@@/baseline/.style={ baseline=default } } } ,
2631 baseline / false .code:n = { \pgfkeys{ /@@/baseline/.style={ } } } ,
2632 baseline .default:n = { true } ,
2633 % \end{macrocode}
2634 % \end{macro}
2635 %
2636 % \begin{macro}{ remember-picture }
2637 % \begin{macrocode}
2638 remember-picture .choice: ,
2639 remember-picture / true .meta:n = { append-style = { /tikz/remember~picture = true } } ,
2640 remember-picture / false .meta:n = { append-style = { /tikz/remember~picture = false } } ,
2641 remember-picture .default:n = { false } ,
2642 % \end{macrocode}
2643 % \end{macro}
2644 %
2645 % \begin{macro}{ global-scale }
2646 % \begin{macrocode}
2647 global-scale .fp_set:N = \l_@@_global_scale_fp ,
2648 global-scale .default:n = { 1 } ,
2649 % \end{macrocode}
2650 % \end{macro}
2651 %
2652 % This command has to be set later as
2653 % the command names have not been defined yet.
2654 % \begin{macro}{ symbol-scale }
2655 % \begin{macrocode}
2656 symbol-scale .code:n =
2657 {
2658 %% This key will be redefined later.
2659 \tl_set:Nn \l_@@_save_global_scale_for_later_because_no_better_idea_tl
2660 {
2661 symbol-scale = {#1} ,
2662 }
2663 } ,
2664 symbol-scale .default:n = { } ,
2665 % \end{macrocode}
2666 % \end{macro}
2667 %
2668 %
2669 %
2670 %
2671 % Now we end the key definitions.
2672 % \begin{macrocode}
2673 }
2674 % \end{macrocode}
2675 %
2676 %
2677 %
2678 % We process all options.
2679 % \begin{macro}{ ProcessKeyOptions }
2680 % \begin{macrocode}
2681 \ProcessKeysOptions { tikzsymbols }
2682 % \end{macrocode}
2683 % \end{macro}
2684 %
2685 % \begin{macro}{ symbol-scale }
2686 % \begin{macrocode}
2687 \keys_define:nn { tikzsymbols }
2688 {
2689 symbol-scale .code:n =
2690 { \keyval_parse:NNn \@@_symbol_scale_i:n \@@_symbol_scale_ii:nn {#1} }
2691 }
2692 % \end{macrocode}
2693 % \end{macro}
2694 %
2695 %
2696 %
2697 %
2698 % \subsubsection{DeclareDocumentCommand Helpers}
2699 % \label{sec:declaredocumenthelpers}
2700 %
2701 % I define my own \Makro{DeclareDocumentCommand} (well, I am still
2702 % using \Makro{DeclareDocumentCommand}, but I am wrapping some other
2703 % commands around) to be able to add a prefix to the command-name and to
2704 % be able to write \Makro{Command}[] (note the empty brackets, you
2705 % don't need to insert a '1' inside, it is done automatically).
2706 %
2707 % \begin{macro}{ \@@_process_B_argument:n , \@@_process_S_argument:nn }
2708 % These commands are used in \Makro{DeclareDocumentCommand} to help
2709 % setting the options with \verb|>{ \@@_process_B_argument:nn {#1} } O{#1}|
2710 % and |>{ \@@_process_S_argument:nn {<symbol_name>} } O{1}|. If the
2711 % brackets are empty the value of the option is inserted. Example:
2712 % The option has been defined by 'B{none}', so the value inserted if
2713 % no brackets are given is 'none'. If empty brackets are given,
2714 % normally nothing is inserted (and not 'none'). Using this command
2715 % if empty brackets are given 'none' is inserted automatically. This
2716 % safes some error messages. The same goes for |\@@_process_S_argument:nn|,
2717 % which also calculates the current scale of the symbol
2718 % (taking symbol-scaling and global-scaling into account).
2719 % \Makro{ProcessedArgument} is defined in
2720 % the manual of \Package{xparse}.
2721 % \begin{macrocode}
2722 \cs_new:Npn \@@_process_B_argument:nn #1#2
2723 {
2724 \tl_if_empty:nTF {#2}
2725 { \tl_set:Nn \ProcessedArgument {#1} }
2726 { \tl_set:Nn \ProcessedArgument {#2} }
2727 }
2728 \cs_new:Npn \@@_process_S_argument:nn #1#2
2729 {
2730 \tl_set:Nx \ProcessedArgument
2731 {
2732 \fp_eval:n
2733 {
2734 \tl_if_empty:nTF {#2} { 1 } {#2}
2735 * \l_@@_global_scale_fp
2736 * \use:c { l_@@_#1_scale_fp }
2737 }
2738 }
2739 \@@_set_scale_abs_tl:n { \ProcessedArgument }
2740 }
2741 % \end{macrocode}
2742 % \end{macro}
2743 %
2744 % \begin{macro}{ \@@_parse_command_options:nn }
2745 % This command helps setting the default value if empty brackets are
2746 % given. The code is copied from the \Package{xparse} package and
2747 % edited to fit my purpose. This command gets the input from the
2748 % options-definition.
2749 % \begin{macrocode}
2750 \cs_new_protected:Npn \@@_parse_command_options:nn #1#2
2751 {
2752 \bool_set_false:N \l_@@_argument_parser_error_bool
2753 \clist_clear:N \l_@@_symbol_options_clist
2754 \tl_set:Nn \l_@@_symbol_name_tl {#1}
2755 \@@_parse_command_options_parse:n #2
2756 \q_recursion_tail \q_recursion_tail \q_recursion_tail \q_recursion_stop
2757 }
2758 % \end{macrocode}
2759 % \end{macro}
2760 %
2761 % \begin{macro}{ \@@_parse_command_options_parse:n }
2762 % This command (also copied) goes through the option-definitions (in
2763 % my case only 'm' and 'O\{...\}') character for character. If 'O'
2764 % is found a (somehow) special command is used.
2765 % \begin{macrocode}
2766 \cs_new_protected:Npn \@@_parse_command_options_parse:n #1
2767 {
2768 \quark_if_recursion_tail_stop:n {#1}
2769 \cs_if_exist_use:cF { @@_check_option_type_ \tl_to_str:n {#1} : }
2770 {
2771 \msg_error:nnn { tikzsymbols } { unknown-argument-type } {#1}
2772 \bool_set_true:N \l_@@_argument_parser_error_bool
2773 \use_none_delimit_by_q_recursion_stop:w
2774 }
2775 }
2776 % \end{macrocode}
2777 % \end{macro}
2778 %
2779 % \begin{macro} { \@@_check_option_type_m: , \@@_check_option_type_B: , \@@_check_option_type_S: }
2780 % Some wrapper macros. They are needed to check if the argument type is valid.
2781 % \begin{macrocode}
2782 \cs_new:Npn \@@_check_option_type_m:
2783 {
2784 \int_incr:c { l_@@_ \l_@@_symbol_name_tl _nr_arguments_int }
2785 \@@_parse_option_type_m:
2786 }
2787 \cs_new:Npn \@@_check_option_type_B:
2788 {
2789 \int_incr:c { l_@@_ \l_@@_symbol_name_tl _nr_arguments_int }
2790 \@@_parse_option_type_B:n
2791 }
2792 \cs_new:Npn \@@_check_option_type_S:
2793 {
2794 \int_incr:c { l_@@_ \l_@@_symbol_name_tl _nr_arguments_int }
2795 \@@_parse_option_type_S:V \l_@@_symbol_name_tl
2796 }
2797 % \end{macrocode}
2798 % \end{macro}
2799 %
2800 % \begin{macro}{ \@@_parse_option_type_m: }
2801 % Just saves \enquote{m} in a clist. Does nothing more.
2802 % \begin{macrocode}
2803 \cs_new:Npn \@@_parse_option_type_m:
2804 {
2805 \clist_put_right:Nn \l_@@_symbol_options_clist { m }
2806 \@@_parse_command_options_parse:n
2807 }
2808 % \end{macrocode}
2809 % \end{macro}
2810 %
2811 % \begin{macro}{ \@@_parse_option_type_B:n }
2812 % Used if the \enquote{B} argument is found. Saves the default value of
2813 % the argument in \Makro{@@_process_B_argument:nn}.
2814 % \begin{macrocode}
2815 \cs_new_protected:Npn \@@_parse_option_type_B:n #1
2816 {
2817 \quark_if_recursion_tail_stop_do:nn {#1}
2818 {
2819 \msg_error:nnxx { tikzsymbols } { bad-argument-spec }
2820 { \l_@@_symbol_name_tl }{ \tl_to_str:n {#1} }
2821 \bool_set_true:N \l_@@_argument_parser_error_bool
2822 \use_none_delimit_by_q_recursion_stop:w
2823 }
2824 \clist_put_right:Nn \l_@@_symbol_options_clist
2825 { >{ \@@_process_B_argument:nn {#1} } O{#1} }
2826 \@@_parse_command_options_parse:n
2827 }
2828 % \end{macrocode}
2829 % \end{macro}
2830 %
2831 % \begin{macro}{ \@@_parse_option_type_S:n , \@@_parse_option_type_S:V }
2832 % The |S| stands for \enquote{Scale}. Does somehting similar to \enquote{B}.
2833 % The difference is that it gets the symbol-name as |#1|.
2834 % \begin{macrocode}
2835 \cs_new_protected:Npn \@@_parse_option_type_S:n #1
2836 {
2837 \quark_if_recursion_tail_stop_do:nn {#1}
2838 {
2839 \msg_error:nnn { tikzsymbols } { internal-message }
2840 { S-type-wrong-argument }
2841 }
2842 \clist_put_right:Nn \l_@@_symbol_options_clist
2843 { >{ \@@_process_S_argument:nn {#1} } O{ 1 } }
2844 \@@_parse_command_options_parse:n
2845 }
2846 \cs_generate_variant:Nn \@@_parse_option_type_S:n { V }
2847 % \end{macrocode}
2848 % \end{macro}
2849 %
2850 %
2851 % \begin{macro}{ \@@_Declare_Document_Command:nnn }
2852 % Main Command to define the command of this package. It runs
2853 % through the second input (argument specifications), stores the
2854 % arguments in a \verb|\l_@@_symbol_options_clist| and adds
2855 % \verb|>{ \@@_process_B_argument:nn {#2} }| if an optional argument is
2856 % found. Yeah. I think the rest is self-explaining.
2857 % \begin{macrocode}
2858 \cs_new:Npn \@@_Declare_Document_Command:nnn #1#2#3
2859 {
2860 \fp_zero_new:c { l_@@_ #1 _scale_fp }
2861 \fp_set:cn { l_@@_ #1 _scale_fp } { 1.0 }
2862 \int_zero_new:c { l_@@_ #1 _nr_arguments_int }
2863 \@@_parse_command_options:nn {#1} {#2}
2864 \bool_if:NF \l_@@_argument_parser_error_bool
2865 {
2866 \exp_args:Ncx \DeclareDocumentCommand
2867 { \g_@@_command_prefix_tl #1 }
2868 { \clist_use:Nn \l_@@_symbol_options_clist { } }
2869 {
2870 \cs_if_exist:NT \tikzsymbolsaftersymbolinput
2871 {
2872 \msg_error:nn { tikzsymbols } { tikzsymbolsaftersymbolinput }
2873 }
2874 #3
2875 \tl_use:N \l_@@_tikzsymbols_after_symbol_tl
2876 }
2877 }
2878 }
2879 % \end{macrocode}
2880 % \end{macro}
2881 %
2882 %
2883 % \begin{macro}{ \@@_Declare_Document_Commands:nnnn }
2884 % Needed for cooking-symbols. Automatically defines the english name
2885 % given in the second argument.
2886 % \begin{macrocode}
2887 \cs_new:Npn \@@_Declare_Document_Commands:nnnn #1#2#3#4
2888 {
2889 \clist_gput_right:Nn
2890 \g_tikzsymbols_list_of_printing_cooking_with_argument_commands_clist
2891 {
2892 \cs{#1} & \cs{#2} & \oarg{scale} & \tikzsymbolsuse{#1} \\
2893 }
2894 \prop_gput:Nnn \g_@@_english_commands_prop {#2} {#1}
2895 \@@_Declare_Document_Command:nnn {#1} {#3} {#4}
2896 \@@_let:nn {#2} {#1}
2897 }
2898 % \end{macrocode}
2899 % \end{macro}
2900 %
2901 %
2902 %
2903 %
2904 %
2905 %
2906 %
2907 %
2908 %
2909 % \begin{macro}{ \@@_let:nn }
2910 % Used to define the english commands. It's a simple
2911 % \Makro{cs_set_eq:cc} adding the prefix to the command-name.
2912 % \begin{macrocode}
2913 \cs_new:Npn \@@_let:nn #1#2
2914 {
2915 \cs_set_eq:cc { \g_@@_command_prefix_tl #1 } { \g_@@_command_prefix_tl #2 }
2916 }
2917 % \end{macrocode}
2918 % \end{macro}
2919 %
2920 %
2921 %
2922 % \subsection{Public commands}
2923 %
2924 %
2925 % \begin{macro}{\tikzsymbolsscaleabs,\tikzsymbolssetscaleabs}
2926 % The public version of |\@@_set_scale_abs_tl:n| and |\l_@@_scale_abs_tl|.
2927 % \begin{macrocode}
2928 \tl_new:N \tikzsymbolsscaleabs
2929 \cs_new_protected:Npn \tikzsymbolssetscaleabs #1
2930 { \@@_set_scale_abs_tl:n {#1} }
2931 % \end{macrocode}
2932 % \end{macro}
2933 % \begin{macro}{\tikzsymbolsdefinesymbol}
2934 % A wrapper around |\@@_Declare_Document_Command:nnn|.
2935 % \begin{macrocode}
2936 \cs_new:Npn \tikzsymbolsdefinesymbol #1#2#3
2937 {
2938 \exp_args:Nx
2939 \@@_Declare_Document_Command:nnn { \tl_trim_spaces:n {#1} } {#2} {#3}
2940 }
2941 % \end{macrocode}
2942 % \end{macro}
2943 % \begin{macro}{\tikzsymbolsprovideandusesavebox, \tikzsymbols_create_draftbox:nn, \tikzsymbols_create_squared_draftbox:n}
2944 % Some more wrappers
2945 % \begin{macrocode}
2946 \cs_new:Npn \tikzsymbolsprovideandusesavebox #1#2
2947 { \@@_provide_savebox_and_use:nn {#1} {#2} }
2948 \cs_new:Npn \tikzsymbols_create_draftbox:nn #1#2
2949 { \@@_create_draftbox:nn {#1} {#2} }
2950 \cs_new:Npn \tikzsymbols_create_squared_draftbox:n #1
2951 { \@@_create_squared_draftbox:n {#1} }
2952 % \end{macrocode}
2953 % \end{macro}
2954 %
2955 %
2956 %
2957 %
2958 %\subsection{Tree commands}
2959 %\label{sec:tree-commands}
2960 %
2961 %
2962 %
2963 % \begin{macro}{ \c_@@_tikz_set_tl }
2964 % First I define \verb|\c_@@_tikz_set_tl|, it contains the setup for
2965 % the tree. This definition is pretty much the definition from the
2966 % \Package{tikz} package.
2967 % \begin{macrocode}
2968 \tl_const:Nn \c_@@_tikz_set_tl
2969 {
2970 \pgfkeys
2971 {
2972 /tikz/.cd ,
2973 @@_ld/.style={ level ~ distance=#1ex },
2974 @@_lw/.style={ line ~ width=#1ex },
2975 level ~ 1/.style={ @@_ld=0.60, @@_trunk, @@_lw=0.1 ,sibling ~ angle=60 },
2976 level ~ 2/.style={ @@_ld=0.20, @@_trunk!80!@@_leaf ~ a, @@_lw=.073,sibling ~ angle=70 },
2977 level ~ 3/.style={ @@_ld=0.25, @@_trunk!60!@@_leaf ~ a, @@_lw=.05,sibling ~ angle=70 },
2978 level ~ 4/.style={ @@_ld=0.10, @@_trunk!40!@@_leaf ~ a, @@_lw=.025,sibling ~ angle=60 },
2979 level ~ 5/.style={ @@_ld=0.15, @@_trunk!20!@@_leaf ~ a, @@_lw=.02,sibling ~ angle=60 },
2980 level ~ 6/.style={ @@_ld=0.08, @@_leaf ~ a, @@_lw=.021,sibling ~ angle=60 },
2981 }
2982 }
2983 % \end{macrocode}
2984 % \end{macro}
2985 %
2986 %
2987 % \begin{macro}{ \@@_Basic_Tree_aux:nnnnn }
2988 % I am still using a similar construction as in the \LaTeXe\
2989 % code. Inside this command is safed either
2990 % \Makro{@@_Basic_Tree_on:nnnnn} or \Makro{@@_Basic_Tree_off:nnnnn}
2991 % depending on the package options.
2992 % \begin{macrocode}
2993 \cs_set:Npn \@@_Basic_Tree_aux:nnnnn
2994 {
2995 \bool_if:NTF \l_@@_if_opt_draft_bool
2996 { \@@_Basic_Tree_draft:nnnnn }
2997 {
2998 \bool_if:NTF \g_@@_if_opt_tree_print_bool
2999 { \@@_Basic_Tree_on:nnnnn }
3000 { \@@_Basic_Tree_off:nnnnn }
3001 }
3002 }
3003 % \end{macrocode}
3004 % \end{macro}
3005 %
3006 %
3007 % \begin{macro}{ \@@_Basic_Tree_off:nnnnn }
3008 % This command creates not only the plain vanilla draftbox, but also a box
3009 % drawn by \Package{tikz} using the colors of the tree to color the
3010 % lines. If the last argument is 'leaf', the box has a bottom line, if
3011 % it is empty the bottom line disappears.
3012 % \begin{macrocode}
3013 \cs_new:Npn \@@_Basic_Tree_draft:nnnnn #1#2#3#4#5
3014 {
3015 \group_begin:
3016 \@@_set_scale_abs_tl:n { #1pt + 0.02ex }
3017 \tl_set:Nn \l_tmpa_tl {#5}
3018 \tl_if_eq:NNTF \c_@@_leaf_tl \l_tmpa_tl
3019 {
3020 \@@_create_draftbox:nn
3021 { (1.669825ex+0.4pt) * \l_@@_scale_abs_tl }
3022 { (1.412645 ex + 0.2pt) * \l_@@_scale_abs_tl } %% 0.2pt = -0.2pt+0.4pt
3023 }{
3024 \@@_create_draftbox:nn
3025 { (1.39223ex +0.4pt) * \l_@@_scale_abs_tl }
3026 { (1.27265ex + 0.2pt) * \l_@@_scale_abs_tl } %% 0.2pt = -0.2pt+0.4pt
3027 }
3028 \group_end:
3029 }
3030 \cs_new:Npn \@@_Basic_Tree_off:nnnnn #1#2#3#4#5
3031 {
3032 \group_begin:
3033 \@@_set_scale_abs_tl:n { #1pt + 0.02ex }
3034 \tl_set:Nn \l_tmpa_tl {#5}
3035 \begin{tikzpicture}[ /@@ , scale=#1+0.02ex,x=1ex,y=1ex,
3036 line ~ width=0.4pt * \l_@@_scale_abs_tl]
3037 \tl_if_eq:NNTF \c_@@_leaf_tl \l_tmpa_tl
3038 {
3039 \draw[#2] (-0.8386,0+0.2pt) -- (-0.8386,1.42);
3040 \draw[#3] (-0.8386,1.42) -- (0.8386,1.42);
3041 \draw[#4] (0.8386,1.42) -- (0.8386,0+0.2pt);
3042 \draw[#3] (0.8386,0+0.2pt) -- (0,0+0.2pt);
3043 \draw[#4] (0,0+0.2pt) -- (-0.8386,0+0.2pt);
3044 }{
3045 \draw[#2] (-0.6998,0+0.2pt) -- (-0.6998,0.68+0.6);
3046 \draw[#3] (-0.6998,0.68+0.6) -- (0.6998,0.68+0.6);
3047 \draw[#4] (0.6998,0.68+0.6) -- (0.6998,0+0.2pt);
3048 }
3049 \end{tikzpicture}%
3050 \group_end:
3051 }
3052 % \end{macrocode}
3053 % \end{macro}
3054 %
3055 %
3056 %
3057 % \begin{macro}{ \@@_Basic_Tree_on:nnnnn }
3058 % Prints the tree in all its glory. Again, this code is more or less
3059 % \Makro{l_@@_scale_negative_bool} is used in here.
3060 % copy and pasted from the \Package{tikz} manual.
3061 % \begin{macrocode}
3062 \cs_new:Npn \@@_Basic_Tree_on:nnnnn #1#2#3#4#5
3063 {
3064 \group_begin:
3065 % % \@@_set_scale_abs_tl:n {#1}
3066 \fp_compare:nNnT {#1} < { 0 } { \bool_set_true:N \l_@@_scale_negative_bool }
3067 \tl_set:Nn \l_tmpa_tl {#5}
3068 \tl_use:N \c_@@_tikz_set_tl
3069 \colorlet { @@_trunk } {#2}
3070 \colorlet { @@_leaf ~ a } {#3}
3071 \colorlet { @@_leaf ~ b } {#4}
3072 \begin{tikzpicture}[ /@@ , x=1ex , y=1ex , line ~ width=0.07ex]
3073 \pgfarrowsdeclare{leaf}{leaf}
3074 { \pgfarrowsleftextend { -0.1ex } \pgfarrowsrightextend { -0.05ex } }
3075 {
3076 \pgfpathmoveto { \pgfpoint { -0.01ex } { 0ex } }
3077 \pgfpatharc { 150 } { 30 } { 0.08ex }
3078 \pgfpatharc {-30 } {-150 } { 0.08ex }
3079 \pgfusepathqfill
3080 }
3081 \tl_if_eq:NNTF \c_@@_leaf_tl \l_tmpa_tl
3082 {
3083 \draw[transparent , scale=#1+0.02ex , line ~ width=0.4pt* \l_@@_scale_abs_tl ]
3084 (-0.8386,0+0.2pt) rectangle (0.8386, 1.42);
3085 }{
3086 \draw[transparent , scale=#1+0.02ex , line ~ width=0.4pt* \l_@@_scale_abs_tl ]
3087 (-0.6998,0+0.2pt) rectangle (0.6998,0.68+0.6);
3088 }
3089 \pgflowlevel { \pgftransformscale { #1 + 0.02ex } }
3090 {
3091 \coordinate (root) [grow ~ cyclic , rotate=90] child
3092 {
3093 child [line ~ cap=round] foreach \a in { 0 , 1 , 2 }
3094 {
3095 child ~ foreach \b in { 0 , 1 }
3096 {
3097 child ~ foreach \c in { 0 , 1 , 2 }
3098 { child ~ foreach \d in { 0 , 1 }
3099 {
3100 child ~ foreach ~ \leafcolor in { @@_leaf ~ a , @@_leaf ~ b }
3101 { edge ~ from ~ parent ~ [color=\leafcolor,-#5]}
3102 }
3103 }
3104 }
3105 }
3106 edge ~ from ~ parent [shorten ~ >=-0.05ex, serif ~ cm- , line ~ cap=butt]
3107 };
3108 }
3109 \end{tikzpicture}
3110 % \bool_set_false:N \l_@@_scale_negative_bool
3111 \group_end:
3112 }
3113 % \end{macrocode}
3114 % \end{macro}
3115 %
3116 % Thats the end of our tree drawing commands. \Makro{BasicTree}
3117 % itself is defined later.
3118 %
3119 % \subsection{cooking utensils}
3120 %
3121 % Now let's define the cooking utensils (or cooking tools,
3122 % whatever).
3123 %
3124 % \begin{macro}{ \Kochtopf , \pot }
3125 % I think this was my first cooking utensil I made. It's a pot
3126 % containing boiling water. To create the german and english command
3127 % at the same time I use \Makro{@@_Declare_Document_Commands:nnnn}.
3128 % The buildup of this commands, as you saw ob subsection above, is
3129 % alway the same. First is the definition of the savebox. Inside the
3130 % absolute scaling value is safed and then checked if the plain
3131 % vanilla draft-boxes or the tool itself should be printed. The
3132 % draftbox is created via \Makro{@@_create_draftbox:nn} and contains
3133 % the necessary dimensions so that the output of the surroundings of
3134 % the symbol doesn't change\footnote{English, B\"a\"ahh!}. The
3135 % symbol is created using the 'tikzpicture' environment. Yup.
3136 % \begin{macrocode}
3137 \@@_Declare_Document_Commands:nnnn { Kochtopf } { pot } { S }
3138 {
3139 \@@_provide_savebox_and_use:nn { Kochtopf_#1 }
3140 {
3141 % % \@@_set_scale_abs_tl:n {#1}
3142 \bool_if:NTF \l_@@_if_opt_draft_bool
3143 {
3144 \@@_create_draftbox:nn
3145 { 2.47001ex * \l_@@_scale_abs_tl }
3146 { 1.577ex * \l_@@_scale_abs_tl }
3147 }{
3148 \begin{tikzpicture}[ /@@ , x=2ex, y=2.2ex,
3149 line ~ width=0.07ex * \l_@@_scale_abs_tl ,
3150 scale=#1 ]
3151 % \end{macrocode}
3152 % Let's draw the pot.
3153 % \begin{macrocode}
3154 \draw[rounded ~ corners=0.2ex * \l_@@_scale_abs_tl] (0,0.5) -- (0,0) -- (1,0) -- (1,0.5);
3155 \draw (0,0.4) arc [start ~ angle=90, end ~ angle=270, radius=0.1];
3156 \draw (1,0.4) arc [start ~ angle=90, end ~ angle=-90, radius=0.1];
3157 \draw (0,0.5) -- (1,0.5) .. controls (1,0.6) and (0,0.6) .. (0,0.5);
3158 \draw (0.6,0.585) arc [start ~ angle=0, end ~ angle=180, radius=0.1];
3159 % \end{macrocode}
3160 % Let's draw the water.
3161 % \begin{macrocode}
3162 \draw[decorate, decoration=
3163 { snake , amplitude=0.12ex*\l_@@_scale_abs_tl , segment ~ length=0.93ex * \l_@@_scale_abs_tl } ]
3164 (0,0.35) -- (1,0.35);
3165 % \end{macrocode}
3166 % Now the bubbles are printed.
3167 % \begin{macrocode}
3168 \draw (0.45,0.1) circle [radius=0.04];
3169 \draw (0.7,0.11) circle [radius=0.04];
3170 \draw (0.13, 0.125) circle [radius=0.04];
3171 \draw (0.3,0.2) circle [radius=0.04];
3172 \draw (0.88,0.2) circle [radius=0.04];
3173 \draw (0.1,0.25) circle [radius=0.04];
3174 \draw (0.6,0.25) circle [radius=0.04];
3175 \end{tikzpicture}
3176 }
3177 }
3178 }
3179 % \end{macrocode}
3180 % \end{macro}
3181 %
3182 %
3183 %
3184 % \begin{macro}{ \Bratpfanne , \fryingpan }
3185 % I think I wont add text to every command because I think a
3186 % description is not really necessary.
3187 % \begin{macrocode}
3188 \@@_Declare_Document_Commands:nnnn { Bratpfanne } { fryingpan } { S }
3189 {
3190 \@@_provide_savebox_and_use:nn { Bratpfanne_#1 }
3191 {
3192 % % \@@_set_scale_abs_tl:n {#1}
3193 \bool_if:NTF \l_@@_if_opt_draft_bool
3194 {
3195 \@@_create_draftbox:nn
3196 { 3.55349ex * \l_@@_scale_abs_tl }
3197 { 1.4525ex * \l_@@_scale_abs_tl }
3198 }{
3199 \begin{tikzpicture}
3200 [
3201 /@@ ,
3202 x=0.7ex , y=1.4ex , line ~ width=0.07ex * \l_@@_scale_abs_tl,
3203 scale=#1 , decoration=
3204 {
3205 snake , amplitude = 0.05ex * \l_@@_scale_abs_tl ,
3206 segment ~ length = 0.408ex * \l_@@_scale_abs_tl
3207 }
3208 ]
3209 % \end{macrocode}
3210 % Drawing the actual fryingpan.
3211 % \begin{macrocode}
3212 \draw[rounded ~ corners = 0.07ex * \l_@@_scale_abs_tl]
3213 (-1,0) -- (1,0) -- (1.5,0.4) -- (-1.5,0.4) -- cycle;
3214 \draw[line ~ width = 0.037ex * \l_@@_scale_abs_tl , rounded ~ corners=0.023ex * \l_@@_scale_abs_tl]
3215 (-1.4,0.3) -- (-3.5,0.3) -- (-3.5,0.25) -- (-1.3,0.25);
3216 \draw[line ~ width=0.023ex * \l_@@_scale_abs_tl ]
3217 (-1.1,0.1) -- (1.1,0.1);
3218 % \end{macrocode}
3219 % The following code prints the \dots\ ahm \dots\ Hitzwellen die aus
3220 % der Pfanne aufsteigen (oder so).
3221 % \begin{macrocode}
3222 \foreach \l_tmpa_tl in { -0.3, 0.3, -1 , 1 }
3223 \draw[line ~ width=0.035ex * \l_@@_scale_abs_tl, decorate] ( \l_tmpa_tl , 0.5 ) -- ( \l_tmpa_tl , 1 );
3224 \end{tikzpicture}%
3225 }
3226 }
3227 }
3228 % \end{macrocode}
3229 % \end{macro}
3230 %
3231 %
3232 %
3233 %
3234 % \begin{macro}{ \Schneebesen , \eggbeater }
3235 % \begin{macrocode}
3236 \@@_Declare_Document_Commands:nnnn { Schneebesen } { eggbeater } { S }
3237 {
3238 \@@_provide_savebox_and_use:nn { Schneebesen_#1 }
3239 {
3240 % % \@@_set_scale_abs_tl:n {#1}
3241 \bool_if:NTF \l_@@_if_opt_draft_bool
3242 {
3243 \@@_create_draftbox:nn
3244 { 0.56969 ex * \l_@@_scale_abs_tl }
3245 { 1.57985ex * \l_@@_scale_abs_tl }
3246 }{
3247 \begin{tikzpicture}
3248 [
3249 /@@ ,
3250 y=2.1ex,x=1.4ex, scale=#1,
3251 line ~ width = 0.01ex * \l_@@_scale_abs_tl * 0.97
3252 ]
3253 \foreach \l_tmpa_fp in { -0.2 , -0.15, -0.1, -0.05, 0, 0.05, 0.1, 0.15, 0.2 }
3254 \draw (0,0) .. controls ( \l_tmpa_fp , 0.0) and ( \l_tmpa_fp ,0.2) .. (0,0.4);
3255 \fill
3256 [
3257 line ~ width = 0.05ex * \l_@@_scale_abs_tl ,
3258 rounded ~ corners=0.07ex* \l_@@_scale_abs_tl
3259 ]
3260 (-0.05,0.37) -- (0.05,0.37) -- (0.05,0.75) -- (-0.05,0.75) -- cycle;
3261 \end{tikzpicture}%
3262 }
3263 }
3264 }
3265 % \end{macrocode}
3266 % \end{macro}
3267 %
3268 %
3269 %
3270 %
3271 % \begin{macro}{ \Sieb , \sieve }
3272 % A sieve, now the lines are not drawn manually, but using the power
3273 % of trigonometric functions and \Package{tikz}. Wasn't really
3274 % necessary, but I did it anyway.
3275 % \begin{macrocode}
3276 \@@_Declare_Document_Commands:nnnn { Sieb } { sieve } { S }
3277 {
3278 \@@_provide_savebox_and_use:nn { Sieb_#1 }
3279 {
3280 % % \@@_set_scale_abs_tl:n {#1}
3281 \bool_if:NTF \l_@@_if_opt_draft_bool
3282 {
3283 \@@_create_draftbox:nn
3284 { 3.47799 ex * \l_@@_scale_abs_tl }
3285 { 1.17501 ex * \l_@@_scale_abs_tl }
3286 }{
3287 \begin{tikzpicture}
3288 [
3289 /@@ ,
3290 x=2.8ex, y=2.8ex,line ~ width=0.02ex * \l_@@_scale_abs_tl , scale=#1
3291 ]
3292 % \end{macrocode}
3293 % Drawing a simple line to hold the sieve.
3294 % \begin{macrocode}
3295 \draw[line ~ width=0.09ex* \l_@@_scale_abs_tl ] (-0.2,0) -- (1.01,0);
3296 % \end{macrocode}
3297 % Drawing halved circles with decreasing radius.
3298 % \begin{macrocode}
3299 \foreach \l_tmpa_fp in { 0.2 , 0.25 , ... , 0.551 }
3300 \draw (\l_tmpa_fp,0) arc [start ~ angle=180, end ~ angle=360, radius=0.6-\l_tmpa_fp];
3301 % \end{macrocode}
3302 % Drawing the vertical lines of the sieve. Ahm, I may should explain
3303 % how this code works. \Makro{l_tmpa_fp} (again misused I think)
3304 % contains the starting point of the lines which will go from top to
3305 % bottom.
3306 %
3307 % Our sieve is looking like this at the moment:
3308 %
3309 %\begin{center}
3310 %\begin{tikzpicture}[scale=5]
3311 % \draw[very thick]
3312 % (-0.2,0) node [ anchor=east ]{-0.2} -- (1.01,0) node [ anchor=west ]{1.01};
3313 % \draw[dashed] (0.6,-0.5) -- (0.6,0.1);
3314 % \draw (0.6,0) node [anchor=south west] {0.6};
3315 % \foreach \x in { 0.2 , 0.25 , ... , 0.551 }
3316 % \draw (\x,0) arc [start angle=180, end angle=360, radius=0.6-\x];
3317 %\end{tikzpicture}
3318 %\end{center}
3319 %
3320 % The largest circle end at the coordinate (1,0) and so its radius is $r=0.4$.
3321 % Now we want to draw a line from the beginning of a smaller circle
3322 % to the largest circle. We take for example the next smaller circle:
3323 %
3324 % \begin{center}
3325 %\begin{tikzpicture}[scale=5]
3326 % \draw[very thick] (-0.2,0) node [ anchor=east ]{-0.2} -- (1.01,0) node [ anchor=west ]{1.01};
3327 % \draw[dashed] (0.6,-0.5) -- (0.6,0.1);
3328 % \draw (0.6,0) node [anchor=south west] {0.6};
3329 % \draw[dashed] (0.2,0) arc [start angle=180, end angle=360, radius=0.4];
3330 % \draw (0.3,0) node[above=1pt]{0.3} arc [start angle=180, end angle=360, radius=0.6-0.3] node [above]{0.9};
3331 % \draw[brown,dashed,->] (0.6,0) -- node[right]{0.4} ( {0.6 - cos ( 45 ) *0.4 },{ sin ( -45 )*0.4 });
3332 %\end{tikzpicture}
3333 % \end{center}
3334 %
3335 % The dashed line shows the largest circle. The only things we know are
3336 % the length $l$ from the middle of the circle (0.6 , 0) to the starting point (0.9 , 0):
3337 % $l=0.9-0.6$ and we know the radius of the circle: $r=0.4$. The next picture \dots
3338 % pictures this:
3339 %
3340 % \begin{center}
3341 %\begin{tikzpicture}[scale=5]
3342 % \draw[thick] (-0.2,0) -- (1.01,0) ;
3343 % \draw[dashed] (0.6,-0.5) -- (0.6,0.1);
3344 % \draw[dashed] (0.2,0) arc [start angle=180, end angle=360, radius=0.4];
3345 % \draw (0.3,0) arc [start angle=180, end angle=360, radius=0.6-0.3] ;
3346 % \draw[green,very thick] (0.6,0) -- node [above,fill=white] {$l= 0.9-0.6=0.3$} (0.9,0);
3347 % \draw[red,very thick] (0.9,0) -- node [right,fill=white] {$h=?$} ( 0.9, { -0.4 * sin( acos( ( 0.9 - 0.6 ) /0.4) ) } );
3348 % \draw[brown] (0.6,0) -- node [left=8pt,fill=white] {$r=0.4$} ( 0.9, { -0.4 * sin( acos( ( 0.9 - 0.6 ) /0.4) ) } );
3349 % \draw[orange,very thick] (0.8,0) node [anchor=north east] {$\alpha$} arc [start angle=0, end angle={-acos( ( 0.9 - 0.6 ) /0.4)}, radius=0.2];
3350 %\end{tikzpicture}
3351 % \end{center}
3352 %
3353 % We have the length and the radius and need the height $h$. The easiest way would
3354 % be the use of the sinus: $\sin(\alpha)=\frac{h}{r}$, but we don't have $\alpha$,
3355 % so we have to make an extra calculation:
3356 %
3357 %\begin{align}
3358 % \cos(\alpha) &= \frac{ l }{ r } = \frac{0.9-0.6}{0.4} && / \arccos(...) \\
3359 % \alpha &= \arccos\bigg( \frac{0.9-0.6}{0.4} \bigg)
3360 %\end{align}
3361 %
3362 % Now we have the angle $\alpha$ and can calculate the height $h$:
3363 %
3364 %\begin{align}
3365 % -\sin(\alpha) &= \frac { h } { 0.4 } && / \cdot 0.4 \\
3366 % h &= -0.4 \cdot \sin(\alpha) && / \alpha = ... \\
3367 % h &= -0.4 \cdot \sin\bigg[\arccos\bigg( \frac{0.9-0.6}{0.4} \bigg)\bigg]
3368 %\end{align}
3369 %
3370 % And to use it as a overall formula:
3371 %
3372 %\begin{equation}
3373 % h = -0.4 \cdot \sin\bigg[\arccos\bigg( \frac{ \backslash l\_tmpa\_fp -0.6 }{0.4} \bigg)\bigg]
3374 %\end{equation}
3375 %
3376 % Using this formula we can draw the line (\textbackslash l\_tmpa\_fp,0) -{}- (\textbackslash l\_tmpa\_fp,h):
3377 %
3378 % Something similar is used for the horizontal lines.
3379 %
3380 % \begin{macrocode}
3381 \foreach \l_tmpa_fp in { 0.95,0.9,...,0.249 }
3382 \draw (\l_tmpa_fp,0) --
3383 ( \l_tmpa_fp, { -0.4 * sin( acos( ( \l_tmpa_fp - 0.6 ) /0.4) ) } );
3384 \foreach \y in { -0.05 , -0.1 , ... , -0.351 }
3385 \pgfmathsetmacro{\x}{0.4*cos( asin( \y /0.4 ) )}
3386 \draw ({0.6 - \x },\y) -- ({ 0.6 +\x},\y);
3387 \end{tikzpicture}%
3388 }
3389 }
3390 }
3391 % \end{macrocode}
3392 % I hope I was able to explain it.
3393 % \end{macro}
3394 %
3395 %
3396 %
3397 %
3398 % \begin{macro}{ \Purierstab , \blender }
3399 % Ein P\"urierstab \dots\ ja.
3400 % \begin{macrocode}
3401 \@@_Declare_Document_Commands:nnnn { Purierstab } { blender } { S }
3402 {
3403 \@@_provide_savebox_and_use:nn { Purierstab_#1 }
3404 {
3405 % % \@@_set_scale_abs_tl:n {#1}
3406 \bool_if:NTF \l_@@_if_opt_draft_bool
3407 {
3408 \@@_create_draftbox:nn
3409 { 0.76ex * \l_@@_scale_abs_tl }
3410 { 1.575ex * \l_@@_scale_abs_tl }
3411 }{
3412 \begin{tikzpicture}
3413 [
3414 /@@ ,
3415 x=2.3ex , y=2.2ex, line ~ width=0.07ex * \l_@@_scale_abs_tl ,scale = #1
3416 ]
3417 \draw[rounded ~ corners=0.07ex* \l_@@_scale_abs_tl ]
3418 (0,0) -- (0.3,0) -- (0.15,0.1) --cycle;
3419 \fill[rounded ~ corners=0.07ex* \l_@@_scale_abs_tl ]
3420 (0.15,0.3) -- (0.24,0.4) -- (0.24,0.7) -- (0.06,0.7) -- (0.06,0.4) -- cycle;
3421 \draw (0.15,0.4) -- (0.15,0.1);
3422 \end{tikzpicture}%
3423 }
3424 }
3425 }
3426 % \end{macrocode}
3427 % \end{macro}
3428 %
3429 %
3430 %
3431 %
3432 % \begin{macro}{ \Dreizack , \trident }
3433 % A trident, an important tool to check if potatoes are cooked enough.
3434 % \begin{macrocode}
3435 \@@_Declare_Document_Commands:nnnn { Dreizack } { trident } { S }
3436 {
3437 \@@_provide_savebox_and_use:nn { Dreizack_#1 }
3438 {
3439 % % \@@_set_scale_abs_tl:n {#1}
3440 \bool_if:NTF \l_@@_if_opt_draft_bool
3441 {
3442 \@@_create_draftbox:nn
3443 { 0.265ex * \l_@@_scale_abs_tl }
3444 { 1.575ex * \l_@@_scale_abs_tl }
3445 }{
3446 \begin{tikzpicture}
3447 [
3448 /@@ ,
3449 x=2.3ex , y=2.2ex , line ~ width=0.035ex * \l_@@_scale_abs_tl , scale = #1
3450 ]
3451 \fill[ rounded ~ corners=0.07ex * \l_@@_scale_abs_tl * 0.99 ]
3452 (0,0) -- (0,0.4) -- (0.1,0.4) -- (0.1,0.0) -- cycle;
3453 \draw (0.05,0) -- (0.05,0.7);
3454 \draw[rounded ~ corners=0.07ex * \l_@@_scale_abs_tl *( 1 - \l_@@_scale_abs_tl /50 ]
3455 (0,0.7) -- (0,0.55) -- (0.05,0.55) -- (0.1,0.55) -- (0.1,0.7);
3456 \end{tikzpicture}%
3457 }
3458 }
3459 }
3460 % \end{macrocode}
3461 % \end{macro}
3462 %
3463 %
3464 %
3465 %
3466 % \begin{macro}{ \Backblech , \bakingplate }
3467 % With holes.
3468 % \begin{macrocode}
3469 \@@_Declare_Document_Commands:nnnn { Backblech } { bakingplate } { S }
3470 {
3471 \@@_provide_savebox_and_use:nn { Backblech_#1 }
3472 {
3473 % % \@@_set_scale_abs_tl:n {#1}
3474 \bool_if:NTF \l_@@_if_opt_draft_bool
3475 {
3476 \@@_create_draftbox:nn
3477 { 2.31545ex * \l_@@_scale_abs_tl }
3478 { 1.57ex * \l_@@_scale_abs_tl }
3479 }{
3480 \begin{tikzpicture}
3481 [
3482 /@@ ,
3483 x=6.53ex , y=5ex , line ~ width=0.07ex * \l_@@_scale_abs_tl , scale = #1
3484 ]
3485 \filldraw[rounded ~ corners=0.09ex * \l_@@_scale_abs_tl ] (0,0) rectangle (0.3,0.3);
3486 \foreach \xI/\xII in { 0.1/-0.025 , 0.2/0.325 }
3487 \draw[rounded ~ corners=0.07ex * \l_@@_scale_abs_tl , line ~ width=0.03ex* \l_@@_scale_abs_tl ]
3488 (\xI,0) -- (\xII,0) -- (\xII,0.3) -- (\xI,0.3);
3489 \foreach \@@_BackblechlochX in { 0.007 , 0.293 }
3490 \foreach \@@_BackblechlochY in { 0.007 , 0.293 }
3491 \fill[white] (\@@_BackblechlochX, \@@_BackblechlochY) circle [radius=0.02ex];
3492 \end{tikzpicture}%
3493 }
3494 }
3495 }
3496 % \end{macrocode}
3497 % \end{macro}
3498 %
3499 %
3500 %
3501 %
3502 % \begin{macro}{ \Ofen , \oven }
3503 % Ein Ofen. Sieht eigentlich so aus wie der zu Hause.
3504 % \begin{macrocode}
3505 \@@_Declare_Document_Commands:nnnn { Ofen } { oven } { S }
3506 {
3507 \@@_provide_savebox_and_use:nn { Ofen_#1 }
3508 {
3509 % % \@@_set_scale_abs_tl:n {#1}
3510 \bool_if:NTF \l_@@_if_opt_draft_bool
3511 {
3512 \@@_create_draftbox:nn
3513 { 2.07ex * \l_@@_scale_abs_tl }
3514 { 1.57ex * \l_@@_scale_abs_tl }
3515 }{
3516 \begin{tikzpicture}
3517 [
3518 /@@ ,
3519 x=0.50ex , y=0.5ex , line ~ width=0.07ex * \l_@@_scale_abs_tl , scale=#1
3520 ]
3521 \draw (0,0) rectangle (4,3);
3522 \draw (0.25,0.25) rectangle (3.75,2);
3523 \foreach \@@_Ofenschalter in {0.5,1.1,2.9,3.5}
3524 \fill (\@@_Ofenschalter,2.5) circle [radius=0.22];
3525 \draw (1.5,2.28) rectangle (2.5,2.72);
3526 \draw[line ~ width=0.05ex * \l_@@_scale_abs_tl] (1,1.75) -- (3,1.75);
3527 \end{tikzpicture}%
3528 }
3529 }
3530 }
3531 % \end{macrocode}
3532 % \end{macro}
3533 %
3534 %
3535 %
3536 %
3537 % \begin{macro}{ \Pfanne , \pan }
3538 % A pan with a wave-decoration. Resembles the one at home.
3539 % \begin{macrocode}
3540 \@@_Declare_Document_Commands:nnnn { Pfanne } { pan } { S }
3541 {
3542 \@@_provide_savebox_and_use:nn { Pfanne_#1 }
3543 {
3544 % % \@@_set_scale_abs_tl:n {#1}
3545 \bool_if:NTF \l_@@_if_opt_draft_bool
3546 {
3547 \@@_create_draftbox:nn
3548 { 3.034ex * \l_@@_scale_abs_tl }
3549 { 0.78ex * \l_@@_scale_abs_tl }
3550 }{
3551 \begin{tikzpicture}
3552 [
3553 /@@ ,
3554 x=2.3ex , y=2.3ex , line ~ width=0.09ex * \l_@@_scale_abs_tl , scale=#1
3555 ]
3556 \draw [rounded ~ corners = 0.023ex * \l_@@_scale_abs_tl ]
3557 (0,0) -- (0.9,0) -- (1,0.3) -- (-0.1,0.3) -- cycle;
3558 \draw (-0.2,0.22) -- (-0.08,0.22);
3559 \draw (0.97,0.22) -- (1.08,0.22);
3560 \draw
3561 [
3562 decorate , decoration=
3563 {
3564 snake,amplitude =.046ex* \l_@@_scale_abs_tl ,
3565 segment ~ length = 0.82ex* \l_@@_scale_abs_tl
3566 },
3567 line ~ width=0.05ex* \l_@@_scale_abs_tl
3568 ]
3569 (-0.05,0.1) -- (0.95,0.1);
3570 \end{tikzpicture}%
3571 }
3572 }
3573 }
3574 % \end{macrocode}
3575 % \end{macro}
3576 %
3577 %
3578 %
3579 %
3580 % \begin{macro}{ \Herd , \cooker }
3581 % Needed to cook things. Is pretty much looks exactly like the one
3582 % at home.
3583 % \begin{macrocode}
3584 \@@_Declare_Document_Commands:nnnn { Herd } { cooker } { S }
3585 {
3586 \@@_provide_savebox_and_use:nn { Herd_#1 }
3587 {
3588 % % \@@_set_scale_abs_tl:n {#1}
3589 \bool_if:NTF \l_@@_if_opt_draft_bool
3590 {
3591 \@@_create_draftbox:nn
3592 { 2.08ex * \l_@@_scale_abs_tl }
3593 { 1.58ex * \l_@@_scale_abs_tl }
3594 }{
3595 \begin{tikzpicture}
3596 [
3597 /@@ ,
3598 x=1ex , y=1ex , line ~ width= 0.04ex * \l_@@_scale_abs_tl , scale = #1
3599 ]
3600 \draw[line ~ width=0.08ex* \l_@@_scale_abs_tl ] (0,0) rectangle (2,1.5);
3601 \foreach \y/\radius in { 0.45/0.35 , 0.45/0.2 , 1.15/0.21 }
3602 \draw (0.5,\y) circle [radius=\radius];
3603 \draw (1.45,1.15) circle [radius=0.15];
3604 \draw (1.45,0.45) circle [radius=0.3];
3605 \draw (1.05,0.95) rectangle (1.85,1.35);
3606 \end{tikzpicture}%
3607 }
3608 }
3609 }
3610 % \end{macrocode}
3611 % \end{macro}
3612 %
3613 %
3614 %
3615 %
3616 % \begin{macro}{ \Saftpresse , \squeezer }
3617 % We have one of these, I still think its useful.
3618 % \begin{macrocode}
3619 \@@_Declare_Document_Commands:nnnn { Saftpresse } { squeezer } { S }
3620 {
3621 \@@_provide_savebox_and_use:nn { Saftpresse_#1 }
3622 {
3623 % % \@@_set_scale_abs_tl:n {#1}
3624 \bool_if:NTF \l_@@_if_opt_draft_bool
3625 {
3626 \@@_create_draftbox:nn
3627 { 1.87ex * \l_@@_scale_abs_tl }
3628 { 1.62ex * \l_@@_scale_abs_tl }
3629 }{
3630 \begin{tikzpicture}
3631 [
3632 /@@ ,
3633 x=1.2ex , y=1ex, line ~ width=0.07ex * \l_@@_scale_abs_tl ,scale=#1
3634 ]
3635 \draw[rounded ~ corners=0.1ex * \l_@@_scale_abs_tl ]
3636 (0,0) rectangle (1.5,0.85) -- cycle;
3637 \draw (0,0.7) -- (1.5,0.7);
3638 \foreach \xi/\xii in { 0.3/1.2 , 0.45/1.05 , 0.65/0.85 }
3639 \draw[rounded ~ corners=0.1ex* \l_@@_scale_abs_tl ]
3640 (\xi,0.7) -- (0.75,1.55) -- (\xii,0.7);
3641 \draw
3642 [
3643 line ~ width=0.05ex* \l_@@_scale_abs_tl , decorate,
3644 decoration=
3645 {
3646 snake,amplitude=0.05ex * \l_@@_scale_abs_tl ,
3647 segment ~ length=0.48ex * \l_@@_scale_abs_tl
3648 }
3649 ] (0,0.3) -- (1.5,0.3);
3650 \end{tikzpicture}%
3651 }
3652 }
3653 }
3654 % \end{macrocode}
3655 % \end{macro}
3656 %
3657 %
3658 %
3659 %
3660 % \begin{macro}{ \Schussel , \bowl }
3661 % A bowl. The edge was an accident, but I thought that it looks good
3662 % and so I keeped it.
3663 % \begin{macrocode}
3664 \@@_Declare_Document_Commands:nnnn { Schussel } { bowl } { S }
3665 {
3666 \@@_provide_savebox_and_use:nn { Schussel_#1 }
3667 {
3668 % % \@@_set_scale_abs_tl:n {#1}
3669 \bool_if:NTF \l_@@_if_opt_draft_bool
3670 {
3671 \@@_create_draftbox:nn
3672 { 2.32ex * \l_@@_scale_abs_tl }
3673 { 1.47ex * \l_@@_scale_abs_tl }
3674 }{
3675 \begin{tikzpicture}
3676 [
3677 /@@ ,
3678 x=1ex , y=1ex , line ~ width=0.07ex * \l_@@_scale_abs_tl , scale=#1
3679 ]
3680 \draw[rounded ~ corners=0.5ex* \l_@@_scale_abs_tl ]
3681 (-0.02,1.4) -- (0,1.4) -- (0,0.05) -- (1.5,0.05) -- (1.5,1.4) -- (1.52,1.4);
3682 \draw (0.35,0) -- (1.15,0);
3683 \draw[transparent] (-0.4,0) -- (1.85,0);
3684 \end{tikzpicture}%
3685 }
3686 }
3687 }
3688 % \end{macrocode}
3689 % \end{macro}
3690 %
3691 %
3692 %
3693 %
3694 % \begin{macro}{ \Schaler , \peeler }
3695 % Again an image of on I use to peel for example potatoes.
3696 % \begin{macrocode}
3697 \@@_Declare_Document_Commands:nnnn { Schaler } { peeler } { S }
3698 {
3699 \@@_provide_savebox_and_use:nn { Schaler_#1 }
3700 {
3701 % % \@@_set_scale_abs_tl:n {#1}
3702 \bool_if:NTF \l_@@_if_opt_draft_bool
3703 {
3704 \@@_create_draftbox:nn
3705 { 1.15ex * \l_@@_scale_abs_tl }
3706 { 1.565ex * \l_@@_scale_abs_tl }
3707 }{
3708 \begin{tikzpicture}
3709 [
3710 /@@ ,
3711 x=2.7ex , y=2.3ex , line ~ width=0.07ex * \l_@@_scale_abs_tl , scale=#1
3712 ]
3713 \draw[rounded ~ corners=0.07ex* \l_@@_scale_abs_tl ]
3714 (0,0.4) -- (0,0.1) arc [start ~ angle=0, end ~ angle=180, radius=-0.1] -- (0.2,0.4) --
3715 (0.3,0.5) -- (0.3,0.65) -- (0.2,0.65) -- (0.2,0.5) -- (0,0.5) -- (0,0.65) --
3716 (-0.1,0.65) -- (-0.1,0.5) -- cycle;
3717 \draw[line ~ width=0.03ex* \l_@@_scale_abs_tl ] (0,0.58) rectangle (0.2,0.6);
3718 \end{tikzpicture}%
3719 }
3720 }
3721 }
3722 % \end{macrocode}
3723 % \end{macro}
3724 %
3725 %
3726 %
3727 %
3728 % \begin{macro}{ \Reibe , \grater }
3729 % I get out of ideas to write.
3730 % \begin{macrocode}
3731 \@@_Declare_Document_Commands:nnnn { Reibe } { grater } { S }
3732 {
3733 \@@_provide_savebox_and_use:nn { Reibe_#1 }
3734 {
3735 % % \@@_set_scale_abs_tl:n {#1}
3736 \bool_if:NTF \l_@@_if_opt_draft_bool
3737 {
3738 \@@_create_draftbox:nn
3739 { 1.08ex * \l_@@_scale_abs_tl }
3740 { 1.58ex * \l_@@_scale_abs_tl }
3741 }{
3742 \begin{tikzpicture}
3743 [
3744 /@@ ,
3745 x=1ex , y=1ex , line ~ width=0.08ex * \l_@@_scale_abs_tl , scale=#1
3746 ]
3747 \draw (0,0) rectangle (1,1.2);
3748 \draw[rounded ~ corners=0.04ex] (0.05,1.2) rectangle (0.95,1.5);
3749 \foreach\x in { 0.2, 0.4 , 0.6 , 0.8}
3750 \foreach\y in { 0.2 , 0.4, 0.6 , 0.8, 1}
3751 \fill (\x,\y) circle [radius=0.05ex];
3752 \end{tikzpicture}%
3753 }
3754 }
3755 }
3756 % \end{macrocode}
3757 % \end{macro}
3758 %
3759 %
3760 %
3761 %
3762 % \begin{macro}{ \Flasche , \bottle }
3763 % It's a bottle. Uhhhh\dots
3764 % \begin{macrocode}
3765 \@@_Declare_Document_Commands:nnnn { Flasche } { bottle } { S }
3766 {
3767 \@@_provide_savebox_and_use:nn { Flasche_#1 }
3768 {
3769 % % \@@_set_scale_abs_tl:n {#1}
3770 \bool_if:NTF \l_@@_if_opt_draft_bool
3771 {
3772 \@@_create_draftbox:nn
3773 { 0.78ex * \l_@@_scale_abs_tl }
3774 { 1.58ex * \l_@@_scale_abs_tl }
3775 }{
3776 \begin{tikzpicture}
3777 [
3778 /@@ ,
3779 x=1ex,y=1ex, line ~ width=0.08ex* \l_@@_scale_abs_tl ,
3780 rounded ~ corners=0.08ex* \l_@@_scale_abs_tl , scale=#1
3781 ]
3782 \draw (0, 1.5) -- (0,1.2) -- (-0.15,0.8) -- (-0.15,0) --++
3783 (0.6,0) --++ (0,0.8) --++ (-0.15,0.4) --++ (0,0.3) -- cycle;
3784 \draw[transparent] (-0.2,0) --++ (0.7,0);
3785 \end{tikzpicture}%
3786 }
3787 }
3788 }
3789 % \end{macrocode}
3790 % \end{macro}
3791 %
3792 %
3793 %
3794 %
3795 %
3796 % \begin{macro}{ \Nudelholz , \rollingpin }
3797 % You know what that is\dots
3798 %
3799 % For the draftbox the calculation of the length is \verb|(1.26ex + 4.25ex)*0.8 + 0.1ex|.
3800 % \begin{macrocode}
3801 \@@_Declare_Document_Commands:nnnn { Nudelholz } { rollingpin } { S }
3802 {
3803 \@@_provide_savebox_and_use:nn { Nudelholz_#1 }
3804 {
3805 % % \@@_set_scale_abs_tl:n {#1}
3806 \bool_if:NTF \l_@@_if_opt_draft_bool
3807 {
3808 \@@_create_draftbox:nn
3809 { 4.516ex * \l_@@_scale_abs_tl }%%
3810 { 0.9ex * \l_@@_scale_abs_tl }
3811 }{
3812 \begin{tikzpicture}
3813 [
3814 /@@ ,
3815 x=0.8ex, y=0.8ex, scale=#1, line ~ width=0.1ex * \l_@@_scale_abs_tl ,
3816 ]
3817 \draw[rounded ~ corners=0.10ex*\l_@@_scale_abs_tl] (0,0) rectangle (3,1);
3818 \draw[rounded ~ corners=0.15ex*\l_@@_scale_abs_tl]
3819 (3,0.75) -- (3.25,0.6) -- (3.75,0.7) -- (4.25,0.6)
3820 (3,0.25) -- ( 3.25,0.4 ) -- (3.75,0.3) -- (4.25,0.4);
3821 \draw (4.25,0.5) ellipse [x ~ radius=0.01, y ~ radius=0.1];
3822 \draw[rounded ~ corners=0.15ex*\l_@@_scale_abs_tl]
3823 (-0,0.75) -- (-0.25,0.6) -- (-0.75,0.7)
3824 -- (-1.25,0.6)
3825 (-0,0.25) -- ( -0.25,0.4 ) -- (-0.75,0.3) -- (-1.25,0.4);
3826 \draw (-1.25,0.5) ellipse [x ~ radius=0.01, y ~ radius=0.1];
3827 \end{tikzpicture}
3828 }
3829 }
3830 }
3831 % \end{macrocode}
3832 % \end{macro}
3833 %
3834 %
3835 % \begin{macro}{ \Knoblauchpresse \garlicpress }
3836 % I always forget that the line width is added only once to the
3837 % draft box.
3838 %
3839 % The design is similar to the one I own.
3840 % \begin{macrocode}
3841 \@@_Declare_Document_Commands:nnnn { Knoblauchpresse } { garlicpress } { S }
3842 {
3843 \@@_provide_savebox_and_use:nn { Knoblauchpresse_#1 }
3844 {
3845 % % \@@_set_scale_abs_tl:n {#1}
3846 \bool_if:NTF \l_@@_if_opt_draft_bool
3847 {
3848 \@@_create_draftbox:nn
3849 { 4.3ex * \l_@@_scale_abs_tl }
3850 { 1.6ex * \l_@@_scale_abs_tl }
3851 }{
3852 \begin{tikzpicture}
3853 [
3854 /@@ ,
3855 x=1ex, y=1ex, scale=#1, line ~ width=0.1ex * \l_@@_scale_abs_tl ,
3856 ]
3857 \draw[rounded ~ corners = 0.1ex*\l_@@_scale_abs_tl]
3858 (1, 0) -- (4, 0) -- (4,-0.2) -- (1, -0.2)
3859 (-0.1, 0.5) -- (4, 0.5) -- (4,0.3) -- (0, 0.3);
3860 \draw [rounded ~ corners = 0.21ex*\l_@@_scale_abs_tl]
3861 (0,0) -- (0,-1) -- (1,-1) -- (1,0);
3862 \draw (1,0) -- (0,0) -- (0,0.4) ;
3863 \draw (0,-0.85) -- (-0.2, -0.6) -- (-0.2, 0.4);
3864 \draw (-0.1,0.4) circle[radius=0.1];
3865 \draw (0.3, 0) rectangle +(0.4, 0.3);
3866 \end{tikzpicture}
3867 }
3868 }
3869 }
3870 % \end{macrocode}
3871 % \end{macro}
3872 %
3873 %
3874 %
3875 %
3876 %
3877 %
3878 % \subsection{Emoticonscode}
3879 %
3880 % Now the emoticons are coded.
3881 %
3882 %
3883 %
3884 %
3885 % \begin{macro}{ \Sadey }
3886 % I don't know why Sadey is the first and not Smiley, probably for reasons.
3887 % \begin{macrocode}
3888 \@@_Declare_Document_Command:nnn { Sadey } { S B{none} }
3889 {
3890 \@@_provide_savebox_and_use:nn { Sadey_#1_#2 }
3891 {
3892 % % \@@_set_scale_abs_tl:n {#1}
3893 \bool_if:NTF \l_@@_if_opt_draft_bool
3894 {
3895 \@@_create_squared_draftbox:n { 1.684ex * \l_@@_scale_abs_tl }
3896 }{
3897 \begin{tikzpicture}
3898 [
3899 /@@ ,
3900 x=2.4ex , y=2.4ex, line ~ width=0.09ex * \l_@@_scale_abs_tl , scale = #1
3901 ]
3902 \filldraw[fill=#2, line ~ width=0.1ex* \l_@@_scale_abs_tl ] (0,0) circle [radius=0.33];
3903 \fill (0.1,0.1) circle [radius=0.05];
3904 \fill (-0.1,0.1) circle [radius=0.05];
3905 \draw (-0.2,-0.15) .. controls (-0.1,-0.06) and (0.1,-0.06) .. (0.2,-0.15);
3906 \end{tikzpicture}
3907 }
3908 }
3909 }
3910 % \end{macrocode}
3911 % \end{macro}
3912 %
3913 %
3914 % \begin{macro}{ \dSadey }
3915 % Coding the \enquote{3D} Sadey. Again, nothing special.
3916 % \begin{macrocode}
3917 \@@_Declare_Document_Command:nnn { dSadey } { S B{yellow} }
3918 {
3919 \@@_provide_savebox_and_use:nn { dSadey_#1_#2 }
3920 {
3921 % % \@@_set_scale_abs_tl:n {#1}
3922 \bool_if:NTF \l_@@_if_opt_draft_bool
3923 {
3924 \@@_create_squared_draftbox:n { 1.584ex * \l_@@_scale_abs_tl }
3925 }{
3926 \begin{tikzpicture}
3927 [
3928 /@@ ,
3929 x=2.4ex, y=2.4ex, line ~ width=0.09ex * \l_@@_scale_abs_tl , scale = #1
3930 ]
3931 \shade[ball ~ color=#2] (0,0) circle [radius=0.33];
3932 \shade[ball ~ color=black] (0.1,0.1) circle [radius=0.05];
3933 \shade[ball ~ color=black] (-0.1,0.1) circle [radius=0.05];
3934 \draw[black] (-0.2,-0.15) .. controls (-0.1,-0.06) and (0.1,-0.06) .. (0.2,-0.15);
3935 \end{tikzpicture}%
3936 }
3937 }
3938 }
3939 % \end{macrocode}
3940 % \end{macro}
3941 %
3942 %
3943 %
3944 %\begin{macro}{ \Changey }
3945 % \changes{v0.95}{2016/03/20}{New.}
3946 % Thanks to Marcel for the request.
3947 % \begin{macrocode}
3948 \@@_Declare_Document_Command:nnn { Changey } { S B{white} m }
3949 {
3950 \@@_provide_savebox_and_use:nn { Changey_#1_#2_#3 }
3951 {
3952 \fp_compare:nNnT { abs(#3) } > { 2 }
3953 { \msg_error:nnn { tikzsymbols } { Changey-number-too-large } {#3} }
3954 % % \@@_set_scale_abs_tl:n {#1}
3955 \bool_if:NTF \l_@@_if_opt_draft_bool
3956 {
3957 \@@_create_squared_draftbox:n { 1.704ex * \l_@@_scale_abs_tl }
3958 }{
3959 \begin{tikzpicture}
3960 [
3961 /@@ ,
3962 x=2.4ex, y=2.4ex, line ~ width=0.12ex* \l_@@_scale_abs_tl ,scale=#1
3963 ]
3964 \filldraw[fill=#2] (0,0) circle [radius=0.33];
3965 \fill (-0.1,0.1) circle [radius=0.05];
3966 \fill (0.1,0.1) circle [radius=0.05];
3967 \pgfmathsetmacro \l_tmpa_tl { -0.125 + 0.025*#3 }
3968 \pgfmathsetmacro \l_tmpb_tl { \l_tmpa_tl - 0.1*#3 }
3969 \draw
3970 ( -0.2 , \l_tmpa_tl ) .. controls
3971 ( -0.1 , \l_tmpb_tl ) and
3972 ( 0.1 , \l_tmpb_tl ) ..
3973 ( 0.2 , \l_tmpa_tl ) ;
3974 \end{tikzpicture}
3975 }
3976 }
3977 }
3978 % \end{macrocode}
3979 %\end{macro}
3980 %
3981 %\begin{macro}{ \dChangey }
3982 % \changes{v3.95}{2016/03/20}{New.}
3983 % Thanks to Marcel for the request.
3984 % \begin{macrocode}
3985 \@@_Declare_Document_Command:nnn { dChangey } { S B{yellow} m }
3986 {
3987 \@@_provide_savebox_and_use:nn { dChangey_#1_#2_#3 }
3988 {
3989 \fp_compare:nNnT { abs(#3) } > { 2 }
3990 { \msg_error:nnn { tikzsymbols } { Changey-number-too-large } {#3} }
3991 % % \@@_set_scale_abs_tl:n {#1}
3992 \bool_if:NTF \l_@@_if_opt_draft_bool
3993 {
3994 \@@_create_squared_draftbox:n { 1.584ex * \l_@@_scale_abs_tl }
3995 }{
3996 \begin{tikzpicture}
3997 [
3998 /@@ ,
3999 x=2.4ex, y=2.4ex, line ~ width=0.12ex* \l_@@_scale_abs_tl ,scale=#1
4000 ]
4001 \shade[ball ~ color=#2] (0,0) circle [radius=0.33];
4002 \shade[ball ~ color=black] (-0.1,0.1) circle [radius=0.05];
4003 \shade[ball ~ color=black] (0.1,0.1) circle [radius=0.05];
4004 \pgfmathsetmacro \l_tmpa_tl { -0.125 + 0.025*#3 }
4005 \pgfmathsetmacro \l_tmpb_tl { \l_tmpa_tl - 0.1*#3 }
4006 \draw[black]
4007 ( -0.2 , \l_tmpa_tl ) .. controls
4008 ( -0.1 , \l_tmpb_tl ) and
4009 ( 0.1 , \l_tmpb_tl ) ..
4010 ( 0.2 , \l_tmpa_tl ) ;
4011 \end{tikzpicture}
4012 }
4013 }
4014 }
4015 % \end{macrocode}
4016 %\end{macro}
4017 %
4018 %
4019 %
4020 %\begin{macro}{ \cChangey }
4021 % \changes{v4.02}{2017/05/14}{New.}
4022 % Why didn't I implement this earlier?
4023 % \begin{macrocode}
4024 \cs_new:Npn \@@_cChangey:nnn #1 #2#3
4025 {
4026 \fp_set:Nn \l_tmpa_fp { abs (#1/2) * 100 }
4027 \@@_cChangey_aux:xnn { \fp_use:N \l_tmpa_fp } {#2} {#3}
4028 }
4029 \cs_new:Npn \@@_cChangey_aux:nnn #1 #2#3
4030 {
4031 \filldraw[fill=#2!#1!#3]
4032 }
4033 \cs_generate_variant:Nn \@@_cChangey_aux:nnn { x }
4034 \@@_Declare_Document_Command:nnn { cChangey } { S B{red} B{yellow} B{green} m }
4035 {
4036 \@@_provide_savebox_and_use:nn
4037 { cChangey_#1_#2_#3_#4_#5 }
4038 {
4039 \fp_compare:nNnT { abs(#5) } > { 2 }
4040 { \msg_error:nnn { tikzsymbols } { cChangey-number-too-large } {#5} }
4041 % % \@@_set_scale_abs_tl:n {#1}
4042 \bool_if:NTF \l_@@_if_opt_draft_bool
4043 {
4044 \@@_create_squared_draftbox:n { 1.704ex * \l_@@_scale_abs_tl }
4045 }{
4046 \begin{tikzpicture}
4047 [
4048 /@@ ,
4049 x=2.4ex, y=2.4ex, line ~ width=0.12ex* \l_@@_scale_abs_tl ,scale=#1
4050 ]
4051 \fp_compare:nNnT {#5} < { 0 }
4052 {
4053 \@@_cChangey:nnn {#5} {#2} {#3}
4054 (0,0) circle [radius=0.33];
4055 }
4056 \fp_compare:nNnT {#5} > { 0 }
4057 {
4058 \@@_cChangey:nnn {#5} {#4} {#3}
4059 (0,0) circle [radius=0.33];
4060 }
4061 \fp_compare:nNnT {#5} = { 0 }
4062 {
4063 \filldraw [fill=#3] (0,0) circle [radius=0.33];
4064 }
4065 \fill (-0.1,0.1) circle [radius=0.05];
4066 \fill (0.1,0.1) circle [radius=0.05];
4067 \pgfmathsetmacro \l_tmpa_tl { -0.125 + 0.025*#5 }
4068 \pgfmathsetmacro \l_tmpb_tl { \l_tmpa_tl - 0.1*#5 }
4069 \draw
4070 ( -0.2 , \l_tmpa_tl ) .. controls
4071 ( -0.1 , \l_tmpb_tl ) and
4072 ( 0.1 , \l_tmpb_tl ) ..
4073 ( 0.2 , \l_tmpa_tl ) ;
4074 \end{tikzpicture}
4075 }
4076 }
4077 }
4078 % \end{macrocode}
4079 %\end{macro}
4080 %
4081 %\begin{macro}{ \dcChangey }
4082 % \changes{v4.02}{2017/05/14}{New.}
4083 % Same as above
4084 % \begin{macrocode}
4085 \cs_new:Npn \@@_dcChangey:nnn #1 #2#3
4086 {
4087 \fp_set:Nn \l_tmpa_fp { abs (#1/2) * 100 }
4088 \@@_dcChangey_aux:xnn { \fp_use:N \l_tmpa_fp } {#2} {#3}
4089 }
4090 \cs_new:Npn \@@_dcChangey_aux:nnn #1 #2#3
4091 {
4092 \shade [ball ~ color=#2!#1!#3]
4093 }
4094 \cs_generate_variant:Nn \@@_dcChangey_aux:nnn { x }
4095 \@@_Declare_Document_Command:nnn { dcChangey } { S B{red} B{yellow} B{green} m }
4096 {
4097 \@@_provide_savebox_and_use:nn
4098 { dcChangey_#1_#2_#3_#4_#5 }
4099 {
4100 \fp_compare:nNnT { abs(#5) } > { 2 }
4101 { \msg_error:nnn { tikzsymbols } { cChangey-number-too-large } {#5} }
4102 % % \@@_set_scale_abs_tl:n {#1}
4103 \bool_if:NTF \l_@@_if_opt_draft_bool
4104 {
4105 \@@_create_squared_draftbox:n { 1.584ex * \l_@@_scale_abs_tl }
4106 }{
4107 \begin{tikzpicture}
4108 [
4109 /@@ ,
4110 x=2.4ex, y=2.4ex, line ~ width=0.12ex* \l_@@_scale_abs_tl ,scale=#1
4111 ]
4112 \fp_compare:nNnT {#5} < { 0 }
4113 {
4114 \@@_dcChangey:nnn {#5} {#2} {#3}
4115 (0,0) circle [radius=0.33];
4116 }
4117 \fp_compare:nNnT {#5} > { 0 }
4118 {
4119 \@@_dcChangey:nnn {#5} {#4} {#3}
4120 (0,0) circle [radius=0.33];
4121 }
4122 \fp_compare:nNnT {#5} = { 0 }
4123 {
4124 \shade[ball ~ color=#3] (0,0) circle [radius=0.33];
4125 }
4126 \shade[ball ~ color=black] (-0.1,0.1) circle [radius=0.05];
4127 \shade[ball ~ color=black] (0.1,0.1) circle [radius=0.05];
4128 \pgfmathsetmacro \l_tmpa_tl { -0.125 + 0.025*#5 }
4129 \pgfmathsetmacro \l_tmpb_tl { \l_tmpa_tl - 0.1*#5 }
4130 \draw[black]
4131 ( -0.2 , \l_tmpa_tl ) .. controls
4132 ( -0.1 , \l_tmpb_tl ) and
4133 ( 0.1 , \l_tmpb_tl ) ..
4134 ( 0.2 , \l_tmpa_tl ) ;
4135 \end{tikzpicture}
4136 }
4137 }
4138 }
4139 % \end{macrocode}
4140 %\end{macro}
4141 %
4142 %
4143 %
4144 %
4145 %
4146 %\begin{macro}{ \Annoey }
4147 % An annoyed Smiley. It's annoyed.
4148 % \begin{macrocode}
4149 \@@_Declare_Document_Command:nnn { Annoey } { S B{none} }
4150 {
4151 \@@_provide_savebox_and_use:nn { Annoey_#1_#2 }
4152 {
4153 % % \@@_set_scale_abs_tl:n {#1}
4154 \bool_if:NTF \l_@@_if_opt_draft_bool
4155 {
4156 \@@_create_squared_draftbox:n { 1.704ex * \l_@@_scale_abs_tl }
4157 }{
4158 \begin{tikzpicture}
4159 [
4160 /@@ ,
4161 x=2.4ex, y=2.4ex, line ~ width=0.09ex * \l_@@_scale_abs_tl ,scale=#1
4162 ]
4163 \filldraw[fill=#2, line ~ width=0.12ex* \l_@@_scale_abs_tl ] (0,0) circle [radius=0.33];
4164 \draw (0.08,0.1) -- (0.22,0.1);
4165 \draw (-0.08,0.1) -- (-0.22,0.1);
4166 \draw (-0.2,-0.1) -- (0.2,-0.1);
4167 \end{tikzpicture}%
4168 }
4169 }
4170 }
4171 % \end{macrocode}
4172 %\end{macro}
4173 %
4174 %
4175 %
4176 %\begin{macro}{ \dAnnoey }
4177 % It's annoyed about 3D.
4178 % \begin{macrocode}
4179 \@@_Declare_Document_Command:nnn { dAnnoey } { S B{yellow} }
4180 {
4181 \@@_provide_savebox_and_use:nn { dAnnoey_#1_#2 }
4182 {
4183 % % \@@_set_scale_abs_tl:n {#1}
4184 \bool_if:NTF \l_@@_if_opt_draft_bool
4185 {
4186 \@@_create_squared_draftbox:n { 1.584ex * \l_@@_scale_abs_tl }
4187 }{
4188 \begin{tikzpicture}
4189 [
4190 /@@ ,
4191 x=2.4ex, y=2.4ex, line ~ width=0.09ex* \l_@@_scale_abs_tl ,scale=#1
4192 ]
4193 \shade[ball ~ color=#2] (0,0) circle [radius=0.33];
4194 \draw[black] (0.08,0.1) -- (0.22,0.1);
4195 \draw[black] (-0.08,0.1) -- (-0.22,0.1);
4196 \draw[black] (-0.2,-0.1) -- (0.2,-0.1);
4197 \end{tikzpicture}%
4198 }
4199 }
4200 }
4201 % \end{macrocode}
4202 %\end{macro}
4203 %
4204 %
4205 %
4206 %
4207 %
4208 %
4209 % \begin{macro}{ \Smiley }
4210 % This command is not defined if the option \Option{marvosym}
4211 % is set to true.
4212 % \begin{macrocode}
4213 \bool_if:NF \g_@@_if_opt_marvosym_bool
4214 {
4215 \@@_Declare_Document_Command:nnn { Smiley } { S B{none} }
4216 {
4217 \@@_provide_savebox_and_use:nn { Smiley_#1_#2 }
4218 {
4219 % % \@@_set_scale_abs_tl:n {#1}
4220 \bool_if:NTF \l_@@_if_opt_draft_bool
4221 {
4222 \@@_create_squared_draftbox:n { 1.704ex * \l_@@_scale_abs_tl }
4223 }{
4224 \begin{tikzpicture}
4225 [
4226 /@@ ,
4227 x=2.4ex, y=2.4ex, line ~ width=0.12ex* \l_@@_scale_abs_tl , scale=#1
4228 ]
4229 \filldraw[fill=#2] (0,0) circle [radius=0.33];
4230 \fill (-0.1,0.1) circle [radius=0.05];
4231 \fill (0.1,0.1) circle [radius=0.05];
4232 \draw (-0.2,-0.1) .. controls (-0.1,-0.2) and (0.1,-0.2) .. (0.2,-0.1);
4233 \end{tikzpicture}%
4234 }
4235 }
4236 }
4237 }
4238 % \end{macrocode}
4239 %\end{macro}
4240 %
4241 %
4242 %\begin{macro}{ \dSmiley }
4243 % Again in \enquote{3D}.
4244 % \begin{macrocode}
4245 \@@_Declare_Document_Command:nnn { dSmiley } { S B{yellow} }
4246 {
4247 \@@_provide_savebox_and_use:nn { dSmiley_#1_#2 }
4248 {
4249 % % \@@_set_scale_abs_tl:n {#1}
4250 \bool_if:NTF \l_@@_if_opt_draft_bool
4251 {
4252 \@@_create_squared_draftbox:n { 1.584ex * \l_@@_scale_abs_tl }
4253 }{
4254 \begin{tikzpicture}
4255 [
4256 /@@ ,
4257 x=2.4ex, y=2.4ex, line ~ width=0.1ex* \l_@@_scale_abs_tl ,scale=#1
4258 ]
4259 \shade[ball ~ color=#2] (0,0) circle [radius=0.33];
4260 \shade[ball ~ color=black] (-0.1,0.1) circle [radius=0.05];
4261 \shade[ball ~ color=black] (0.1,0.1) circle [radius=0.05];
4262 \draw[black] (-0.2,-0.1) .. controls (-0.1,-0.2) and (0.1,-0.2) .. (0.2,-0.1);
4263 \end{tikzpicture}%
4264 }
4265 }
4266 }
4267 % \end{macrocode}
4268 %\end{macro}
4269 %
4270 %
4271 %
4272 %
4273 %
4274 %
4275 % \begin{macro}{ \Laughey }
4276 % It's laughing.
4277 % \begin{macrocode}
4278 \@@_Declare_Document_Command:nnn { Laughey } { S B{none} B{none} }
4279 {
4280 \@@_provide_savebox_and_use:nn { Laughey_#1_#2_#3 }
4281 {
4282 % % \@@_set_scale_abs_tl:n {#1}
4283 \bool_if:NTF \l_@@_if_opt_draft_bool
4284 {
4285 \@@_create_squared_draftbox:n { 1.704ex * \l_@@_scale_abs_tl }
4286 }{
4287 \begin{tikzpicture}
4288 [
4289 /@@ ,
4290 x=2.4ex, y=2.4ex, line ~ width=0.09ex* \l_@@_scale_abs_tl ,scale=#1
4291 ]
4292 \filldraw[fill=#2,line ~ width=0.12ex* \l_@@_scale_abs_tl ] (0,0) circle [radius=0.33];
4293 \draw (-0.09,0.06) .. controls (-0.11,0.16) and (-0.17,0.16) .. +(-0.1,0);
4294 \draw (0.09,0.06) .. controls (0.11,0.16) and (0.17,0.16) .. +(0.1,0);
4295 \filldraw[fill=#3,rounded ~ corners=0.1ex* \l_@@_scale_abs_tl , yshift=-0.06ex]
4296 (-0.22,-0.0) .. controls (-0.13,-0.23) and (0.13,-0.23) .. (0.22,-0.0) -- cycle;
4297 \end{tikzpicture}%
4298 }
4299 }
4300 }
4301 % \end{macrocode}
4302 %\end{macro}
4303 %
4304 %
4305 %\begin{macro}{ \dLaughey }
4306 % Also in \emph{3D}!
4307 % \begin{macrocode}
4308 \@@_Declare_Document_Command:nnn { dLaughey } { S B{yellow} B{red} }
4309 {
4310 \@@_provide_savebox_and_use:nn { dLaughey_#1_#2_#3 }
4311 {
4312 % % \@@_set_scale_abs_tl:n {#1}
4313 \bool_if:NTF \l_@@_if_opt_draft_bool
4314 {
4315 \@@_create_squared_draftbox:n { 1.584ex * \l_@@_scale_abs_tl }
4316 }{
4317 \begin{tikzpicture}
4318 [
4319 /@@ ,
4320 x=2.4ex, y=2.4ex, line ~ width=0.09ex* \l_@@_scale_abs_tl ,scale=#1,
4321 black
4322 ]
4323 \fill[ball ~ color=#2,line ~ width=0.12ex* \l_@@_scale_abs_tl ] (0,0) circle [radius=0.33];
4324 \draw (-0.09,0.06) .. controls (-0.11,0.16) and (-0.17,0.16) .. +(-0.1,0);
4325 \draw (0.09,0.06) .. controls (0.11,0.16) and (0.17,0.16) .. +(0.1,0);
4326 \shade
4327 [
4328 ball ~ color=#3, rounded ~ corners=0.1ex* \l_@@_scale_abs_tl ,
4329 yshift=-0.028ex
4330 ]
4331 (-0.25,-0.0) .. controls (-0.13,-0.26) and (0.13,-0.26) .. (0.25,-0.0) -- cycle;
4332 \end{tikzpicture}%
4333 }
4334 }
4335 }
4336 % \end{macrocode}
4337 %\end{macro}
4338 %
4339 %
4340 %
4341 %
4342 %
4343 %
4344 %\begin{macro}{ \Neutrey }
4345 % \begin{macrocode}
4346 \@@_Declare_Document_Command:nnn { Neutrey } { S B{none} }
4347 {
4348 \@@_provide_savebox_and_use:nn { Neutrey_#1_#2 }
4349 {
4350 % % \@@_set_scale_abs_tl:n {#1}
4351 \bool_if:NTF \l_@@_if_opt_draft_bool
4352 {
4353 \@@_create_squared_draftbox:n { 1.704ex * \l_@@_scale_abs_tl }
4354 }{
4355 \begin{tikzpicture}
4356 [
4357 /@@ ,
4358 x=2.4ex, y=2.4ex, line ~ width=0.09ex* \l_@@_scale_abs_tl ,scale=#1
4359 ]
4360 \filldraw[fill=#2,line ~ width=0.12ex* \l_@@_scale_abs_tl ] (0,0) circle [radius=0.33];
4361 \fill (0.1,0.1) circle [radius=0.05];
4362 \fill (-0.1,0.1) circle [radius=0.05];
4363 \draw (-0.2,-0.1) -- (0.2,-0.1);
4364 \end{tikzpicture}%
4365 }
4366 }
4367 }
4368 % \end{macrocode}
4369 %\end{macro}
4370 %
4371 %
4372 %\begin{macro}{ \dNeutrey }
4373 % \begin{macrocode}
4374 \@@_Declare_Document_Command:nnn { dNeutrey } { S B{yellow} }
4375 {
4376 \@@_provide_savebox_and_use:nn { Neutrey_#1_#2 }
4377 {
4378 % % \@@_set_scale_abs_tl:n {#1}
4379 \bool_if:NTF \l_@@_if_opt_draft_bool
4380 {
4381 \@@_create_squared_draftbox:n { 1.584ex * \l_@@_scale_abs_tl }
4382 }{
4383 \begin{tikzpicture}
4384 [
4385 /@@ ,
4386 x=2.4ex, y=2.4ex, line ~ width=0.09ex* \l_@@_scale_abs_tl ,scale=#1
4387 ]
4388 \shade[ball ~ color=#2] (0,0) circle [radius=0.33];
4389 \shade[ball ~ color=black] (0.1,0.1) circle [radius=0.05];
4390 \shade[ball ~ color=black] (-0.1,0.1) circle [radius=0.05];
4391 \draw[black] (-0.2,-0.1) -- (0.2,-0.1);
4392 \end{tikzpicture}%
4393 }
4394 }
4395 }
4396 % \end{macrocode}
4397 %\end{macro}
4398 %
4399 %
4400 %
4401 %
4402 %
4403 %
4404 %\begin{macro}{ \Winkey }
4405 % \begin{macrocode}
4406 \@@_Declare_Document_Command:nnn { Winkey } { S B{none} }
4407 {
4408 \@@_provide_savebox_and_use:nn { Winkey_#1_#2 }
4409 {
4410 % % \@@_set_scale_abs_tl:n {#1}
4411 \bool_if:NTF \l_@@_if_opt_draft_bool
4412 {
4413 \@@_create_squared_draftbox:n { 1.704ex * \l_@@_scale_abs_tl }
4414 }{
4415 \begin{tikzpicture}
4416 [
4417 /@@ ,
4418 x=2.4ex, y=2.4ex, line ~ width=0.12ex* \l_@@_scale_abs_tl ,scale=#1
4419 ]
4420 \filldraw[fill=#2] (0,0) circle [radius=0.33];
4421 \draw(0.17,0.1) -- (0.05,0.1);
4422 \fill (-0.1,0.1) circle [radius=0.05];
4423 \draw (-0.15,-0.15) .. controls (-0.05,-0.2) and (0.15,-0.2) .. (0.19,0);
4424 \end{tikzpicture}%
4425 }
4426 }
4427 }
4428 % \end{macrocode}
4429 %\end{macro}
4430 %
4431 %
4432 %\begin{macro}{ \oldWinkey }
4433 % \begin{macrocode}
4434 \@@_Declare_Document_Command:nnn { oldWinkey } { S B{none} }
4435 {
4436 \@@_provide_savebox_and_use:nn { oldWinkey_#1_#2 }
4437 {
4438 % % \@@_set_scale_abs_tl:n {#1}
4439 \bool_if:NTF \l_@@_if_opt_draft_bool
4440 {
4441 \@@_create_squared_draftbox:n { 1.704ex * \l_@@_scale_abs_tl }
4442 }{
4443 \begin{tikzpicture}
4444 [
4445 /@@ ,
4446 x=2.4ex, y=2.4ex, line ~ width=0.12ex* \l_@@_scale_abs_tl ,scale=#1
4447 ]
4448 \filldraw[fill=#2] (0,0) circle [radius=0.33];
4449 \draw(0.17,0.1) -- (0.05,0.1);
4450 \fill (-0.1,0.1) circle [radius=0.05];
4451 \draw (-0.2,-0.1) .. controls (-0.1,-0.2) and (0.15,-0.2) .. (0.2,0);
4452 \end{tikzpicture}%
4453 }
4454 }
4455 }
4456 % \end{macrocode}
4457 %\end{macro}
4458 %
4459 %
4460 %\begin{macro}{ \dWinkey }
4461 % \begin{macrocode}
4462 \@@_Declare_Document_Command:nnn { dWinkey } { S B{yellow} }
4463 {
4464 \@@_provide_savebox_and_use:nn { dWinkey_#1_#2 }
4465 {
4466 % % \@@_set_scale_abs_tl:n {#1}
4467 \bool_if:NTF \l_@@_if_opt_draft_bool
4468 {
4469 \@@_create_squared_draftbox:n { 1.584ex * \l_@@_scale_abs_tl }
4470 }{
4471 \begin{tikzpicture}
4472 [
4473 /@@ ,
4474 x=2.4ex, y=2.4ex, line ~ width=0.12ex* \l_@@_scale_abs_tl ,scale=#1
4475 ]
4476 \shade[ball ~ color=#2] (0,0) circle [radius=0.33];
4477 \draw[black] (0.17,0.1) -- (0.05,0.1);
4478 \shade[ball ~ color=black] (-0.1,0.1) circle [radius=0.05];
4479 \draw[black] (-0.15,-0.15) .. controls (-0.05,-0.2) and (0.15,-0.2) .. (0.19,0);
4480 \end{tikzpicture}%
4481 }
4482 }
4483 }
4484 % \end{macrocode}
4485 %\end{macro}
4486 %
4487 %\begin{macro}{ \olddWinkey }
4488 % \begin{macrocode}
4489 \@@_Declare_Document_Command:nnn { olddWinkey } { S B{yellow} }
4490 {
4491 \@@_provide_savebox_and_use:nn { olddWinkey_#1_#2 }
4492 {
4493 % % \@@_set_scale_abs_tl:n {#1}
4494 \bool_if:NTF \l_@@_if_opt_draft_bool
4495 {
4496 \@@_create_squared_draftbox:n { 1.584ex * \l_@@_scale_abs_tl }
4497 }{
4498 \begin{tikzpicture}
4499 [
4500 /@@ ,
4501 x=2.4ex, y=2.4ex, line ~ width=0.12ex* \l_@@_scale_abs_tl ,scale=#1
4502 ]
4503 \shade[ball ~ color=#2] (0,0) circle [radius=0.33];
4504 \draw[black] (0.17,0.1) -- (0.05,0.1);
4505 \shade[ball ~ color=black] (-0.1,0.1) circle [radius=0.05];
4506 \draw[black] (-0.2,-0.1) .. controls (-0.1,-0.2) and (0.15,-0.2) .. (0.2,0);
4507 \end{tikzpicture}
4508 }
4509 }
4510 }
4511 % \end{macrocode}
4512 %\end{macro}
4513 %
4514 %
4515 %
4516 %
4517 %
4518 %
4519 %\begin{macro}{ \Sey }
4520 % \begin{macrocode}
4521 \@@_Declare_Document_Command:nnn { Sey } { S B{none} }
4522 {
4523 \@@_provide_savebox_and_use:nn { Sey_#1_#2 }
4524 {
4525 % % \@@_set_scale_abs_tl:n {#1}
4526 \bool_if:NTF \l_@@_if_opt_draft_bool
4527 {
4528 \@@_create_squared_draftbox:n { 1.704ex * \l_@@_scale_abs_tl }
4529 }{
4530 \begin{tikzpicture}
4531 [
4532 /@@ ,
4533 x=2.4ex, y=2.4ex, line ~ width=0.09ex* \l_@@_scale_abs_tl ,scale=#1
4534 ]
4535 \filldraw[fill=#2, line ~ width=0.12ex* \l_@@_scale_abs_tl ] (0,0) circle [radius=0.33];
4536 \fill (0.1,0.1) circle [radius=0.05];
4537 \fill (-0.1,0.1) circle [radius=0.05];
4538 \draw (-0.2,-0.08) .. controls (-0.0,-0.2) and (0.0,0) .. (0.2,-0.12);
4539 \end{tikzpicture}%
4540 }
4541 }
4542 }
4543 % \end{macrocode}
4544 %\end{macro}
4545 %
4546 %
4547 %
4548 %\begin{macro}{ \dSey }
4549 % \begin{macrocode}
4550 \@@_Declare_Document_Command:nnn { dSey } { S B{yellow} }
4551 {
4552 \@@_provide_savebox_and_use:nn { dSey_#1_#2 }
4553 {
4554 % % \@@_set_scale_abs_tl:n {#1}
4555 \bool_if:NTF \l_@@_if_opt_draft_bool
4556 {
4557 \@@_create_squared_draftbox:n { 1.584ex * \l_@@_scale_abs_tl }
4558 }{
4559 \begin{tikzpicture}
4560 [
4561 /@@ ,
4562 x=2.4ex, y=2.4ex, line ~ width=0.09ex* \l_@@_scale_abs_tl ,scale=#1
4563 ]
4564 \shade[ball ~ color=#2] (0,0) circle [radius=0.33];
4565 \shade[ball ~ color=black] (0.1,0.1) circle [radius=0.05];
4566 \shade[ball ~ color=black] (-0.1,0.1) circle [radius=0.05];
4567 \draw[black] (-0.2,-0.08) .. controls (-0.0,-0.2) and (0.0,0) .. (0.2,-0.12);
4568 \end{tikzpicture}%
4569 }
4570 }
4571 }
4572 % \end{macrocode}
4573 %\end{macro}
4574 %
4575 %
4576 %
4577 %
4578 %
4579 %
4580 %\begin{macro}{ \Xey }
4581 % \begin{macrocode}
4582 \@@_Declare_Document_Command:nnn { Xey } { S B{none} }
4583 {
4584 \@@_provide_savebox_and_use:nn { Xey_#1_#2 }
4585 {
4586 % % \@@_set_scale_abs_tl:n {#1}
4587 \bool_if:NTF \l_@@_if_opt_draft_bool
4588 {
4589 \@@_create_squared_draftbox:n { 1.704ex * \l_@@_scale_abs_tl }
4590 }{
4591 \begin{tikzpicture}
4592 [
4593 /@@ ,
4594 x=2.4ex, y=2.4ex, line ~ width=0.09ex* \l_@@_scale_abs_tl ,scale=#1
4595 ]
4596 \filldraw[fill=#2, line ~ width=0.12ex* \l_@@_scale_abs_tl ] (0,0) circle [radius=0.33];
4597 \foreach \xi in { 0.05 , -0.15 }
4598 \draw (\xi,0.05) -- ++ (0.1,0.1) (-\xi,0.05) -- ++ (-0.1,0.1);
4599 \draw (-0.2,-0.15) .. controls (-0.1,-0.06) and (0.1,-0.06) .. (0.2,-0.15);
4600 \end{tikzpicture}%
4601 }
4602 }
4603 }
4604 % \end{macrocode}
4605 %\end{macro}
4606 %
4607 %
4608 %\begin{macro}{ \dXey }
4609 % \begin{macrocode}
4610 \@@_Declare_Document_Command:nnn { dXey } { S B{yellow} }
4611 {
4612 \@@_provide_savebox_and_use:nn { dXey_#1_#2 }
4613 {
4614 % % \@@_set_scale_abs_tl:n {#1}
4615 \bool_if:NTF \l_@@_if_opt_draft_bool
4616 {
4617 \@@_create_squared_draftbox:n { 1.584ex * \l_@@_scale_abs_tl }
4618 }{
4619 \begin{tikzpicture}
4620 [
4621 /@@ ,
4622 x=2.4ex, y=2.4ex, line ~ width=0.09ex* \l_@@_scale_abs_tl ,scale=#1,
4623 black
4624 ]
4625 \fill[ball ~ color=#2, line ~ width=0.12ex* \l_@@_scale_abs_tl ]
4626 (0,0) circle [radius=0.33];
4627 \foreach \xi in { 0.05 , -0.15 }
4628 \draw (\xi,0.05) -- ++ (0.1,0.1) (-\xi,0.05) -- ++ (-0.1,0.1);
4629 \draw (-0.2,-0.15) .. controls (-0.1,-0.06) and (0.1,-0.06) .. (0.2,-0.15);
4630 \end{tikzpicture}%
4631 }
4632 }
4633 }
4634 % \end{macrocode}
4635 %\end{macro}
4636 %
4637 %
4638 %
4639 %
4640 %
4641 %
4642 %\begin{macro}{ \Innocey }
4643 % \begin{macrocode}
4644 \@@_Declare_Document_Command:nnn { Innocey } { S B{none} B{yellow} }
4645 {
4646 \@@_provide_savebox_and_use:nn { Innocey_#1_#2_#3 }
4647 {
4648 % % \@@_set_scale_abs_tl:n {#1}
4649 \bool_if:NTF \l_@@_if_opt_draft_bool
4650 {
4651 \@@_create_draftbox:nn
4652 { 1.73ex * \l_@@_scale_abs_tl }
4653 { 1.90899 ex * \l_@@_scale_abs_tl }
4654 }{
4655 \begin{tikzpicture}
4656 [
4657 /@@ ,
4658 x=2.4ex, y=2.4ex, line ~ width=0.12ex* \l_@@_scale_abs_tl, scale=#1
4659 ]
4660 \filldraw[fill=#2] (0,0) circle [radius=0.33];
4661 \fill (-0.1,0.1) circle [radius=0.05];
4662 \fill (0.1,0.1) circle [radius=0.05];
4663 \draw (-0.2,-0.1) .. controls (-0.1,-0.2) and (0.1,-0.2) .. (0.2,-0.1);
4664 % \end{macrocode}
4665 % Draws the colored halo inside, the next two are drawing the black
4666 % lines surrounding the colored line and completing the halo.
4667 % \begin{macrocode}
4668 \draw[#3, line ~ width=0.095ex* \l_@@_scale_abs_tl ]
4669 (0.32,0.31) arc
4670 [start ~ angle=0, end ~ angle=360, x ~ radius = 0.32 , y ~ radius=0.1];
4671 \draw[line ~ width=0.05ex* \l_@@_scale_abs_tl ]
4672 (0.3,0.31) arc
4673 [start ~ angle=0, end ~ angle=360, x ~ radius = 0.3 , y ~ radius=0.07];
4674 \draw[line ~ width=0.05ex* \l_@@_scale_abs_tl ]
4675 (0.35,0.31) arc
4676 [start ~ angle=0, end ~ angle=360, x ~ radius = 0.35 , y ~ radius=0.12];
4677 \end{tikzpicture}%
4678 }
4679 }
4680 }
4681 % \end{macrocode}
4682 %\end{macro}
4683 %
4684 % \begin{macro}{ \wInnocey }
4685 % A white one. I clear \Makro{g_@@_tikzsymbols_after_symbol_tl}
4686 % because otherwise the input of \Option{after-symbol}
4687 % is inserted twice.
4688 % \begin{macrocode}
4689 \@@_Declare_Document_Command:nnn { wInnocey } { S }
4690 {
4691 \group_begin:
4692 \tl_clear:N \l_@@_tikzsymbols_after_symbol_tl
4693 \tikzsymbolsuse { Innocey } [#1] [none] [white]
4694 \group_end:
4695 }
4696 % \end{macrocode}
4697 %\end{macro}
4698 %
4699 %
4700 %\begin{macro}{ \dInnocey }
4701 % \begin{macrocode}
4702 \@@_Declare_Document_Command:nnn { dInnocey } { S B{yellow} B{yellow} }
4703 {
4704 \@@_provide_savebox_and_use:nn { dInnocey_#1_#2_#3 }
4705 {
4706 % % \@@_set_scale_abs_tl:n {#1}
4707 \bool_if:NTF \l_@@_if_opt_draft_bool
4708 {
4709 \@@_create_draftbox:nn
4710 { 1.73ex * \l_@@_scale_abs_tl }
4711 { 1.84898ex * \l_@@_scale_abs_tl }
4712 }{
4713 \begin{tikzpicture}
4714 [
4715 /@@ ,
4716 x=2.4ex, y=2.4ex, line ~ width=0.12ex* \l_@@_scale_abs_tl ,scale=#1,
4717 black
4718 ]
4719 \shade[ball ~ color=#2] (0,0) circle [radius=0.33];
4720 \shade[ball ~ color=black] (-0.1,0.1) circle [radius=0.05];
4721 \shade[ball ~ color=black] (0.1,0.1) circle [radius=0.05];
4722 \draw[black] (-0.2,-0.1) .. controls (-0.1,-0.2) and (0.1,-0.2) .. (0.2,-0.1);
4723 % \end{macrocode}
4724 % Same as above (I think).
4725 % \begin{macrocode}
4726 \draw[color=#3!97!black, line ~ width=0.1ex* \l_@@_scale_abs_tl ]
4727 (0.32,0.31) arc [start ~ angle=0, end ~ angle=360, x ~ radius = 0.32 , y ~ radius=0.1];
4728 \draw[line ~ width=0.05ex* \l_@@_scale_abs_tl ]
4729 (0.3,0.31) arc [start ~ angle=0, end ~ angle=360, x ~ radius = 0.3 , y ~ radius=0.07];
4730 \draw[line ~ width=0.05ex* \l_@@_scale_abs_tl ]
4731 (0.35,0.31) arc [start ~ angle=0, end ~ angle=360, x ~ radius = 0.35 , y ~ radius=0.12];
4732 \end{tikzpicture}%
4733 }
4734 }
4735 }
4736 % \end{macrocode}
4737 %\end{macro}
4738 %
4739 %
4740 %
4741 %
4742 %
4743 %
4744 %\begin{macro}{ \Cooley }
4745 % It's the coolest Smiley around.
4746 % \begin{macrocode}
4747 \@@_Declare_Document_Command:nnn { Cooley } { S B{none} }
4748 {
4749 \@@_provide_savebox_and_use:nn { Cooley_#1_#2 }
4750 {
4751 % % \@@_set_scale_abs_tl:n {#1}
4752 \bool_if:NTF \l_@@_if_opt_draft_bool
4753 {
4754 \@@_create_squared_draftbox:n { 1.704ex * \l_@@_scale_abs_tl }
4755 }{
4756 \begin{tikzpicture}
4757 [
4758 /@@ ,
4759 x=2.4ex, y=2.4ex, line ~ width=0.12ex* \l_@@_scale_abs_tl ,scale=#1
4760 ]
4761 \filldraw[fill=#2] (0,0) circle [radius=0.33];
4762 \foreach \xi/\xii in { 0.24/0.01 , -0.24/-0.01 }
4763 \fill[rounded ~ corners=0.1ex* \l_@@_scale_abs_tl ]
4764 (\xi,0.15) -- (\xii,0.15) -- (\xii,0) -- (\xi,0) -- cycle;
4765 \draw (-0.2,-0.1) .. controls (-0.1,-0.2) and (0.1,-0.2) .. (0.2,-0.1);
4766 \draw (0.02,0.1) -- (-0.02,0.1);
4767 \draw (-0.2,0.1) -- (-0.3,0.13);
4768 \draw (0.2,0.1) -- (0.3,0.13);
4769 \end{tikzpicture}%
4770 }
4771 }
4772 }
4773 % \end{macrocode}
4774 %\end{macro}
4775 %
4776 %
4777 %\begin{macro}{ \dCooley }
4778 % \begin{macrocode}
4779 \@@_Declare_Document_Command:nnn { dCooley } { S B{yellow} }
4780 {
4781 \@@_provide_savebox_and_use:nn { dCooley_#1_#2 }
4782 {
4783 % % \@@_set_scale_abs_tl:n {#1}
4784 \bool_if:NTF \l_@@_if_opt_draft_bool
4785 {
4786 \@@_create_squared_draftbox:n { 1.584ex * \l_@@_scale_abs_tl }
4787 }{
4788 \begin{tikzpicture}
4789 [
4790 /@@ ,
4791 x=2.4ex, y=2.4ex, line ~ width=0.12ex* \l_@@_scale_abs_tl ,scale=#1
4792 ]
4793 \shade[ball ~ color=#2] (0,0) circle [radius=0.33];
4794 \draw[black] (0.02,0.1) -- (-0.02,0.1);
4795 \draw[black] (-0.2,0.1) -- (-0.295,0.146);
4796 \draw[black] (0.2,0.1) -- (0.295,0.146);
4797 \foreach \xi/\xii in { 0.24/0.01 , -0.24/-0.01 }
4798 \shade[ball ~ color=black,rounded ~ corners=0.1ex* \l_@@_scale_abs_tl ]
4799 (\xi,0.15) -- (\xii,0.15) -- (\xii,0) -- (\xi,0) -- cycle;
4800 \draw[black] (-0.2,-0.1) .. controls (-0.1,-0.2) and (0.1,-0.2) .. (0.2,-0.1);
4801 \end{tikzpicture}%
4802 }
4803 }
4804 }
4805 % \end{macrocode}
4806 %\end{macro}
4807 %
4808 %
4809 %
4810 %
4811 %
4812 %
4813 %\begin{macro}{ \Tongey }
4814 % Habe mir vorgenommen das hier zu verbessern, wird aber wohl noch
4815 % etwas brauchen.
4816 % \begin{macrocode}
4817 \@@_Declare_Document_Command:nnn { Tongey } { S B{none} B{none} }
4818 {
4819 \@@_provide_savebox_and_use:nn { Tongey_#1_#2_#3 }
4820 {
4821 % % \@@_set_scale_abs_tl:n {#1}
4822 \bool_if:NTF \l_@@_if_opt_draft_bool
4823 {
4824 \@@_create_squared_draftbox:n { 1.704ex * \l_@@_scale_abs_tl }
4825 }{
4826 \begin{tikzpicture}
4827 [
4828 /@@ ,
4829 x=2.4ex, y=2.4ex, line ~ width=0.12ex* \l_@@_scale_abs_tl ,scale=#1
4830 ]
4831 \filldraw[fill=#2] (0,0) circle [radius=0.33];
4832 \fill (-0.1,0.1) circle [radius=0.05];
4833 \fill (0.1,0.1) circle [radius=0.05];
4834 \filldraw
4835 [
4836 fill=#3, line ~ width=0.058ex* \l_@@_scale_abs_tl ,
4837 rounded ~ corners=0.12ex* \l_@@_scale_abs_tl
4838 ]
4839 (0,-0.09) -- (0.05,-0.2) -- (0.16,-0.23) -- (0.2,-0.15) -- (0.19,-0.03);
4840 \draw[line ~ width=0.07ex* \l_@@_scale_abs_tl , yshift=0.21ex]
4841 (-0.2,-0.1) .. controls (-0.1,-0.2) and (0.1,-0.2) .. (0.2,-0.1);
4842 \end{tikzpicture}%
4843 }
4844 }
4845 }
4846 % \end{macrocode}
4847 %\end{macro}
4848 %
4849 %
4850 %\begin{macro}{ \dTongey }
4851 % \begin{macrocode}
4852 \@@_Declare_Document_Command:nnn { dTongey } { S B{yellow} B{red} }
4853 {
4854 \@@_provide_savebox_and_use:nn { dTongey_#1_#2_#3 }
4855 {
4856 % % \@@_set_scale_abs_tl:n {#1}
4857 \bool_if:NTF \l_@@_if_opt_draft_bool
4858 {
4859 \@@_create_squared_draftbox:n { 1.584ex * \l_@@_scale_abs_tl }
4860 }{
4861 \begin{tikzpicture}
4862 [
4863 /@@ ,
4864 x=2.4ex, y=2.4ex, line ~ width=0.12ex* \l_@@_scale_abs_tl ,scale=#1
4865 ]
4866 \shade[ball ~ color=#2] (0,0) circle [radius=0.33];
4867 \shade[ball ~ color=black] (-0.1,0.1) circle [radius=0.05];
4868 \shade[ball ~ color=black] (0.1,0.1) circle [radius=0.05];
4869 \shadedraw
4870 [
4871 ball ~ color=#3, draw=black, line ~ width=0.058ex* \l_@@_scale_abs_tl ,
4872 rounded ~ corners=0.12ex* \l_@@_scale_abs_tl
4873 ]
4874 (0,-0.09) -- (0.05,-0.2) -- (0.16,-0.23) -- (0.2,-0.15) -- (0.19,-0.03);
4875 \draw[black, line ~ width=0.07ex* \l_@@_scale_abs_tl , yshift=0.21ex]
4876 (-0.2,-0.1) .. controls (-0.1,-0.2) and (0.1,-0.2) .. (0.2,-0.1);
4877 \end{tikzpicture}%
4878 }
4879 }
4880 }
4881 % \end{macrocode}
4882 %\end{macro}
4883 %
4884 %
4885 %
4886 %
4887 %
4888 %
4889 %\begin{macro}{ \Nursey }
4890 % \begin{macrocode}
4891 \@@_Declare_Document_Command:nnn { Nursey } { S B{none} B{none} B{} }
4892 {
4893 \@@_provide_savebox_and_use:nn { Nursey_#1_#2_#3_#4 }
4894 {
4895 % % \@@_set_scale_abs_tl:n {#1}
4896 \bool_if:NTF \l_@@_if_opt_draft_bool
4897 {
4898 \@@_create_draftbox:nn
4899 { 1.5ex * \l_@@_scale_abs_tl }
4900 { 2.19ex * \l_@@_scale_abs_tl }
4901 }{
4902 \begin{tikzpicture}
4903 [
4904 /@@ ,
4905 x=2.3ex, y=2.3ex, line ~ width=0.12ex* \l_@@_scale_abs_tl ,scale=#1
4906 ]
4907 \fill[fill=#3,rounded ~ corners=.023ex* \l_@@_scale_abs_tl ]
4908 (-0.3,0) -- (-0.3,0.3) -- (0,0.6) -- (0.3,0.3) -- (0.3,0);
4909 \filldraw[fill=#2] (0,0) circle [radius=0.3];
4910 \fill (-0.1,0.1) circle [radius=0.05];
4911 \fill (0.1,0.1) circle [radius=0.05];
4912 \draw[line ~ width=0.09ex* \l_@@_scale_abs_tl , yshift=0.07ex]
4913 (-0.2,-0.1) .. controls (-0.1,-0.2) and (0.1,-0.2) .. (0.2,-0.1);
4914 \draw[rounded ~ corners=.023ex* \l_@@_scale_abs_tl ]
4915 (-0.3,0) -- (-0.3,0.3) -- (0,0.6) -- (0.3,0.3) -- (0.3,0);
4916 \draw[#4,line ~ width=.046ex* \l_@@_scale_abs_tl ]
4917 (0,0.35) -- (0,0.5) (-0.05,0.45) -- (0.05,0.45) ;
4918 \end{tikzpicture}%
4919 }
4920 }
4921 }
4922 % \end{macrocode}
4923 %\end{macro}
4924 %
4925 %
4926 %\begin{macro}{ \dNursey }
4927 % \begin{macrocode}
4928 \@@_Declare_Document_Command:nnn { dNursey } { S B{yellow} B{white} B{red} }
4929 {
4930 \@@_provide_savebox_and_use:nn { dNursey_#1_#2_#3_#4 }
4931 {
4932 % \@@_set_scale_abs_tl:n {#1}
4933 \bool_if:NTF \l_@@_if_opt_draft_bool
4934 {
4935 \@@_create_draftbox:nn
4936 { 1.38ex * \l_@@_scale_abs_tl }
4937 { 1.98001ex * \l_@@_scale_abs_tl }
4938 }{
4939 \begin{tikzpicture}
4940 [
4941 /@@ ,
4942 x=2.3ex, y=2.3ex, line ~ width=0.12ex* \l_@@_scale_abs_tl ,scale=#1
4943 ]
4944 \shade[ball ~ color=#2] (0,0) circle [radius=0.3];
4945 \shade[ball ~ color=black] (-0.1,0.1) circle [radius=0.05];
4946 \shade[ball ~ color=black] (0.1,0.1) circle [radius=0.05];
4947 \draw[black, line ~ width=0.09ex* \l_@@_scale_abs_tl , yshift=0.07ex]
4948 (-0.2,-0.1) .. controls (-0.1,-0.2) and (0.1,-0.2) .. (0.2,-0.1);
4949 \shade
4950 [
4951 ball ~ color=#3, rounded ~ corners=.023ex* \l_@@_scale_abs_tl ,
4952 yshift=-0.09ex
4953 ]
4954 (-0.3,0) -- (-0.3,0.3) -- (0,0.6) -- (0.3,0.3) --
4955 (0.3,0) arc [start ~ angle=0, end ~ angle=180, radius=0.3];
4956 \shade[ball ~ color=#4,line ~ width=.046ex* \l_@@_scale_abs_tl ]
4957 (-0.01,0.31) -- (-0.01,0.46) -- (0.01,0.46) -- (0.01,0.31)--cycle;
4958 \shade[ball ~ color=#4,line ~ width=.046ex* \l_@@_scale_abs_tl ]
4959 (-0.05,0.4) -- (0.05,0.4) -- (0.05,0.42) -- (-0.05,0.42) -- cycle;
4960 \end{tikzpicture}%
4961 }
4962 }
4963 }
4964 % \end{macrocode}
4965 %\end{macro}
4966 %
4967 %
4968 %
4969 %
4970 %
4971 %
4972 %\begin{macro}{ \Vomey }
4973 % \begin{macrocode}
4974 \@@_Declare_Document_Command:nnn { Vomey } { S B{none} B{opacity=0} }
4975 {
4976 \@@_provide_savebox_and_use:nn { Vomey_#1_#2_#3 }
4977 {
4978 % \@@_set_scale_abs_tl:n {#1}
4979 \bool_if:NTF \l_@@_if_opt_draft_bool
4980 {
4981 \@@_create_draftbox:nn
4982 { 3.03335ex * \l_@@_scale_abs_tl }
4983 { 1.743ex * \l_@@_scale_abs_tl }
4984 }{
4985 \begin{tikzpicture}
4986 [
4987 /@@ ,
4988 x=0.58ex,y=0.58ex, line ~ width=0.09ex* \l_@@_scale_abs_tl ,scale=#1
4989 ]
4990 \filldraw[fill=#2,rounded ~ corners=0.05ex* \l_@@_scale_abs_tl ]
4991 (0,0) arc [start ~ angle=15, end ~ angle=330, radius=1] -- (-0.6,-0.3) -- cycle;
4992 \draw[line ~ width=0.05ex* \l_@@_scale_abs_tl ] (-0.5,0.3) -- (-0.3,0.1);
4993 \fill (-0.45,0.27) arc [start ~ angle=100, end ~ angle=350, radius=0.1];
4994 \fill[#3] (1.8,-0.5) .. controls (2.5,-0.3) and (2.8,-0.7) .. (2.5,-1) ..
4995 controls (3,-1) and (3,-1.7) .. (2,-1.5) ..
4996 controls (1.7,-2) and (1,-2) .. (1,-1.5) ..
4997 controls (0.5,-1.9) and (0.3,-1) .. (0.7,-0.9);
4998 \fill[#3] (0,-0.4) .. controls (1,0) and (2,-1) .. (2,-1) ..
4999 controls (1.7,-1.2) and (1.3,-1.2) .. (1,-1) ..
5000 controls (0.8,-0.7) and (0.5,-0.5) .. (0,-0.4);
5001 % \draw (0,-0.4) .. controls (1,0) and (2,-1) .. (2,-1);
5002 % \draw (0,-0.4) .. controls (0.5,-0.5) and (0.8,-0.7) .. (1,-1);
5003 \draw[rounded ~ corners=0.1ex* \l_@@_scale_abs_tl ]
5004 (1,-1) .. controls (0.8,-0.7) and (0.5,-0.5) ..
5005 (0,-0.4) .. controls (1,0) and (2,-1) .. (2,-1);
5006 \draw (1.8,-0.5) .. controls (2.5,-0.3) and (2.8,-0.7) .. (2.5,-1) ..
5007 controls (3,-1) and (3,-1.7) .. (2,-1.5) .. controls (1.7,-2)
5008 and (1,-2) .. (1,-1.5) .. controls (0.5,-1.9) and (0.3,-1) .. (0.7,-0.9);
5009 \end{tikzpicture}%
5010 }
5011 }
5012 }
5013 % \end{macrocode}
5014 %\end{macro}
5015 %
5016 %\begin{macro}{ \dVomey }
5017 % \begin{macrocode}
5018 \@@_Declare_Document_Command:nnn { dVomey } { S B{yellow} B{brown!10!olive} }
5019 {
5020 \@@_provide_savebox_and_use:nn { dVomey_#1_#2_#3 }
5021 {
5022 % \@@_set_scale_abs_tl:n {#1}
5023 \bool_if:NTF \l_@@_if_opt_draft_bool
5024 {
5025 \@@_create_draftbox:nn
5026 { 2.94336 ex * \l_@@_scale_abs_tl }
5027 { 1.653ex * \l_@@_scale_abs_tl }
5028 }{
5029 \begin{tikzpicture}
5030 [
5031 /@@ ,
5032 x=0.58ex,y=0.58ex, line ~ width=0.09ex* \l_@@_scale_abs_tl ,scale=#1
5033 ]
5034 \shade
5035 [
5036 ball ~ color=#2!90!brown,
5037 rounded ~ corners=0.03ex * \l_@@_scale_abs_tl ,
5038 ]
5039 (0,0) arc [start ~ angle=15, end ~ angle=330, radius=1] -- (-0.6,-0.3) -- cycle;
5040 \draw[black, line ~ width=0.05ex* \l_@@_scale_abs_tl ]
5041 (-0.5,0.3) -- (-0.3,0.1);
5042 \shade[ball ~ color=black]
5043 (-0.45,0.27) arc [start ~ angle=100, end ~ angle=350, radius=0.1];
5044 \shade[ball ~ color=#3]
5045 (1.8,-0.5) .. controls (2.5,-0.3) and (2.8,-0.7) .. (2.5,-1) ..
5046 controls (3,-1) and (3,-1.7) .. (2,-1.5) ..
5047 controls (1.7,-2) and (1,-2) .. (1,-1.5) ..
5048 controls (0.5,-1.9) and (0.3,-1) .. (0.7,-0.9);
5049 \shade[ball ~ color=#3]
5050 (0,-0.4) .. controls (1,0) and (2,-1) .. (2,-1) .. controls
5051 (1.7,-1.2) and (1.3,-1.2) .. (1,-1) .. controls
5052 (0.8,-0.7) and (0.5,-0.5) .. (0,-0.4);
5053 \end{tikzpicture}%
5054 }
5055 }
5056 }
5057 % \end{macrocode}
5058 %\end{macro}
5059 %
5060 %
5061 %
5062 %
5063 %
5064 %
5065 %\begin{macro}{ \Walley }
5066 % \begin{macrocode}
5067 \@@_Declare_Document_Command:nnn { Walley } { S B{none} B{none} }
5068 {
5069 \@@_provide_savebox_and_use:nn { Walley_#1_#2_#3 }
5070 {
5071 % \@@_set_scale_abs_tl:n {#1}
5072 \bool_if:NTF \l_@@_if_opt_draft_bool
5073 {
5074 \@@_create_draftbox:nn
5075 { 2.341ex * \l_@@_scale_abs_tl }
5076 { 1.674ex * \l_@@_scale_abs_tl }
5077 }{
5078 \begin{tikzpicture}
5079 [
5080 /@@ ,
5081 x=2.4ex, y=2.4ex, line ~ width=0.09ex* \l_@@_scale_abs_tl ,scale=#1,
5082 decoration=
5083 {
5084 % random ~ steps,
5085 segment ~ length=0.15ex* \l_@@_scale_abs_tl ,
5086 amplitude=0.1ex* \l_@@_scale_abs_tl
5087 }
5088 ]
5089 \filldraw[fill=#2, line ~ width=0.08ex* \l_@@_scale_abs_tl ] (0,0) circle [radius=0.28];
5090 \filldraw[fill=#3] (0.28,-0.33) rectangle (0.66,0.33);
5091 \draw[line ~ width=0.06ex* \l_@@_scale_abs_tl ]
5092 (0.28,0) --++(0.05,0.07) --++(0.03,0.02) --+
5093 +(0.03,-0.02) --++(0.03,0.1) --++(0.03,0.02) -- (0.5,0.25);
5094 \draw[line ~ width=0.06ex* \l_@@_scale_abs_tl ]
5095 (0.28,0) --++(0.06,-0.02) --++(0.04,0.06) --++
5096 (0.0,-0.08) --++(0.08,0.06) --++(0.03,-0.02) --+
5097 (0.08,0.02) -- (0.6,0.0);
5098 \draw[line ~ width=0.06ex* \l_@@_scale_abs_tl ]
5099 (0.28,0) --++(0.03,-0.02) --++(0.03,-0.07) --+
5100 +(0.03,-0.01) --++(0.01,-0.07) --++(0.06,0.01) --++
5101 (0.03,-0.08) -- (0.5,0.-0.25);
5102 \draw[rotate=-20] (0.12,0.1) -- (0.2,0.05);
5103 \draw[rotate=-20] (0.27,-0.1) .. controls (0.2,-0.072)
5104 and (0.1,-0.06) .. (0.,-0.1);
5105 \end{tikzpicture}%
5106 }
5107 }
5108 }
5109 % \end{macrocode}
5110 %\end{macro}
5111 %
5112 %\begin{macro}{ \rWalley }
5113 % \begin{macrocode}
5114 \@@_Declare_Document_Command:nnn { rWalley } { S B{none} B{none} }
5115 {
5116 \@@_provide_savebox_and_use:nn { rWalley_#1_#2_#3 }
5117 {
5118 % \@@_set_scale_abs_tl:n {#1}
5119 \bool_if:NTF \l_@@_if_opt_draft_bool
5120 {
5121 \@@_create_draftbox:nn
5122 { 2.341ex * \l_@@_scale_abs_tl }
5123 { 1.674ex * \l_@@_scale_abs_tl }
5124 }{
5125 \begin{tikzpicture}
5126 [
5127 /@@ ,
5128 x=2.4ex, y=2.4ex, line ~ width=0.09ex* \l_@@_scale_abs_tl ,scale=#1,
5129 decoration=
5130 {
5131 random ~ steps, segment ~ length=0.15ex* \l_@@_scale_abs_tl ,
5132 amplitude=0.1ex* \l_@@_scale_abs_tl
5133 }
5134 ]
5135 \filldraw[fill=#2, line ~ width=0.08ex* \l_@@_scale_abs_tl ] (0,0) circle [radius=0.28];
5136 \filldraw[fill=#3] (0.28,-0.33) rectangle (0.66,0.33);
5137 \foreach \x/\y in { 0.5/0.25 , 0.6/0 , 0.5/-0.25 }
5138 \draw[decorate, line ~ width=0.06ex* \l_@@_scale_abs_tl ]
5139 (0.28,0) -- (\x,\y);
5140 \draw[rotate=-20] (0.12,0.1) -- (0.2,0.05);
5141 \draw[rotate=-20] (0.27,-0.1) .. controls (0.2,-0.072)
5142 and (0.1,-0.06) .. (0.,-0.1);
5143 \end{tikzpicture}%
5144 }
5145 }
5146 }
5147 % \end{macrocode}
5148 %\end{macro}
5149 %
5150 %\begin{macro}{ \dWalley }
5151 % \begin{macrocode}
5152 \@@_Declare_Document_Command:nnn { dWalley } { S B{yellow} }
5153 {
5154 \@@_provide_savebox_and_use:nn { dWalley_#1_#2 }
5155 {
5156 % \@@_set_scale_abs_tl:n {#1}
5157 \bool_if:NTF \l_@@_if_opt_draft_bool
5158 {
5159 \@@_create_draftbox:nn
5160 { 2.42879ex * \l_@@_scale_abs_tl }
5161 { 1.6008ex * \l_@@_scale_abs_tl }
5162 }{
5163 \begin{tikzpicture}
5164 [
5165 /@@ ,
5166 x=2.4ex, y=2.4ex, line ~ width=0.09ex* \l_@@_scale_abs_tl ,scale=#1,
5167 black
5168 ]
5169 \shade[ball ~ color=orange!80!black] (0.298,-0.33) rectangle (0.692,0.337);
5170 \draw[line ~ width=0.06ex* \l_@@_scale_abs_tl ]
5171 (0.28,0) --++(0.05,0.07) --++(0.03,0.02) --+
5172 +(0.03,-0.02) --++(0.03,0.1) --++(0.03,0.02) -- (0.5,0.25);
5173 \draw[line ~ width=0.06ex* \l_@@_scale_abs_tl ]
5174 (0.28,0) --++(0.06,-0.02) --++(0.04,0.06) --++
5175 (0.0,-0.08) --++(0.08,0.06) --++(0.03,-0.02) --+
5176 (0.08,0.02) -- (0.6,0.0);
5177 \draw[line ~ width=0.06ex* \l_@@_scale_abs_tl ]
5178 (0.28,0) --++(0.03,-0.02) --++(0.03,-0.07) --++
5179 (0.03,-0.01) --++(0.01,-0.07) --++
5180 (0.06,0.01) --++(0.03,-0.08) -- (0.5,0.-0.25);
5181 \shade[ball ~ color=#2] (-0.01,0) circle [radius=0.31];
5182 \draw[rotate=-20] (0.12,0.1) -- (0.2,0.05);
5183 \draw[rotate=-20] (0.283,-0.1) .. controls (0.2,-0.072)
5184 and (0.1,-0.06) .. (0,-0.1);
5185 \end{tikzpicture}%
5186 }
5187 }
5188 }
5189 % \end{macrocode}
5190 %\end{macro}
5191 %
5192 %\begin{macro}{ \drWalley }
5193 % \begin{macrocode}
5194 \@@_Declare_Document_Command:nnn { drWalley } { S B{yellow} }
5195 {
5196 \@@_provide_savebox_and_use:nn { drWalley_#1_#2 }
5197 {
5198 % \@@_set_scale_abs_tl:n {#1}
5199 \bool_if:NTF \l_@@_if_opt_draft_bool
5200 {
5201 \@@_create_draftbox:nn
5202 { 2.42879ex * \l_@@_scale_abs_tl }
5203 { 1.6008ex * \l_@@_scale_abs_tl }
5204 }{
5205 \begin{tikzpicture}
5206 [
5207 /@@ ,
5208 x=2.4ex, y=2.4ex, line ~ width=0.09ex* \l_@@_scale_abs_tl ,
5209 scale=#1, black, decoration=
5210 {
5211 random ~ steps,segment ~ length=0.15ex* \l_@@_scale_abs_tl ,
5212 amplitude=0.1ex* \l_@@_scale_abs_tl
5213 }
5214 ]
5215 \shade[ball ~ color=orange!80!black] (0.298,-0.33) rectangle (0.692,0.337);
5216 \foreach \x/\y in { 0.5/0.25 , 0.6/0 , 0.5/-0.25 }
5217 \draw[decorate, line ~ width=0.06ex* \l_@@_scale_abs_tl ]
5218 (0.298,0) -- (\x,\y);
5219 \shade[ball ~ color=#2] (-0.01,0) circle [radius=0.31];
5220 \draw[rotate=-20] (0.12,0.1) -- (0.2,0.05);
5221 \draw[rotate=-20] (0.283,-0.1) .. controls (0.2,-0.072)
5222 and (0.1,-0.06) .. (0.,-0.1);
5223 \end{tikzpicture}%
5224 }
5225 }
5226 }
5227 % \end{macrocode}
5228 %\end{macro}
5229 %
5230 %
5231 % \begin{macro}{ \@@_Cat:n, \@@_Cat_unknown:n, \@@_Cat_dead:n }
5232 % \begin{macrocode}
5233 \cs_new:Npn \@@_Cat:n #1
5234 {
5235 \draw (0,0) circle [radius=0.3];
5236 \foreach \xi/\xii in { 0.3/0.35 }
5237 {
5238 \draw[rounded ~ corners=0.163ex* \l_@@_scale_abs_tl ]
5239 (-\xi,0) -- (-\xii,0.5) -- (0,\xi) (0,\xi) -- (\xii,0.5) -- (\xi,0);
5240 }
5241 \fill (-0.15,.15) circle [radius=0.05];
5242 \fill (0.15,.15) circle [radius=0.05];
5243 \foreach \x in { 0.1 , -0.1 }
5244 \draw[rounded ~ corners=0.175ex* \l_@@_scale_abs_tl ,yshift=-0.12ex]
5245 (0,0) -- (0,-0.1) -- (\x,-0.095);
5246 \draw[rounded ~ corners=.12ex* \l_@@_scale_abs_tl ,yshift=-.15ex,
5247 line ~ width=0.03em*0.9* \l_@@_scale_abs_tl ]
5248 (-0.1,0.1) -- (0,0) -- (0.1,0.1) -- cycle ;
5249 \foreach \a/\b/\c/\d in
5250 { 0.1/0.25/0.35/0.4 , -0.1/-0.25/-0.35/-0.4 }
5251 \foreach \yi/\yii/\yiii in
5252 { 0/0/-0.05 , -0.01/-0.09/-0.14 , -0.045/-0.13/-0.23 }
5253 {
5254 \draw[line ~ width=0.035ex* \l_@@_scale_abs_tl ]
5255 (\a,-0.05)..controls(\b,\yi)and(\c,\yii).. (\d,\yiii);
5256 }
5257 }
5258 \cs_new:Npn \@@_Cat_unknown:n #1
5259 {
5260 \draw (0,0) circle [radius=0.3];
5261 \foreach \xi/\xii in { 0.3/0.35 }
5262 {
5263 \draw[rounded ~ corners=0.163ex* \l_@@_scale_abs_tl ]
5264 (-\xi,0) -- (-\xii,0.5) -- (0,\xi)
5265 (0,\xi) -- (\xii,0.5) -- (\xi,0);
5266 }
5267 \fill (0,-0.18) circle [radius=0.04];
5268 \draw
5269 (0,0.06) arc[start ~angle=-90, end ~angle=180, radius=0.075]
5270 (0,0.06) arc[start ~angle=90, end ~angle=360, radius=0.075];
5271 \foreach \case in { 1,-1 }
5272 \foreach \yi/\yii/\yiii in
5273 {
5274 -0.01/-0.05/-0.08 ,
5275 -0.02/-0.12/-0.16 ,
5276 -0.055/-0.15/-0.25
5277 }{
5278 \draw[line ~ width=0.035ex* \l_@@_scale_abs_tl ]
5279 ({0.1*\case},-0.05)..controls({\case*0.25},\yi)
5280 and({0.35*\case},\yii).. ({0.4*\case},\yiii);
5281 }
5282 }
5283 \cs_new:Npn \@@_Cat_dead:n #1
5284 {
5285 \draw (0,0) circle [radius=0.3];
5286 \foreach \case in { 1,-1 }
5287 {
5288 \draw[rounded ~ corners=0.163ex* \l_@@_scale_abs_tl ]
5289 ({\case*0.3},0) -- ({\case*0.35},0.5) -- (0,0.3);
5290 }
5291 \draw
5292 \foreach \angle in { 45,135,225,315 }
5293 {
5294 (0.13,0.13) -- ({0.13+0.07*cos(\angle)},{0.13+0.07*sin(\angle)})
5295 (-0.13,0.13) -- ({-0.13+0.07*cos(\angle)},{0.13+0.07*sin(\angle)})
5296 }
5297 ;
5298 \foreach \case in { 1,-1 }
5299 \draw[rounded ~ corners=0.175ex* \l_@@_scale_abs_tl ,yshift=-0.12ex]
5300 (0,0) -- (0,-0.08) -- ({0.09*\case},-0.12);
5301 \draw[rounded ~ corners=.12ex* \l_@@_scale_abs_tl ,yshift=-.15ex,
5302 line ~ width=0.03em*0.9* \l_@@_scale_abs_tl ]
5303 (0,0) -- (0.1,0.07) -- (0,0.1)-- (-0.1,0.07) -- cycle ;
5304 \foreach \case in {-1,1}
5305 \foreach \yi/\yii/\yiii in
5306 {
5307 -0.04/-0.09/-0.15 ,
5308 -0.05/-0.18/-0.23,
5309 -0.085/-0.22/-0.31
5310 }{
5311 \draw[line ~ width=0.035ex* \l_@@_scale_abs_tl ]
5312 ({0.1*\case},-0.05)
5313 .. controls ({0.18*\case},\yi) and ({0.28*\case},\yii) ..
5314 ({0.33*\case},\yiii);
5315 }
5316 \draw [transparent,line ~ width=0.035ex*\l_@@_scale_abs_tl] (-0.4,0) -- (0.4,0);
5317 }
5318 % \end{macrocode}
5319 % \end{macro}
5320 %
5321 %\begin{macro}{ \Cat }
5322 % It is a Ket! (sic!)
5323 % \begin{macrocode}
5324 \@@_Declare_Document_Command:nnn { Cat } { S }
5325 {
5326 \@@_provide_savebox_and_use:nn { Cat_#1 }
5327 {
5328 % \@@_set_scale_abs_tl:n {#1}
5329 \bool_if:NTF \l_@@_if_opt_draft_bool
5330 {
5331 \@@_create_draftbox:nn
5332 { 1.89899ex * \l_@@_scale_abs_tl }
5333 { 1.957ex * \l_@@_scale_abs_tl }
5334 }{
5335 \begin{tikzpicture}
5336 [
5337 /@@ ,
5338 x=2.33ex,y=2.33ex, line ~ width=0.093ex* \l_@@_scale_abs_tl ,scale=#1
5339 ]
5340 \@@_Cat:n {#1}
5341 \end{tikzpicture}%
5342 }
5343 }
5344 }
5345 % \end{macrocode}
5346 %\end{macro}
5347 %
5348 %
5349 %
5350 %\begin{macro}{ \SchrodingersCat }
5351 % It is a Ket! (sic!)
5352 % \begin{macrocode}
5353 \@@_Declare_Document_Command:nnn { SchrodingersCat } { S m }
5354 {
5355 \@@_provide_savebox_and_use:nn { SchrodingersCat_#1_#2 }
5356 {
5357 % \@@_set_scale_abs_tl:n {#1}
5358 \bool_if:NTF \l_@@_if_opt_draft_bool
5359 {
5360 \@@_create_draftbox:nn
5361 { 1.89899ex * \l_@@_scale_abs_tl }
5362 { 1.957ex * \l_@@_scale_abs_tl }
5363 }{
5364 \begin{tikzpicture}
5365 [
5366 /@@ ,
5367 x=2.33ex,y=2.33ex, line ~ width=0.093ex* \l_@@_scale_abs_tl ,scale=#1
5368 ]
5369 \int_case:nnF {#2}
5370 {
5371 { 1 } { \@@_Cat:n {#1} }
5372 { 0 } { \@@_Cat_unknown:n {#1} }
5373 { -1 } { \@@_Cat_dead:n {#1} }
5374 }
5375 { \msg_error:nnn { tikzsymbols } { SchrodingersCat } {#2} }
5376 \end{tikzpicture}%
5377 }
5378 }
5379 }
5380 % \end{macrocode}
5381 %\end{macro}
5382 %
5383 %
5384 %
5385 %
5386 %
5387 % \begin{macro}{ \Ninja }
5388 % It can hide.
5389 % \begin{macrocode}
5390 \@@_Declare_Document_Command:nnn { Ninja } { S B{black} B{red} B{white} }
5391 {
5392 \@@_provide_savebox_and_use:nn { Ninja_#1_#2_#3_#4 }
5393 {
5394 % \@@_set_scale_abs_tl:n {#1}
5395 \bool_if:NTF \l_@@_if_opt_draft_bool
5396 {
5397 \@@_create_draftbox:nn
5398 { 2.149ex * \l_@@_scale_abs_tl }
5399 { 1.717ex * \l_@@_scale_abs_tl }
5400 }{
5401 \begin{tikzpicture}
5402 [
5403 /@@ ,
5404 x=2.4ex, y=2.4ex, line ~ width=0.09ex* \l_@@_scale_abs_tl ,
5405 scale=#1, decoration=
5406 {
5407 random ~ steps,segment ~ length=0.1ex* \l_@@_scale_abs_tl ,
5408 amplitude=0.1ex* \l_@@_scale_abs_tl
5409 }
5410 ]
5411 \tl_set:Nn \l_tmpa_tl {#2}
5412 \fill[#2] (0,0) circle [radius=0.33];
5413 \fill[decoration={random ~ steps,segment ~ length=0.1ex* \l_@@_scale_abs_tl ,
5414 amplitude=0.01ex* \l_@@_scale_abs_tl }, decorate,#3]
5415 (-0.33,0) -- (0.33,0) -- (0.23,0.23) -- (-0.23,0.23) -- cycle;
5416 \tl_if_eq:NNT \c_@@_black_tl \l_tmpa_tl
5417 {
5418 \draw[line ~ width=0.08ex* \l_@@_scale_abs_tl ] (0,0) circle [radius=0.33];
5419 }
5420 \fill[#3] (0,0.1) -- (-0.33,0) -- (-0.26,0.23);
5421 \fill[#3] (0.3465,0) arc [start ~ angle=0, end ~ angle=42, x ~ radius=0.34, y~ radius=0.345] --
5422 (0.2,0.23)-- (0.31,0.0) -- cycle;
5423 \fill[#3] (-0.3465,0) arc [start ~ angle=0, end ~ angle=-42, x ~ radius=-0.34, y~ radius=-0.345] --
5424 (-0.2,0.23)-- (-0.31,0.0) -- cycle;
5425 \fill[#4] (0.129,0.1425) arc [start ~ angle=55, end ~ angle=-180, radius=0.05];
5426 \fill[#4] (-0.129,0.1425) arc [start ~ angle=-55, end ~ angle=180, radius=-0.05];
5427 \foreach \x in { (0.5,0.35) , (0.53,0.1) }
5428 \draw
5429 [
5430 decorate,decoration=
5431 {
5432 snake,amplitude=.1ex* \l_@@_scale_abs_tl ,
5433 segment ~ length=0.55ex* \l_@@_scale_abs_tl
5434 } , #3
5435 ]
5436 (0.26,0.21) -- \x;
5437 \tl_if_eq:NNF \c_@@_black_tl \l_tmpa_tl
5438 {
5439 \draw[line ~ width=0.08ex* \l_@@_scale_abs_tl ] (0,0) circle [radius=0.33];
5440 }
5441 \end{tikzpicture}%
5442 }
5443 }
5444 }
5445 % \end{macrocode}
5446 %\end{macro}
5447 %
5448 %
5449 %\begin{macro}{ \dNinja }
5450 % \begin{macrocode}
5451 \@@_Declare_Document_Command:nnn { dNinja } { S B{black} B{red} B{white} }
5452 {
5453 \@@_provide_savebox_and_use:nn { dNinja_#1_#2_#3_#4 }
5454 {
5455 % \@@_set_scale_abs_tl:n {#1}
5456 \bool_if:NTF \l_@@_if_opt_draft_bool
5457 {
5458 \@@_create_draftbox:nn
5459 { 2.1498ex * \l_@@_scale_abs_tl }
5460 { 1.7178ex * \l_@@_scale_abs_tl }
5461 }{
5462 \begin{tikzpicture}
5463 [
5464 /@@ ,
5465 x=2.4ex, y=2.4ex, line ~ width=0.09ex* \l_@@_scale_abs_tl ,
5466 scale=#1, decoration=
5467 {
5468 random ~ steps,segment ~ length=0.1ex* \l_@@_scale_abs_tl ,
5469 amplitude=0.1ex* \l_@@_scale_abs_tl
5470 }
5471 ]
5472 \foreach \length/\coord in { 0.55/{(0.5,0.35)} , 0.5/{(0.53,0.1)} }
5473 \draw
5474 [
5475 decorate,decoration=
5476 {
5477 snake,amplitude=.1ex* \l_@@_scale_abs_tl ,
5478 segment ~ length=\length ex* \l_@@_scale_abs_tl
5479 } , decorate, #3!50!black
5480 ]
5481 \coord -- (0.26,0.21);
5482 \shade[ball ~ color=#2] (0,0) circle [radius=0.347];
5483 \fill
5484 [
5485 decoration=
5486 {
5487 random ~ steps,segment ~ length=0.1ex* \l_@@_scale_abs_tl ,
5488 amplitude=0.01ex* \l_@@_scale_abs_tl
5489 } , ball ~ color=#3
5490 ]
5491 decorate {(-0.33,0) -- (0.3465,0) }
5492 {arc [start ~ angle=0, end ~ angle=42, x ~ radius=0.34,y~ radius=0.345]}
5493 decorate {-- (-0.25,0.24)}
5494 { arc [start ~ angle=-42, end ~ angle=0, x ~ radius=-0.375,y~ radius=-0.345]};
5495 % Frag mich nicht, was das macht.
5496 % \shade[ball ~ color=#4] (0.129,0.1425) arc [start ~ angle=55, end ~ angle=-180, radius=0.05];
5497 % \shade[ball ~ color=#4] (-0.129,0.1425) arc [start ~ angle=-55, end ~ angle=180, radius=-0.05];
5498 \shade[top ~ color=#4!80!black, bottom ~ color=#4]
5499 (0.129,0.1425) arc [start ~ angle=55, end ~ angle=-180, radius=0.05];
5500 \shade[top ~ color=#4!80!black, bottom ~ color=#4]
5501 (-0.129,0.1425) arc [start ~ angle=-55, end ~ angle=180, radius=-0.05];
5502 \end{tikzpicture}%
5503 }
5504 }
5505 }
5506 % \end{macrocode}
5507 %\end{macro}
5508 %
5509 %
5510 %
5511 %
5512 % \begin{macro}{ \Sleepey }
5513 % It is sleeping.
5514 % \begin{macrocode}
5515 \@@_Declare_Document_Command:nnn { Sleepey } { S B{none} B{none} B{black} }
5516 {
5517 \@@_provide_savebox_and_use:nn { Sleepey_#1_#2_#3_#4 }
5518 {
5519 % \@@_set_scale_abs_tl:n {#1}
5520 \bool_if:NTF \l_@@_if_opt_draft_bool
5521 {
5522 \@@_create_draftbox:nn
5523 { 2.084866ex * \l_@@_scale_abs_tl }
5524 { 1.5912ex * \l_@@_scale_abs_tl }
5525 }{
5526 \begin{tikzpicture}
5527 [
5528 /@@ ,
5529 x=2.04ex, y=2.04ex, line ~ width=0.102ex* \l_@@_scale_abs_tl ,
5530 scale=#1
5531 ]
5532 % %% Hat
5533 \filldraw [fill=#3]
5534 (-0.33,0) arc[start~angle=180,end~angle=0,x~radius=0.45,y~radius=0.4]
5535 -- ++(0,-0.2)
5536 arc[start~angle=0,end~angle=130,x~radius=0.15,y~radius=0.24];
5537 % %% face
5538 \filldraw [fill=#2,rounded ~ corners=0.001ex * \l_@@_scale_abs_tl]
5539 (0.33,0) arc[start~angle=0, end~angle=-180, radius=0.33] -- cycle ;
5540 % %% Pommel
5541 \fill (0.55,-0.15) circle [radius=0.06];
5542 \foreach \l_@@_angle_tl in {0,30,60,...,360}
5543 {
5544 \draw ({0.55+0.06*cos(\l_@@_angle_tl)*1.2},
5545 {-0.15+0.06*sin(\l_@@_angle_tl)*1.2})
5546 circle[radius=0.02];
5547 }
5548 % %% Stars
5549 \foreach \l_tmpa_tl/\l_tmpb_tl in { -0.14/0.12 , 0.19/0.12 , 0.05/0.26 , 0.40/0.16 }
5550 {
5551 \draw [line~width=0.04ex*\l_@@_scale_abs_tl ,#4]
5552 \foreach \l_@@_angle_tl in { 0,45,90,...,360 }
5553 {
5554 (\l_tmpa_tl,\l_tmpb_tl) -- ({\l_tmpa_tl+0.07*cos(\l_@@_angle_tl)},
5555 {\l_tmpb_tl+0.07*sin(\l_@@_angle_tl)})
5556 }
5557 ;
5558 }
5559 % %% Mouth
5560 \fill (0,-0.225) circle [radius=0.04];
5561 % %% Eyes
5562 \draw (-0.1,-0.09) arc[start~angle=0, end~angle=-180,
5563 x~radius=0.06,y~radius=0.08] ;
5564 \draw (0.1,-0.09) arc[start~angle=180,
5565 end~angle=360,x~radius=0.06,y~radius=0.08] ;
5566 \end{tikzpicture}%
5567 }
5568 }
5569 }
5570 % \end{macrocode}
5571 %\end{macro}
5572 %
5573 % \begin{macro}{ \dSleepey }
5574 % It is sleeping.
5575 % \begin{macrocode}
5576 \@@_Declare_Document_Command:nnn { dSleepey } { S B{yellow} B{blue} B{black} }
5577 {
5578 \@@_provide_savebox_and_use:nn { dSleepey_#1_#2_#3_#4 }
5579 {
5580 % \@@_set_scale_abs_tl:n {#1}
5581 \bool_if:NTF \l_@@_if_opt_draft_bool
5582 {
5583 \@@_create_draftbox:nn
5584 { 2.033865ex * \l_@@_scale_abs_tl }
5585 { 1.489181ex * \l_@@_scale_abs_tl }
5586 }{
5587 \begin{tikzpicture}
5588 [
5589 /@@ ,
5590 x=2.04ex, y=2.04ex, line ~ width=0.102ex* \l_@@_scale_abs_tl ,
5591 scale=#1
5592 ]
5593 % %% Hat
5594 \shade [ball ~ color=#3]
5595 (-0.33,0) arc[start~angle=180,end~angle=0,x~radius=0.45,y~radius=0.4]
5596 -- ++(0,-0.2)
5597 arc[start~angle=0,end~angle=130,x~radius=0.15,y~radius=0.24];
5598 % %% face
5599 \shade [ball ~ color=#2,rounded ~ corners=0.001ex * \l_@@_scale_abs_tl]
5600 (0.33,0) arc[start~angle=0, end~angle=-180, radius=0.33] -- cycle ;
5601 % %% Pommel
5602 \fill (0.55,-0.15) circle [radius=0.06];
5603 \foreach \l_@@_angle_tl in {0,30,60,...,360}
5604 {
5605 \draw ({0.55+0.06*cos(\l_@@_angle_tl)*1.2},
5606 {-0.15+0.06*sin(\l_@@_angle_tl)*1.2})
5607 circle[radius=0.02];
5608 }
5609 % %% Stars
5610 \foreach \l_tmpa_tl/\l_tmpb_tl in { -0.14/0.12 , 0.19/0.12 , 0.05/0.26 , 0.40/0.16 }
5611 {
5612 \draw [line~width=0.04ex* \l_@@_scale_abs_tl,#4]
5613 \foreach \l_@@_angle_tl in { 0,45,90,...,360 }
5614 {
5615 (\l_tmpa_tl,\l_tmpb_tl) -- ({\l_tmpa_tl+0.07*cos(\l_@@_angle_tl)},
5616 {\l_tmpb_tl+0.07*sin(\l_@@_angle_tl)})
5617 }
5618 ;
5619 }
5620 % %% Mouth
5621 \fill (0,-0.225) circle [radius=0.04];
5622 % %% Eyes
5623 \draw (-0.1,-0.09) arc[start~angle=0, end~angle=-180,
5624 x~radius=0.06,y~radius=0.08] ;
5625 \draw (0.1,-0.09) arc[start~angle=180,
5626 end~angle=360,x~radius=0.06,y~radius=0.08] ;
5627 \end{tikzpicture}%
5628 }
5629 }
5630 }
5631 % \end{macrocode}
5632 %\end{macro}
5633 %
5634 %
5635 % \begin{macro}{ \Maskey }
5636 % It is sleeping.
5637 % \begin{macrocode}
5638 \@@_Declare_Document_Command:nnn { Maskey } { S B{none} B{none} }
5639 {
5640 \@@_provide_savebox_and_use:nn { Maskey_#1_#2_#3 }
5641 {
5642 % \@@_set_scale_abs_tl:n {#1}
5643 \bool_if:NTF \l_@@_if_opt_draft_bool
5644 {
5645 \@@_create_squared_draftbox:n { 1.704ex * \l_@@_scale_abs_tl }
5646 }{
5647 \begin{tikzpicture}
5648 [
5649 /@@,
5650 x=2.4ex, y=2.4ex, line ~ width=0.12ex*\l_@@_scale_abs_tl , scale=\l_@@_scale_abs_tl
5651 ]
5652 \filldraw[fill=#2] (0,0) circle [radius=0.33];
5653 \fill (-0.1,0.1) circle [radius=0.05];
5654 \fill (0.1,0.1) circle [radius=0.05];
5655 \filldraw[fill=#3] (-0.18,-0.19) .. controls (-0.08,-0.23) and (0.08,-0.23) .. (0.18,-0.19)
5656 .. controls (0.22,-0.15) and (0.24,-0.05) .. (0.24,-0.00)
5657 .. controls (0.1,0.03) and (-0.1,0.03) .. (-0.24,-0.00)
5658 .. controls (-0.24,-0.05) and (-0.22,-0.15) .. cycle
5659 ;
5660 \draw (0.24,-0.0) -- (0.33,0.06);
5661 \draw (-0.24,-0.0) -- (-0.33,0.06);
5662 \draw (-0.18,-0.19) -- (-0.25,-0.24);
5663 \draw (0.18,-0.19) -- (0.25,-0.24);
5664 \end{tikzpicture}%
5665 }
5666 }
5667 }
5668 % \end{macrocode}
5669 %\end{macro}
5670 %
5671 % \begin{macro}{ \NiceReapey }
5672 % I wasn't able to create a good Grim Reaper. Well.
5673 % \begin{macrocode}
5674 \@@_Declare_Document_Command:nnn { NiceReapey } { S B{black!20!white} }
5675 {
5676 \@@_provide_savebox_and_use:nn { NiceReapey_#1_#2 }
5677 {
5678 % \@@_set_scale_abs_tl:n {#1}
5679 \bool_if:NTF \l_@@_if_opt_draft_bool
5680 {
5681 \@@_create_draftbox:nn
5682 { (1.10667em + 0.07ex) * \l_@@_scale_abs_tl }
5683 { (0.693em+0.07ex) * \l_@@_scale_abs_tl }
5684 }{
5685 \begin{tikzpicture}
5686 [
5687 /@@ ,
5688 x=0.11em,y=0.11em, line ~ width=0.07ex* \l_@@_scale_abs_tl ,scale=#1
5689 ]
5690 \draw (1.7,-1) arc [start ~ angle=360, end ~ angle=180, x ~ radius=1.7, y ~ radius=2]
5691 arc [start ~ angle=260, end ~ angle=110, x ~ radius=1.5,y ~ radius=2]
5692 .. controls (-1,3.3) and (1,3.3) .. (1.9,2.97)
5693 arc [start ~ angle=260, end ~ angle=100, x ~ radius=-1.3, y ~ radius=-2] -- cycle;
5694 \filldraw[fill=#2] (3,-3) -- (3,3) .. controls (5,3) and
5695 (6,2) .. (7,1.5) -- (3,1.5) -- cycle;
5696 \draw (0,-1.5) circle [ x~radius=1 , y~radius= 0.5];
5697 \draw (0,-1.5) circle [ x~radius=1 , y~radius= 0.5];
5698 \foreach \x in { 0.2 , 0.6 }
5699 \draw[line ~ width=0.04ex* \l_@@_scale_abs_tl ]
5700 (\x,-1) -- (\x,-2) (-\x,-1) -- (-\x,-2) ;
5701 \draw[line ~ width=0.04ex* \l_@@_scale_abs_tl ] (-1,-1.5) -- (1,-1.5);
5702 \fill (1.25,1.25) circle [ x~radius=0.5 , y~radius= 0.75];
5703 \fill (-1.25,1.25) circle [ x~radius=0.5 , y~radius= 0.75];
5704 \end{tikzpicture}%
5705 }
5706 }
5707 }
5708 % \end{macrocode}
5709 %\end{macro}
5710 %
5711 %
5712 %
5713 % \subsection{Other symbols(s)}
5714 %
5715 %\begin{macro}{ \@@_Strichmaxerl_x_check:N }
5716 % A helper command. This command checks if the length is greater then
5717 % the radius of the circle.
5718 % \begin{macrocode}
5719 \cs_new:Npn \@@_Strichmaxerl_x_check:N #1
5720 {
5721 \fp_compare:nNnTF {#1} > { 0 }
5722 {
5723 \fp_compare:nNnTF {#1} < { 0.18 }
5724 { \fp_zero:N #1 }
5725 { \fp_set:Nn #1 { #1 - 0.18 } }
5726 }
5727 {
5728 \fp_compare:nNnTF {#1} > { - 0.18 }
5729 { \fp_zero:N #1 }
5730 { \fp_set:Nn #1 { #1 + 0.18 } }
5731 }
5732 }
5733 % \end{macrocode}
5734 %\end{macro}
5735 %
5736 %
5737 %
5738 %
5739 %
5740 %
5741 %\begin{macro}{ \@@_Strichmaxerl_if_smaller_zero_set_zero:N }
5742 % Again to write less.
5743 % \begin{macrocode}
5744 \cs_new:Npn \@@_Strichmaxerl_if_smaller_zero_set_zero:N #1
5745 {
5746 \fp_compare:nNnT {#1} < { 0 } { \fp_zero:N #1 }
5747 }
5748 % \end{macrocode}
5749 %\end{macro}
5750 %
5751 %
5752 %
5753 %
5754 %
5755 %
5756 %\begin{macro}{ \Strichmaxerl }
5757 % \begin{macrocode}
5758 \@@_Declare_Document_Command:nnn { Strichmaxerl }
5759 { S B{-22} B{22} B{27} B{-27} }
5760 {
5761 \@@_provide_savebox_and_use:nn
5762 { Strichmaxerl_#1_#2_#3_#4_#5 }
5763 {
5764 % \@@_set_scale_abs_tl:n {#1}
5765 \bool_if:NTF \l_@@_if_opt_draft_bool
5766 {
5767 % \end{macrocode}
5768 %
5769 % Now we have to calculate the length and the height of the separate
5770 % parts of the \verb|\Strichmaxerl|.
5771 %
5772 % At first the lengths (they have all an \verb|x| in the name). \par
5773 % \verb|LA| for \enquote{linker Arm} (\emph{left arm}). \par
5774 % \verb|RA| for \enquote{rechter Arm} (\emph{right arm}). \par
5775 % \verb|LB| for \enquote{linkes Bein} (\emph{left leg}). \par
5776 % \verb|RB| for \enquote{rechtes Bein} (\emph{right leg}). \par
5777 % \begin{macrocode}
5778 \fp_set:Nn \l_@@_Strichmaxerl_x_LA_fp { -0.27 * cosd (#2) }
5779 \fp_set:Nn \l_@@_Strichmaxerl_x_RA_fp { 0.27 * cosd (#3) }
5780 \fp_set:Nn \l_@@_Strichmaxerl_x_RB_fp { 0.34 * sind (#4) }
5781 \fp_set:Nn \l_@@_Strichmaxerl_x_LB_fp { 0.34 * sind (#5) }
5782 % \end{macrocode}
5783 %
5784 % Now the height (\verb|y|): \par
5785 % \verb|LA| for \enquote{linker Arm} (\emph{left arm}). \par
5786 % \verb|RA| for \enquote{rechter Arm} (\emph{right arm}). \par
5787 % \verb|LB| for \enquote{linkes Bein} (\emph{left leg}). \par
5788 % \verb|RB| for \enquote{rechtes Bein} (\emph{right leg}). \par
5789 % \begin{macrocode}
5790 \fp_set:Nn \l_@@_Strichmaxerl_y_LA_fp { 0.27 * sind (#2) }
5791 \fp_set:Nn \l_@@_Strichmaxerl_y_RA_fp { 0.27 * sind (#3) }
5792 \fp_set:Nn \l_@@_Strichmaxerl_y_RB_fp { 0.34 * cosd (#4) }
5793 \fp_set:Nn \l_@@_Strichmaxerl_y_LB_fp { 0.34 * cosd (#5) }
5794 % \end{macrocode}
5795 % Well then, lets start our calculations. Firstly the length.
5796 %
5797 %^^A X
5798 %
5799 % \begin{macrocode}
5800 \@@_Strichmaxerl_x_check:N \l_@@_Strichmaxerl_x_LA_fp
5801 \@@_Strichmaxerl_x_check:N \l_@@_Strichmaxerl_x_RA_fp
5802 \@@_Strichmaxerl_x_check:N \l_@@_Strichmaxerl_x_LB_fp
5803 \@@_Strichmaxerl_x_check:N \l_@@_Strichmaxerl_x_RB_fp
5804 % \end{macrocode}
5805 %
5806 %
5807 %
5808 %
5809 %
5810 %
5811 % \begin{macrocode}
5812 \fp_set:Nn \@@_Strichmaxerl_x_max_fp
5813 {
5814 max
5815 (
5816 0 , \l_@@_Strichmaxerl_x_LA_fp , \l_@@_Strichmaxerl_x_RA_fp,
5817 \l_@@_Strichmaxerl_x_LB_fp , \l_@@_Strichmaxerl_x_RB_fp
5818 )
5819 }
5820 \fp_set:Nn \@@_Strichmaxerl_x_min_fp
5821 {
5822 min
5823 (
5824 0 , \l_@@_Strichmaxerl_x_LA_fp , \l_@@_Strichmaxerl_x_RA_fp,
5825 \l_@@_Strichmaxerl_x_LB_fp , \l_@@_Strichmaxerl_x_RB_fp
5826 )
5827 }
5828 % \end{macrocode}
5829 %
5830 %^^A Y
5831 %
5832 % Finished the length. Now we calculate our height. Arms and legs more
5833 % or less separate.
5834 %
5835 % Arms: First we subtract $0.2$ (= adding $-0.2$) (torso length)
5836 %
5837 % \begin{macrocode}
5838 \fp_set:Nn \l_@@_Strichmaxerl_y_LA_fp { \l_@@_Strichmaxerl_y_LA_fp - 0.2 }
5839 \fp_set:Nn \l_@@_Strichmaxerl_y_RA_fp { \l_@@_Strichmaxerl_y_RA_fp - 0.2 }
5840 % \end{macrocode}
5841 % Arms and Legs: if they are smaller than $0$, make them $0$.
5842 % \begin{macrocode}
5843 \@@_Strichmaxerl_if_smaller_zero_set_zero:N \l_@@_Strichmaxerl_y_LA_fp
5844 \@@_Strichmaxerl_if_smaller_zero_set_zero:N \l_@@_Strichmaxerl_y_RA_fp
5845 \@@_Strichmaxerl_if_smaller_zero_set_zero:N \l_@@_Strichmaxerl_y_LB_fp
5846 \@@_Strichmaxerl_if_smaller_zero_set_zero:N \l_@@_Strichmaxerl_y_RB_fp
5847 % \end{macrocode}
5848 %
5849 % And find the greatest number.
5850 % \begin{macrocode}
5851 \fp_set:Nn \@@_Strichmaxerl_y_max
5852 {
5853 max
5854 (
5855 0 , \l_@@_Strichmaxerl_y_LA_fp , \l_@@_Strichmaxerl_y_RA_fp,
5856 \l_@@_Strichmaxerl_y_LB_fp , \l_@@_Strichmaxerl_y_RB_fp
5857 )
5858 }
5859 % \end{macrocode}
5860 %
5861 %
5862 %
5863 %
5864 %
5865 %
5866 % \begin{macrocode}
5867 \@@_create_draftbox:nn
5868 {
5869 (
5870 0.60597ex +1.35ex * \@@_Strichmaxerl_x_max_fp
5871 -1.35ex * \@@_Strichmaxerl_x_min_fp
5872 ) * \l_@@_scale_abs_tl
5873 }{
5874 ( 1.173ex + 1.35ex * \@@_Strichmaxerl_y_max
5875 ) * \l_@@_scale_abs_tl
5876 }
5877 }{
5878 \begin{tikzpicture}
5879 [
5880 /@@ ,
5881 line ~ width=0.12ex* \l_@@_scale_abs_tl , scale=#1, x=1.35ex, y=1.35ex
5882 ]
5883 \char_set_catcode_other:N :
5884 %% LB
5885 \draw[rotate \space around= { #5 \token_to_str:N : ( 0.15 , 0.2 ) } ] (0.15,0.2) -- (0.15,-0.14);
5886 %% RB
5887 \draw[rotate \space around= { #4 \token_to_str:N : ( 0.15 , 0.2 ) } ] (0.15,0.2) -- (0.15,-0.14);
5888 \draw (.15,.2) -- (.15,.4);
5889 %% RA
5890 \draw[rotate \space around={ #3 \token_to_str:N : ( 0.15 , 0.4) } ] (0.15,0.4) -- (0.42,0.4);
5891 %% LA
5892 \draw[rotate \space around={ #2 \token_to_str:N : ( 0.15 , 0.4) } ] (0.15,0.4) -- (-0.12,0.4);
5893 \draw (.15, .4) -- (.15, .53);
5894 \draw (.15,.8) circle [radius=0.18];
5895 \end{tikzpicture}
5896 }
5897 }
5898 }
5899 % \end{macrocode}
5900 %\end{macro}
5901 %
5902 %
5903 %
5904 %\begin{macro}{ \Person }
5905 % \begin{macrocode}
5906 \@@_Declare_Document_Command:nnn { Person } { S B{-22} B{22} B{27} B{-27} }
5907 {
5908 \msg_error:nnnn
5909 { tikzsymbols }
5910 { obsolete-command }
5911 { \Person }
5912 { \Strichmaxerl }
5913 \tikzsymbolsuse { Strichmaxerl } [#1] [#2] [#3] [#4] [#5]
5914 }
5915 % \end{macrocode}
5916 %\end{macro}
5917 %
5918 %
5919 %
5920 %
5921 %\begin{macro}{ \Heart }
5922 % \begin{macrocode}
5923 \bool_if:NF \g_@@_if_opt_marvosym_bool
5924 {
5925 \@@_Declare_Document_Command:nnn { Heart } { S B{none} }
5926 {
5927 \@@_provide_savebox_and_use:nn { Heart_#1_#2 }
5928 {
5929 % \@@_set_scale_abs_tl:n {#1}
5930 \bool_if:NTF \l_@@_if_opt_draft_bool
5931 {
5932 \@@_create_draftbox:nn
5933 { 1.97ex * \l_@@_scale_abs_tl }
5934 { 1.97ex * \l_@@_scale_abs_tl }
5935 }{
5936 \begin{tikzpicture}
5937 [
5938 /@@ ,
5939 x=0.185ex,y=0.185ex, scale=#1, line ~ width=0.12ex* \l_@@_scale_abs_tl
5940 ]
5941 \filldraw[fill=#2] (0,-0.1) .. controls (-0.1,4) and (5,4) .. (5,0)
5942 .. controls (5,-3) and (1,-6) .. (0,-6)
5943 .. controls (-1,-6) and (-5,-3) .. (-5,0)
5944 .. controls (-5,4) and (0.1,4) .. cycle
5945 ;
5946 \end{tikzpicture}%
5947 }
5948 }
5949 }
5950 }
5951 % \end{macrocode}
5952 %\end{macro}
5953 %\begin{macro}{ \dHeart }
5954 % \begin{macrocode}
5955 \@@_Declare_Document_Command:nnn { dHeart } { S B{red} }
5956 {
5957 \@@_provide_savebox_and_use:nn { dHeart_#1_#2 }
5958 {
5959 % \@@_set_scale_abs_tl:n {#1}
5960 \bool_if:NTF \l_@@_if_opt_draft_bool
5961 {
5962 \@@_create_draftbox:nn
5963 { 1.93ex * \l_@@_scale_abs_tl }
5964 { 1.93ex * \l_@@_scale_abs_tl }
5965 }{
5966 \begin{tikzpicture}
5967 [
5968 /@@ ,
5969 x=0.185ex,y=0.185ex, scale=#1
5970 ]
5971 \fill[ball ~ color=#2] (0,0)
5972 .. controls (-0.62,4.2) and (5.2,4.2) .. (5.2,0)
5973 .. controls (5.2,-3.2) and (1.2,-6.2) .. (0,-6.2)
5974 .. controls (-1.2,-6.2) and (-5.2,-3.2) .. (-5.2,0)
5975 .. controls (-5.2,4.2) and (0.62,4.2) .. cycle
5976 ;
5977 \end{tikzpicture}%
5978 }
5979 }
5980 }
5981 % \end{macrocode}
5982 %\end{macro}
5983 %
5984 %
5985 %\begin{macro}{ \HeartBroken }
5986 % \begin{macrocode}
5987 \@@_Declare_Document_Command:nnn { HeartBroken } { S B{none} }
5988 {
5989 \@@_provide_savebox_and_use:nn { HeartBroken_#1_#2 }
5990 {
5991 % \@@_set_scale_abs_tl:n {#1}
5992 \bool_if:NTF \l_@@_if_opt_draft_bool
5993 {
5994 \@@_create_draftbox:nn
5995 { 1.93ex * \l_@@_scale_abs_tl }
5996 { 1.93ex * \l_@@_scale_abs_tl }
5997 }{
5998 \begin{tikzpicture}
5999 [
6000 /@@ ,
6001 x=0.185ex,y=0.185ex, scale=#1, line ~ width=0.08ex* \l_@@_scale_abs_tl
6002 ]
6003 \draw[fill=#2] (0,0) .. controls (-0.2,4) and (5,4) .. (5,0)
6004 .. controls (5,-3) and (1,-6) .. (0,-6)
6005 .. controls (-1,-6) and (-5,-3) .. (-5,0)
6006 .. controls (-5,4) and (0.2,4) .. (0,0)
6007 -- (0.5,-1) -- (-0.5,-2) -- (0.5,-3) -- (-0.5,-4) -- (0.5,-5) -- (0,-6);
6008 ;
6009 \end{tikzpicture}%
6010 }
6011 }
6012 }
6013 % \end{macrocode}
6014 %\end{macro}
6015 %
6016 %
6017 %\begin{macro}{ \Candle }
6018 % \begin{macrocode}
6019 \@@_Declare_Document_Command:nnn { Candle } { S }
6020 {
6021 \@@_provide_savebox_and_use:nn { Candle_#1 }
6022 {
6023 % \@@_set_scale_abs_tl:n {#1}
6024 \bool_if:NTF \l_@@_if_opt_draft_bool
6025 {
6026 \@@_create_draftbox:nn
6027 { 0.63998ex * \l_@@_scale_abs_tl }
6028 { 1.754993ex * \l_@@_scale_abs_tl }
6029 }{
6030 \begin{tikzpicture}
6031 [
6032 /@@ ,
6033 x=1ex, y=1ex, scale=#1, line ~ width=0.07ex* \l_@@_scale_abs_tl
6034 ]
6035 \draw[rounded ~ corners=0.04ex* \l_@@_scale_abs_tl ]
6036 (0,0) -- (0.2,0) -- +(0,1) -- (0,1) -- cycle;
6037 \draw[line ~ width=0.05ex* \l_@@_scale_abs_tl ] (0.1,1) -- (0.1,1.2);
6038 \foreach \x in { -0.2 , 0.4 }
6039 \draw[line ~ width=0.04ex* \l_@@_scale_abs_tl ]
6040 (0.1,1.1) .. controls (\x,1.3) and (0.1,1.5) .. (0.1,1.7);
6041 \end{tikzpicture}%
6042 }
6043 }
6044 }
6045 % \end{macrocode}
6046 %\end{macro}
6047 %
6048 %
6049 %
6050 %
6051 %
6052 %
6053 %\begin{macro}{ \Fire }
6054 % Not quite happy with the |xshift| and |yshift| and |rotate|,
6055 % but it works.
6056 % \begin{macrocode}
6057 \@@_Declare_Document_Command:nnn { Fire } { S }
6058 {
6059 \@@_provide_savebox_and_use:nn { Fire_#1 }
6060 {
6061 % \@@_set_scale_abs_tl:n {#1}
6062 \bool_if:NTF \l_@@_if_opt_draft_bool
6063 {
6064 \@@_create_draftbox:nn
6065 { 1.576ex * \l_@@_scale_abs_tl }
6066 { 1.640942ex * \l_@@_scale_abs_tl }
6067 }{
6068 \begin{tikzpicture}
6069 [
6070 /@@ ,
6071 x=1ex, y=1ex, scale=#1, line ~ width=0.07ex* \l_@@_scale_abs_tl ,
6072 rotate=45,
6073 ]
6074 \fill (-0.05,0) -- (0.05,0) -- (0.05,0.95) -- (-0.05,0.95) -- cycle;
6075 \fill (-0.74,0.7) -- (0.19,0.7) -- (0.19,0.8) -- (-0.74,0.8) -- cycle;
6076 \fill[rotate=-20, xshift=-0.275ex, yshift=-0.02ex]
6077 (-0.05,0.07) -- (0.05,0.07) -- (0.05,0.9) -- (-0.05,0.9) -- cycle;
6078 \fill[rotate=-70, xshift=-0.7ex, yshift=-0.49ex]
6079 (-0.05,0.07) -- (0.05,0.07) -- (0.05,0.9) -- (-0.05,0.9) -- cycle;
6080 \fill[rotate=135, xshift=0.53ex, yshift=-0.805ex]
6081 (-0.05,0.07) -- (0.05,0.07) -- (0.05,0.9) -- (-0.05,0.9) -- cycle;
6082 \draw
6083 [
6084 rotate=-45, xshift=-0.56ex, yshift=0.32ex,
6085 line ~ width=0.04ex* \l_@@_scale_abs_tl , x=0.5ex, y=0.5ex
6086 ]
6087 (-0.1,0.29) .. controls (-0.7,0.6) and (0,1.2) .. (0.05,1.7);
6088 \draw
6089 [
6090 rotate=-45, xshift=-0.455ex,yshift=0.32ex,
6091 line ~ width=0.04ex* \l_@@_scale_abs_tl , x=0.5ex, y=0.5ex
6092 ]
6093 (-0.1,0.29) .. controls (0.7,0.6) and (-0.1,1.2) .. (-0.15,1.7);
6094 \draw[rotate=-45, xshift=-0.53ex] (-0.1,0.29) .. controls
6095 (-0.7,0.6) and (0,1.2) .. (0,1.5);
6096 \draw[rotate=-45, xshift=-0.424ex] (-0.1,0.29) .. controls
6097 (0.7,0.6) and (-0.1,1.2) .. (-0.1,1.5);
6098 \end{tikzpicture}%
6099 }
6100 }
6101 }
6102 % \end{macrocode}
6103 %\end{macro}
6104 %
6105 %
6106 %
6107 %
6108 %
6109 %
6110 %\begin{macro}{ \Coffeecup }
6111 % \begin{macrocode}
6112 \bool_if:NF \g_@@_if_opt_marvosym_bool
6113 {
6114 \@@_Declare_Document_Command:nnn { Coffeecup } { S }
6115 {
6116 \@@_provide_savebox_and_use:nn { Coffeecup_#1 }
6117 {
6118 % \@@_set_scale_abs_tl:n {#1}
6119 \bool_if:NTF \l_@@_if_opt_draft_bool
6120 {
6121 \@@_create_draftbox:nn
6122 { 1.82ex * \l_@@_scale_abs_tl }
6123 { 1.705ex * \l_@@_scale_abs_tl }
6124 }{
6125 \begin{tikzpicture}
6126 [
6127 /@@ ,
6128 x=0.7ex,y=0.7ex, scale=#1,
6129 line ~ width=0.07ex* \l_@@_scale_abs_tl , decoration=
6130 {
6131 snake,amplitude=.05ex* \l_@@_scale_abs_tl ,
6132 segment ~ length=0.408ex* \l_@@_scale_abs_tl
6133 }
6134 ]
6135 \draw (0,0) arc [start ~ angle=180, end ~ angle=270, x ~ radius=0.8,y ~ radius=1] --++
6136 (0.5,0) arc [start ~ angle=270, end ~ angle=360, x ~ radius=0.8,y ~ radius=1] -- cycle;
6137 \draw (2.1,-0.15) -- (2.2,-0.15) arc [start ~ angle=90, end ~ angle=-90, radius=0.3] -- (1.85, -0.75);
6138 \foreach \x in {0.4,1,1.6}
6139 \draw[line ~ width=0.05ex* \l_@@_scale_abs_tl , decorate]
6140 (\x,0.3) -- +(0,1);
6141 \draw (0,-1.05) -- (2.1,-1.05);
6142 \end{tikzpicture}%
6143 }
6144 }
6145 }
6146 }
6147 % \end{macrocode}
6148 %\end{macro}
6149 %
6150 %
6151 %
6152 %
6153 %
6154 %
6155 %\begin{macro}{ \Chair }
6156 % \begin{macrocode}
6157 \@@_Declare_Document_Command:nnn { Chair } { S }
6158 {
6159 \@@_provide_savebox_and_use:nn { Chair_#1 }
6160 {
6161 % \@@_set_scale_abs_tl:n {#1}
6162 \bool_if:NTF \l_@@_if_opt_draft_bool
6163 {
6164 \@@_create_draftbox:nn
6165 { 0.97ex * \l_@@_scale_abs_tl }
6166 { 1.69ex * \l_@@_scale_abs_tl }
6167 }{
6168 \fp_compare:nNnT {#1} < { 0 } { \bool_set_true:N \l_@@_if_scale_negative_bool }
6169 \begin{tikzpicture}
6170 [
6171 /@@ ,
6172 x=0.9ex,y=0.9ex, scale=#1, line ~ width=0.07ex* \l_@@_scale_abs_tl
6173 ]
6174 \draw (0,-0.5) -- (0,0.7) -- (0.5,1) -- (0.5,0.25);
6175 \draw[line ~ width=0.06ex* \l_@@_scale_abs_tl ] (0,0.4) -- (0.5,0.7);
6176 \draw (0,0) -- (0.5,0.3) -- (1,0) --(1,-0.5);
6177 \bool_if:NT \l_@@_if_scale_negative_bool
6178 { \draw (0.5,0.3) -- +(0,-0.5); }
6179 \draw (0.5,-0.3) -- (0.5,-0.8);
6180 \draw (1,0) -- (0.5,-0.3) -- (0,0);
6181 \end{tikzpicture}%
6182 }
6183 \bool_set_false:N \l_@@_if_scale_negative_bool
6184 }
6185 }
6186 % \end{macrocode}
6187 %\end{macro}
6188 %
6189 %
6190 %
6191 %
6192 %
6193 %
6194 %\begin{macro}{ \Bed }
6195 % \begin{macrocode}
6196 \@@_Declare_Document_Command:nnn { Bed } { S }
6197 {
6198 \@@_provide_savebox_and_use:nn { Bed_#1 }
6199 {
6200 % \@@_set_scale_abs_tl:n {#1}
6201 \bool_if:NTF \l_@@_if_opt_draft_bool
6202 {
6203 \@@_create_draftbox:nn
6204 { 3.08ex * \l_@@_scale_abs_tl }
6205 { 1.68ex * \l_@@_scale_abs_tl }
6206 }{
6207 \begin{tikzpicture}
6208 [
6209 /@@ ,
6210 x=1ex , y=1ex , scale=#1 , line ~ width=0.08ex*\l_@@_scale_abs_tl
6211 ]
6212 \draw (0,0) -- (0,1.6);
6213 \draw (3,0) -- (3,1.2);
6214 \draw (0,0.5) -- (3,0.5);
6215 \draw (0,0.35) -- (3,0.35);
6216 \draw (0.7,0.5) arc [start ~ angle=0, end ~ angle=90, radius=0.7];
6217 \draw (0.7,0.5) arc [start ~ angle=180, end ~ angle=30, x ~ radius=1.231,y ~ radius=0.6];
6218 \end{tikzpicture}%
6219 }
6220 }
6221 }
6222 % \end{macrocode}
6223 %\end{macro}
6224 %
6225 %
6226 %
6227 %
6228 %
6229 %
6230 %\begin{macro}{ \Tribar }
6231 % \begin{macrocode}
6232 \@@_Declare_Document_Command:nnn { Tribar }
6233 { S B{opacity=0} B{opacity=0} B{opacity=0} }
6234 {
6235 \@@_provide_savebox_and_use:nn { Tribar_#1_#2_#3_#4 }
6236 {
6237 % \@@_set_scale_abs_tl:n {#1}
6238 \bool_if:NTF \l_@@_if_opt_draft_bool
6239 {
6240 \@@_create_draftbox:nn
6241 { 1.71746ex * \l_@@_scale_abs_tl }
6242 { 1.68497ex * \l_@@_scale_abs_tl }
6243 }{
6244 \begin{tikzpicture}
6245 [
6246 /@@ ,
6247 x=0.65ex,y=0.65ex,scale=#1,
6248 rounded ~ corners=0.03ex* \l_@@_scale_abs_tl ,
6249 line ~ width=0.06ex* \l_@@_scale_abs_tl
6250 ]
6251 \fill[#2] (0.15,0.3) -- (-0.15,-0.3) -- (1.75,-0.3) -- ++ (-0.15,-0.3)
6252 -- (-0.65,-0.6) -- (0.35,1.3) -- +(0.15,-0.3);
6253 \fill[#3] (0,0) -- (1.3,0) -- (0.35,1.9) -- (0.65,1.9) --
6254 (1.75,-0.3) -- (-0.1,-0.3);
6255 \fill[#4] (1,0) -- (0.35,1.3) -- (-0.65,-0.6) -- ++
6256 (-0.15,0.3) -- (0.35,1.9) -- (1.3,0);
6257 \draw (0,0) -- (1,0) -- (0.5,1) -- cycle;
6258 \draw (0.15,0.3) -- (-0.15,-0.3) -- (1.75,-0.3) -- ++ (-0.15,-0.3)
6259 -- (-0.65,-0.6) -- (0.35,1.3) -- (0.8,.4);
6260 \draw (0.9,0) -- (1.3,0) -- (0.35,1.9) -- (0.65,1.9) --
6261 (1.75,-0.3) -- +(-0.05,-0.1);
6262 \draw (-0.6,-0.6) -- (-0.65,-0.6) -- ++ (-0.15,0.3) -- (0.35,1.9) -- (0.4,1.9);
6263 \end{tikzpicture}%
6264 }
6265 }
6266 }
6267 % \end{macrocode}
6268 %\end{macro}
6269 %
6270 %
6271 %
6272 %
6273 %
6274 %
6275 %\begin{macro}{ \Moai }
6276 % \begin{macrocode}
6277 \@@_Declare_Document_Command:nnn { Moai } { S }
6278 {
6279 \@@_provide_savebox_and_use:nn { Moai_#1 }
6280 {
6281 % \@@_set_scale_abs_tl:n {#1}
6282 \fp_compare:nNnTF { \l_@@_scale_abs_tl } < { 2 }
6283 {
6284 \dim_set:Nn \l_@@_Moai_thickness_dim { 0.05ex }
6285 }{
6286 \fp_compare:nNnTF { \l_@@_scale_abs_tl } < { 5 }
6287 { \dim_set:Nn \l_@@_Moai_thickness_dim { 0.035ex } }
6288 { \dim_set:Nn \l_@@_Moai_thickness_dim { 0.03ex } }
6289 }
6290 \bool_if:NTF \l_@@_if_opt_draft_bool
6291 {
6292 \@@_create_draftbox:nn
6293 { ( 1.00102ex + \l_@@_Moai_thickness_dim ) * \l_@@_scale_abs_tl }
6294 { ( 1.66404ex + \l_@@_Moai_thickness_dim ) * \l_@@_scale_abs_tl }
6295 }{
6296 \begin{tikzpicture}
6297 [
6298 /@@ ,
6299 x=.13ex, y=.13ex, rounded ~ corners=0.01ex* \l_@@_scale_abs_tl ,
6300 scale=#1,
6301 line ~ width= \dim_use:N \l_@@_Moai_thickness_dim * \l_@@_scale_abs_tl
6302 ]
6303 \draw (-2.6,-4.25) -- (-2.5,-5.8)
6304 ..controls (-2,-6.8) and (1.5,-6.8) .. (2.2,-5.8) -- (2.4,-3.95);
6305 \draw (-2.5,2.5) .. controls (-2.9,4.6) and (2,5) .. (3.3,2.5) -- (2.9,-3.4)
6306 .. controls (2,-5) and (-4,-5) .. (-3.1,-3) -- cycle;
6307 \draw (-2.5,3) -- (-2,5) .. controls (0,6) and (2,5.8) .. (3.1,4.7) -- (3.3,2.5);
6308 \draw[line ~ width=0.02ex* \l_@@_scale_abs_tl ]
6309 (-2.2,-1.8) .. controls (-1,-1.3) and (0,-1.7) .. (1,-2);
6310 \draw[line ~ width=0.02ex* \l_@@_scale_abs_tl ]
6311 (-2.2,-1.8) .. controls (-1,-1) and (0,-1.4) .. (1,-2);
6312 \draw[line ~ width=0.02ex* \l_@@_scale_abs_tl ]
6313 (-2.2,-1.8) .. controls (-1,-2) and (0,-2) .. (1,-2);
6314 \draw (-0.8,4) .. controls (-0.8,3) and (-0.8,2) .. (-1.6,0.5) -- (-1.8,-0.4)
6315 .. controls (-1,0.2) and (0,0.2) .. (0.6,-0.4) -- (0.7,0.4)
6316 .. controls (0,1) and (0,2) .. (0.8,4);
6317 \draw (-1.8,-0.36) .. controls (-0.5,-0.5) and (0,-0.5) .. (0.6,-0.36);
6318 \draw (3.2,3.5) -- (3.7,3.5) .. controls (3.5,2)
6319 and (3.5,2) .. (3.6,-1.5) -- (3,-1.9);
6320 \draw (-2.5,3) .. controls (-2.7,2) and (-3,1) .. (-2.88,-1);
6321 \draw (-2.5,2.8) .. controls (-2,2.5) and (-1,3) .. (-0.8,3.1);
6322 \draw (0.5,3.3) .. controls (1,3) and (1,2.5) .. (3.3,2.4);
6323 \end{tikzpicture}%
6324 }
6325 }
6326 }
6327 % \end{macrocode}
6328 %\end{macro}
6329 %
6330 %
6331 %
6332 %
6333 %
6334 %
6335 % \begin{macro}{ \Snowman }
6336 %
6337 % \begin{macrocode}
6338 \@@_Declare_Document_Command:nnn { Snowman } { S }
6339 {
6340 \@@_provide_savebox_and_use:nn { Snowman_#1 }
6341 {
6342 % \@@_set_scale_abs_tl:n {#1}
6343 \bool_if:NTF \l_@@_if_opt_draft_bool
6344 {
6345 \@@_create_draftbox:nn
6346 { 1.545ex * \l_@@_scale_abs_tl }
6347 { 1.77157ex * \l_@@_scale_abs_tl }
6348 }{
6349 \begin{tikzpicture}
6350 [
6351 /@@ ,
6352 x=0.9ex,y=0.9ex,line ~ width=0.07ex* \l_@@_scale_abs_tl , scale=#1
6353 ]
6354 \draw (0,0) circle [x ~ radius = 0.4 , y~radius=0.35];
6355 \draw[line ~ width=0.06ex* \l_@@_scale_abs_tl ] (0,0.64) circle [x ~ radius = 0.3 , y~radius=0.28];
6356 \draw[line ~ width=0.05ex* \l_@@_scale_abs_tl ] (0,1.14) circle [x ~ radius = 0.2 , y~radius=0.2];
6357 \draw
6358 [
6359 rounded ~ corners=0.1ex* \l_@@_scale_abs_tl ,
6360 line ~ width=0.05ex* \l_@@_scale_abs_tl ,
6361 rotate ~ around={-30 \token_to_str:N : (0,1.14)} ,
6362 ]
6363 (-0.2,1.15) -- ++(0,0.35) -- +(0.4,0) -- (0.2,1.14);
6364 \draw
6365 [
6366 rounded ~ corners=0.07ex * \l_@@_scale_abs_tl ,
6367 line ~ width=0.05ex * \l_@@_scale_abs_tl ,
6368 rotate ~ around={-30 \token_to_str:N : (0,1.14)} ,
6369 ]
6370 (-0.2,1.19) arc [start ~ angle=270, end ~ angle=90, radius=0.1];
6371 \foreach \y in { 0.78 , 0.63 , 0.48 }
6372 \fill (0,\y) circle [radius=0.04];
6373 \foreach \y in { 0.2 , 0 , -0.2 }
6374 \fill (0,\y) circle [radius=0.05];
6375 \fill (-0.06,1.18) circle [radius=0.045];
6376 \fill (0.06,1.18) circle [radius=0.045];
6377 \foreach \x/\y in { 0.1/1.08 , 0.06/1.055 , 0.02/1.039}
6378 \fill (\x,\y) circle [radius=0.015] (-\x,\y) circle [radius=0.015] ;
6379 \draw (-0.3,0.7) -- (-0.6,0.8);
6380 \draw (0.3,0.7) -- (0.6,0.8);
6381 \draw[line ~ width=0.06ex* \l_@@_scale_abs_tl ] (-0.65,0) -- (-0.65,1);
6382 \foreach\x in {-0.85, -0.75,-0.65,-0.55,-0.45}
6383 \draw[line ~ width=0.05ex* \l_@@_scale_abs_tl ] (-0.65,1) -- (\x,1.3);
6384 \foreach \y/\x/\z in { 0.7/0.75 , 0.9/0.8 , 1/0.6/0.55 }
6385 \draw (0.6,0.8) -- (\x,\y) (-0.6,0.8) -- (-\z,\y) ;
6386 \end{tikzpicture}%
6387 }
6388 }
6389 }
6390 % \end{macrocode}
6391 %\end{macro}
6392 %
6393 %
6394 %
6395 % \subsection{Trees}
6396 % Many great ideas are stolen. Don't know who said that, but it's
6397 % true.
6398 %
6399 %
6400 %
6401 %\begin{macro}{ \@@_Basic_Tree:nnnnn }
6402 % Let's define the \Makro{@@_Basic_Tree:nnnnn} command.
6403 % Like every symbol it also is saved inside a box.
6404 % If the fifth argument is neither empty nor \enquote{leaf}
6405 % it \dots\ does (?) an error message.
6406 % \begin{macrocode}
6407 \cs_new:Npn \@@_Basic_Tree:nnnnn #1#2#3#4#5
6408 {
6409 \@@_provide_savebox_and_use:nn
6410 { BasicTree_#1_#2_#3_#4_#5 }
6411 {
6412 \tl_set:Nn \l_tmpa_tl {#5}
6413 \bool_lazy_or:nnTF
6414 { \tl_if_eq_p:NN \l_tmpa_tl \c_@@_leaf_tl }
6415 { \tl_if_empty_p:n {#5} }
6416 { \@@_Basic_Tree_aux:nnnnn {#1} {#2} {#3} {#4} {#5} }
6417 { \msg_error:nnn { tikzsymbols } { tree } {#5} }
6418 }
6419 }
6420 % \end{macrocode}
6421 %\end{macro}
6422 %
6423 %\begin{macro}{ \BasicTree }
6424 % Well, thats the final \Makro{BasicTree} command.
6425 % More or less copy \& pasted from the \Package{tikz} manual.
6426 % \begin{macrocode}
6427 \@@_Declare_Document_Command:nnn { BasicTree } { S m m m m }
6428 {
6429 \@@_Basic_Tree:nnnnn {#1} {#2} {#3} {#4} {#5}
6430 }
6431 % \end{macrocode}
6432 %\end{macro}
6433 %
6434 %
6435 %
6436 %
6437 %
6438 %
6439 %\begin{macro}{ \WorstTree }
6440 % \begin{macrocode}
6441 \@@_Declare_Document_Command:nnn { WorstTree } { S }
6442 {
6443 \@@_provide_savebox_and_use:nn { WorstTree_#1 }
6444 {
6445 % \@@_set_scale_abs_tl:n {#1}
6446 \bool_if:NTF \l_@@_if_opt_draft_bool
6447 {
6448 \@@_create_draftbox:nn
6449 { 1.64ex * \l_@@_scale_abs_tl }
6450 { 1.84ex * \l_@@_scale_abs_tl }
6451 }{
6452 \begin{tikzpicture}
6453 [
6454 /@@ ,
6455 x=1ex,y=1ex, line ~ width=0.04ex* \l_@@_scale_abs_tl ,scale=#1
6456 ]
6457 \fill[brown] (-0.3,0) .. controls (0.2,0.3) and (0.2,0.7) .. (0.2,1) -- (0.5,1) ..
6458 controls (0.5,0.7) and (0.5,0.3) .. (1,0);
6459 \draw (-0.3,0) .. controls (0.2,0.3) and (0.2,0.7) .. (0.2,1) -- (0.5,1) ..
6460 controls (0.5,0.7) and (0.5,0.3) .. (1,0) ;
6461 \fill[green] (0.2,0.8) -- (0,0.8) .. controls (-0.4,0.7) and (-0.4,1) .. (-0.3,1.2) ..
6462 controls (-0.3, 1.6) and (-0.1,1.6) .. (0.1,1.5) ..
6463 controls (0.3,1.8) and (0.6,1.6) .. (0.7,1.5) ..
6464 controls (1.1, 1.6) and (1,1.4) .. (1,1.2) ..
6465 controls (1.2,1) and (1.2,0.7) .. (0.8,0.8) -- (0.5,0.8);
6466 \draw (0.214,0.8) -- (0,0.8) .. controls (-0.4,0.7) and (-0.4,1) .. (-0.3,1.2) ..
6467 controls (-0.3, 1.6) and (-0.1,1.6) .. (0.1,1.5) ..
6468 controls (0.3,1.8) and (0.6,1.6) .. (0.7,1.5) .. controls (1.1, 1.6) and (1,1.4) ..
6469 (1,1.2) .. controls (1.2,1) and (1.2,0.7) .. (0.8,0.8) -- (0.486,0.8);
6470 \fill[red] (0,1) circle [radius=0.1];
6471 \fill[red] (0.4,1.2) circle [radius=0.1];
6472 \fill[red] (0.8,1.1) circle [radius=0.1];
6473 \end{tikzpicture}%
6474 }
6475 }
6476 }
6477 % \end{macrocode}
6478 %\end{macro}
6479 %
6480 %
6481 %
6482 %
6483 %
6484 %
6485 %
6486 %\begin{macro}{ \Springtree }
6487 % \begin{macrocode}
6488 \@@_Declare_Document_Command:nnn { Springtree } { S }
6489 {
6490 \@@_Basic_Tree:nnnnn
6491 {#1}
6492 { brown!70!black }
6493 { green!90!black }
6494 { green!80!black }
6495 { leaf }
6496 }
6497 % \end{macrocode}
6498 %\end{macro}
6499 %
6500 %
6501 %
6502 %
6503 %
6504 %
6505 %\begin{macro}{ \Summertree }
6506 % \begin{macrocode}
6507 \@@_Declare_Document_Command:nnn { Summertree } { S }
6508 {
6509 \@@_Basic_Tree:nnnnn
6510 {#1}
6511 { brown!50!black }
6512 { green!80!black }
6513 { red!80!green }
6514 { leaf }
6515 }
6516 % \end{macrocode}
6517 %\end{macro}
6518 %
6519 %
6520 %
6521 %
6522 %
6523 %
6524 %\begin{macro}{ \Autumntree }
6525 % \begin{macrocode}
6526 \@@_Declare_Document_Command:nnn { Autumntree } { S }
6527 {
6528 \@@_Basic_Tree:nnnnn
6529 {#1}
6530 { red!30!black }
6531 { red!75!black }
6532 { orange }
6533 { leaf }
6534 }
6535 % \end{macrocode}
6536 %\end{macro}
6537 %
6538 %
6539 %
6540 %
6541 %
6542 %
6543 %\begin{macro}{ \Wintertree }
6544 % \begin{macrocode}
6545 \@@_Declare_Document_Command:nnn { Wintertree } { S }
6546 {
6547 \@@_Basic_Tree:nnnnn
6548 {#1}
6549 { black!80!white }
6550 { black!50 }
6551 { black!25 }
6552 { }
6553 }
6554 % \end{macrocode}
6555 %\end{macro}
6556 %
6557 %
6558 %
6559 % Checks if the Package \Package{marvosym} is loaded
6560 % if the \Option{marvosym} is set true.
6561 % \begin{macrocode}
6562 \AtBeginDocument
6563 {
6564 \bool_if:NT \g_@@_if_opt_marvosym_bool
6565 {
6566 \@ifpackageloaded { marvosym } { }
6567 {
6568 \msg_error:nn { tikzsymbols } { marvosym }
6569 }
6570 }
6571 }
6572 % \end{macrocode}
6573 %
6574 %
6575 % \begin{macro}{ \tikzsymbolsuse }
6576 % If the english command name is used, the german one
6577 % is inserted, don't exactly know why.
6578 % \begin{macrocode}
6579 \NewDocumentCommand \tikzsymbolsuse { m }
6580 {
6581 \prop_get:NnNTF \g_@@_english_commands_prop {#1} \l_tmpa_tl
6582 {
6583 \use:c { \g_@@_command_prefix_tl \l_tmpa_tl }
6584 }{
6585 \cs_if_exist:cTF { \g_@@_command_prefix_tl #1 }
6586 { \use:c { \g_@@_command_prefix_tl #1 } }
6587 { \msg_error:nnn { tikzsymbols } { undefined-command } {#1} }
6588 }
6589 }
6590 % \end{macrocode}
6591 %\end{macro}
6592 %
6593 %
6594 %
6595 %
6596 %\begin{macro}{ \tikzsymbolsset }
6597 % \begin{macrocode}
6598 \NewDocumentCommand \tikzsymbolsset { m }
6599 {
6600 \keys_set_filter:nnnN { tikzsymbols } { only-package } {#1} \l_tmpa_tl
6601 \tl_if_empty:NF \l_tmpa_tl
6602 {
6603 \keyval_parse:NNV
6604 \@@_tikzsymbolsset_msg_i:n
6605 \@@_tikzsymbolsset_msg_ii:nn
6606 \l_tmpa_tl
6607 }
6608 }
6609 \cs_generate_variant:Nn \keyval_parse:NNn { NNV }
6610 \cs_new:Npn \@@_tikzsymbolsset_msg_i:n #1
6611 {
6612 \@@_tikzsymbolsset_msg_ii:nn {#1} { }
6613 }
6614 \cs_new:Npn \@@_tikzsymbolsset_msg_ii:nn #1#2
6615 {
6616 \msg_error:nnn { tikzsymbols } { package-option } {#1}
6617 }
6618 \exp_args:NV \tikzsymbolsset \l_@@_save_global_scale_for_later_because_no_better_idea_tl
6619 % \end{macrocode}
6620 %\end{macro}
6621 %
6622 %
6623 %^^A\iffalse
6624 %<*ignore>
6625 \tkzsymbls@Declare@Robust@Command{@@@@@@@@Keep@Cool@@@@I}{%
6626 \begin{tikzpicture}[ /@@ ,x=1em, y=1em, line ~ width=0.03em]
6627 \fill[decorate,decoration={snake,amplitude=.02em,segment ~ length=0.4em},cyan!20!]
6628 (0,0) -- (0,1) -- (1,1) -- (1,0) -- cycle;
6629 \draw (0.3,0.3) -- (0.55,0.7);% Körper
6630 \draw (0.05,0.4) -- (0.3,0.3) -- (0.1,0.1);
6631 \draw (0.3,0.8) -- (0.5,0.61);
6632 \draw (0.49,0.61) -- (0.8,0.65);
6633 \draw (0.65,0.9) circle [radius=0.17];
6634 \end{tikzpicture}%
6635 \tikzsymbolsaftersymbolinput%
6636 }
6637 \tkzsymbls@Declare@Robust@Command{@@@@@@@@@@@Keep@Cool@@@@@II}{%
6638 \begin{tikzpicture}[ /@@ ,x=1em,y=1em]
6639 \fill[decorate,decoration={snake,amplitude=.02em,segment ~ length=0.6em},cyan!20!] (-0.3,-0.3) rectangle (0.5,1);
6640 \draw (0,-0.1) -- (0.15,0.2) -- (0.3,-0.1);% Beine
6641 \draw (.15,.2) -- (.15,.4);% Körper
6642 \draw (.15,.4) -- (.4,.5);% Rechter Arm
6643 \draw (.15,.4) -- (-0.1,.5);% Linker Arm
6644 \draw (.15, .4) -- (.15, .53);% Hals
6645 \draw (.15,.8) circle [radius=0.18];% Kopf
6646 \end{tikzpicture}%
6647 \tikzsymbolsaftersymbolinput%
6648 }
6649 %</ignore>
6650 %^^A\fi
6651 %
6652 % \begin{macrocode}
6653 %</package>
6654 % \end{macrocode}
6655 %
6656 % \end{implementation}
6657 %
6658 %
6659 %
6660 % \endinput
6661 %
6662 %
6663 %
6664 % Local Variables:
6665 % mode: doctex
6666 % TeX-master: t
6667 % End: