| 1 |
%% The LaTeX package genealogytree - version 2.4.0 (2026/05/06) |
| 2 |
%% gtrcore.symbols.code.tex: Symbols |
| 3 |
%% |
| 4 |
%% ------------------------------------------------------------------------------------------- |
| 5 |
%% Copyright (c) 2013-2026 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de> |
| 6 |
%% ------------------------------------------------------------------------------------------- |
| 7 |
%% |
| 8 |
%% This work may be distributed and/or modified under the |
| 9 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 10 |
%% of this license or (at your option) any later version. |
| 11 |
%% The latest version of this license is in |
| 12 |
%% http://www.latex-project.org/lppl.txt |
| 13 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 14 |
%% version 2005/12/01 or later. |
| 15 |
%% |
| 16 |
%% This work has the LPPL maintenance status `author-maintained'. |
| 17 |
%% |
| 18 |
%% This work consists of all files listed in README |
| 19 |
%% |
| 20 |
\gtr@set@library@version{2.4.0} |
| 21 |
|
| 22 |
%%%%%%%%%%%%%%%%%%%%%%% |
| 23 |
%% Symbols |
| 24 |
%%%%%%%%%%%%%%%%%%%%%%% |
| 25 |
|
| 26 |
% hide from externalization |
| 27 |
\let\gtr@tikzpicture\tikzpicture% |
| 28 |
\let\endgtr@tikzpicture\endtikzpicture% |
| 29 |
|
| 30 |
\colorlet{gtrsymbol}{black} |
| 31 |
|
| 32 |
\def\gtr@symbol@draw#1{\csname gtr@sym@#1@pic\endcsname} |
| 33 |
|
| 34 |
% Draw every time |
| 35 |
\newcommand{\gtrSymbolsSetDraw}[1]{% |
| 36 |
\colorlet{gtrsymbol}{#1}% |
| 37 |
\let\gtr@symbol@core\gtr@symbol@draw% |
| 38 |
} |
| 39 |
|
| 40 |
\def\gtr@symbol@copy#1{\copy\csname gtr@sym@#1@box\endcsname} |
| 41 |
|
| 42 |
|
| 43 |
\ExplSyntaxOn |
| 44 |
|
| 45 |
% Draw once, copy the rest of the time |
| 46 |
\NewDocumentCommand \gtrSymbolsSetCreate { m } |
| 47 |
{ |
| 48 |
\colorlet{ gtrsymbol } {#1} |
| 49 |
\cs_set_eq:NN \gtr@symbol@core \gtr@symbol@copy |
| 50 |
\gtr@symbol@box@hook |
| 51 |
} |
| 52 |
|
| 53 |
\NewDocumentCommand \gtrSymbolsSetCreateSelected { m m } |
| 54 |
{ |
| 55 |
\colorlet{ gtrsymbol } {#1} |
| 56 |
\cs_set_eq:NN \gtr@symbol@core \gtr@symbol@copy |
| 57 |
\clist_map_inline:nn { #2 } |
| 58 |
{ |
| 59 |
\exp_args:Nnc \hbox_set:cn { gtr@sym@##1@box } { gtr@sym@##1@pic } |
| 60 |
} |
| 61 |
} |
| 62 |
\ExplSyntaxOff |
| 63 |
|
| 64 |
|
| 65 |
\def\gtr@symbol@print#1{% |
| 66 |
\gtrlistseparator% |
| 67 |
\csuse{gtrsym#1}=\csuse{gtr@sym@#1@text}% |
| 68 |
} |
| 69 |
|
| 70 |
\def\gtr@symbol@do#1{\gtr@symbol@print{#1}} |
| 71 |
\def\gtr@symbol@dont#1{} |
| 72 |
\def\gtr@symbol@record#1{\global\cslet{gtr@sym@#1@print}{\gtr@symbol@do}} |
| 73 |
|
| 74 |
|
| 75 |
\newcommand*{\gtrSymbolsRecordReset}{% |
| 76 |
\def\do##1{\cslet{gtr@sym@##1@print}{\gtr@symbol@dont}}% |
| 77 |
\dolistloop{\gtr@symbol@list}% |
| 78 |
} |
| 79 |
|
| 80 |
\newcommand*{\gtrSymbolsFullLegend}[1][]{% |
| 81 |
\begin{gtrprintlist}{}{\unskip,\ }{\unskip.}{}% |
| 82 |
\def\temp@a{#1}\ifx\temp@a\@empty\else\gtrset{language=#1}\fi% |
| 83 |
\def\gtr@symbol@record##1{}% |
| 84 |
\forlistloop{\gtr@symbol@print}{\gtr@symbol@list}% |
| 85 |
\end{gtrprintlist}% |
| 86 |
} |
| 87 |
|
| 88 |
\newcommand*{\gtrSymbolsLegend}[1][]{% |
| 89 |
\begin{gtrprintlist}{}{\unskip,\ }{\unskip.}{}% |
| 90 |
\def\temp@a{#1}\ifx\temp@a\@empty\else\gtrset{language=#1}\fi% |
| 91 |
\def\gtr@symbol@record##1{}% |
| 92 |
\def\do##1{\csuse{gtr@sym@##1@print}{##1}}% |
| 93 |
\dolistloop{\gtr@symbol@list}% |
| 94 |
\end{gtrprintlist}% |
| 95 |
} |
| 96 |
|
| 97 |
\def\gtr@symbol@core#1#2{% |
| 98 |
\expandafter\def\csname gtrsym#1\endcsname{\gtr@symbol@record{#1}#2}% |
| 99 |
\begingroup\edef\x{\endgroup\noexpand\gtrset{symlang/#1/.store in=\expandonce{\csname gtr@sym@#1@text\endcsname}}}\x% |
| 100 |
\cslet{gtr@sym@#1@print}{\gtr@symbol@dont}% |
| 101 |
\listeadd{\gtr@symbol@list}{#1}% |
| 102 |
} |
| 103 |
|
| 104 |
\def\gtr@symbol@factory#1#2#3{% |
| 105 |
\expandafter\newbox\csname gtr@sym@#1@box\endcsname% |
| 106 |
\expandafter\def\csname gtr@sym@#1@pic\endcsname{#2}% |
| 107 |
\gtr@symbol@core{#1}{% |
| 108 |
\edef\gtr@scale{\strip@pt\dimexpr#3\dimexpr\f@size pt\relax}% |
| 109 |
\scalebox{\gtr@scale}{\gtr@symbol@core{#1}}}% |
| 110 |
\eappto\gtr@symbol@box@hook{\noexpand\setbox\expandonce{\csname gtr@sym@#1@box\endcsname}% |
| 111 |
=\noexpand\color@hbox\expandonce{\csname gtr@sym@#1@pic\endcsname}\noexpand\color@endbox}% |
| 112 |
} |
| 113 |
|
| 114 |
\gtr@symbol@factory{Born}{% |
| 115 |
\begin{gtr@tikzpicture}[line width=4mm,color=gtrsymbol]% |
| 116 |
\path[use as bounding box] (-1.1,-0.926574) rectangle (1.1,1); |
| 117 |
\draw (0,0)--(18:1cm); |
| 118 |
\draw (0,0)--(90:1cm); |
| 119 |
\draw (0,0)--(162:1cm); |
| 120 |
\draw (0,0)--(234:1cm); |
| 121 |
\draw (0,0)--(306:1cm); |
| 122 |
\end{gtr@tikzpicture}% |
| 123 |
}{0.012} |
| 124 |
|
| 125 |
\gtr@symbol@core{Bornoutofwedlock}{% |
| 126 |
\textcolor{gtrsymbol}{\normalfont\sffamily(\kern-.125em{\def\gtr@symbol@record##1{}\gtrsymBorn}\kern-.125em)}% |
| 127 |
} |
| 128 |
|
| 129 |
\gtr@symbol@core{Stillborn}{{\def\gtr@symbol@record##1{}\gtrsymDied\gtrsymBorn}} |
| 130 |
|
| 131 |
\gtr@symbol@core{Diedonbirthday}{\textcolor{gtrsymbol}{{\def\gtr@symbol@record##1{}\gtrsymBorn\gtrsymDied}}} |
| 132 |
|
| 133 |
\gtr@symbol@factory{Baptized}{% |
| 134 |
\begin{gtr@tikzpicture}[line width=4mm,xscale=0.5,baseline=-7mm,color=gtrsymbol]% |
| 135 |
\path[use as bounding box] (-0.45,-0.5) rectangle (6.45,1.5); |
| 136 |
\draw (0,0) .. controls (0.5,0.4) and (1.5,0.4) .. (2,0) .. controls (2.5,-0.4) and (3.5,-0.4) .. (4,0) .. controls (4.5,0.4) and (5.5,0.4) .. (6,0); |
| 137 |
\draw (0,1) .. controls (0.5,1.4) and (1.5,1.4) .. (2,1) .. controls (2.5,0.6) and (3.5,0.6) .. (4,1) .. controls (4.5,1.4) and (5.5,1.4) .. (6,1); |
| 138 |
\end{gtr@tikzpicture}% |
| 139 |
}{0.009}% |
| 140 |
|
| 141 |
\gtr@symbol@factory{Engaged}{% |
| 142 |
\begin{gtr@tikzpicture}[line width=3mm,color=gtrsymbol]% |
| 143 |
\path[use as bounding box] (-1.15,-1.05) rectangle (1.15,1.05); |
| 144 |
\draw (0,0) circle (9mm); |
| 145 |
\end{gtr@tikzpicture}% |
| 146 |
}{0.011}% |
| 147 |
|
| 148 |
\gtr@symbol@factory{Married}{% |
| 149 |
\begin{gtr@tikzpicture}[line width=3mm,color=gtrsymbol]% |
| 150 |
\path[use as bounding box] (-1.65,-1.05) rectangle (1.65,1.05); |
| 151 |
\draw (-0.50,0) +(-40:9mm) arc (-40:285:9mm); |
| 152 |
\draw (0.50,0) +(-220:9mm) arc (-220:105:9mm); |
| 153 |
\end{gtr@tikzpicture}% |
| 154 |
}{0.011}% |
| 155 |
|
| 156 |
\gtr@symbol@factory{Divorced}{% |
| 157 |
\begin{gtr@tikzpicture}[line width=3mm,color=gtrsymbol]% |
| 158 |
\path[use as bounding box] (-2.35,-1.05) rectangle (2.35,1.05); |
| 159 |
\draw (-1.2,0) circle (9mm); |
| 160 |
\draw (0,-0.9)--(0,0.9); |
| 161 |
\draw (1.2,0) circle (9mm); |
| 162 |
\end{gtr@tikzpicture}% |
| 163 |
}{0.011}% |
| 164 |
|
| 165 |
\gtr@symbol@factory{Partnership}{% |
| 166 |
\begin{gtr@tikzpicture}[line width=3mm,color=gtrsymbol]% |
| 167 |
\path[use as bounding box] (-2.65,-1.05) rectangle (2.65,1.05); |
| 168 |
\draw (-1.5,0) circle (9mm); |
| 169 |
\draw (-0.5,0)--(0.5,0); |
| 170 |
\draw (1.5,0) circle (9mm); |
| 171 |
\end{gtr@tikzpicture}% |
| 172 |
}{0.011}% |
| 173 |
|
| 174 |
\gtr@symbol@factory{Floruit}{% |
| 175 |
\begin{gtr@tikzpicture}[line width=4mm,rounded corners,color=gtrsymbol]% |
| 176 |
\path[use as bounding box] (-1.05,-1) rectangle (1.05,0.85); |
| 177 |
\draw (54:5mm)--(54:8mm); |
| 178 |
\draw (126:5mm)--(126:8mm); |
| 179 |
\draw (198:5mm)--(198:8mm); |
| 180 |
\draw (270:5mm)--(270:8mm); |
| 181 |
\draw (342:5mm)--(342:8mm); |
| 182 |
\fill (0,0) circle (2mm); |
| 183 |
\fill (54:8mm) circle (2mm); |
| 184 |
\fill (126:8mm) circle (2mm); |
| 185 |
\fill (198:8mm) circle (2mm); |
| 186 |
\fill (270:8mm) circle (2mm); |
| 187 |
\fill (342:8mm) circle (2mm); |
| 188 |
\end{gtr@tikzpicture}% |
| 189 |
}{0.012}% |
| 190 |
|
| 191 |
\gtr@symbol@factory{Died}{% |
| 192 |
\begin{gtr@tikzpicture}[line width=4mm,baseline=2mm,color=gtrsymbol]% |
| 193 |
\path[use as bounding box] (-0.8,0) rectangle +(1.6,2.2); |
| 194 |
\draw (0,0)--(0,2.2); |
| 195 |
\draw (-0.7,1.5)--+(1.4,0); |
| 196 |
\end{gtr@tikzpicture}% |
| 197 |
}{0.012}% |
| 198 |
|
| 199 |
\gtr@symbol@factory{Killed}{% |
| 200 |
\begin{gtr@tikzpicture}[line width=2mm,baseline=1mm,color=gtrsymbol]% |
| 201 |
\path[use as bounding box] (-0.94,-0.08) rectangle (0.94,1.9); |
| 202 |
\foreach \v in {,-} |
| 203 |
{ |
| 204 |
\begin{scope}[xshift=\v7mm,rotate=\v40] |
| 205 |
\fill (-0.1,0) [rounded corners=0.5mm] -- (-0.1,1.8) -- (0,2.5) |
| 206 |
-- (0.1,1.8)[sharp corners] -- (0.1,0) -- cycle; |
| 207 |
\draw (-0.4,0.4) -- (0.4,0.4); |
| 208 |
\end{scope} |
| 209 |
} |
| 210 |
\end{gtr@tikzpicture}% |
| 211 |
}{0.0133}% |
| 212 |
|
| 213 |
\gtr@symbol@factory{Buried}{% |
| 214 |
\begin{gtr@tikzpicture}[line width=3mm,baseline=2mm,color=gtrsymbol]% |
| 215 |
\path[use as bounding box] (-0.86,-.15) rectangle (0.86,2.35); |
| 216 |
\draw[draw,fill,fill opacity=0.25] (-0.3,0) -- (-0.6,1.5) -- (-0.3,2.2) -- (0.3,2.2) -- (0.6,1.5) -- (0.3,0) -- cycle; |
| 217 |
\end{gtr@tikzpicture}% |
| 218 |
}{0.011}% |
| 219 |
|
| 220 |
\gtr@symbol@factory{Funeralurn}{% |
| 221 |
\begin{gtr@tikzpicture}[line width=2mm,,color=gtrsymbol]% |
| 222 |
\path[use as bounding box] (-0.78,-0.1) rectangle (0.78,1.9); |
| 223 |
\path[fill,fill opacity=0.25] (-0.3,0) -- (-0.6,1.2) -- (0.6,1.2) -- (0.3,0) -- cycle; |
| 224 |
\path[draw] (-0.3,0)[rounded corners=2mm] -- (-0.6,1.2)[sharp corners] -- (-0.3,1.6) -- |
| 225 |
(0.3,1.6)[rounded corners=2mm] -- (0.6,1.2)[sharp corners] -- (0.3,0) -- cycle; |
| 226 |
\fill (0,1.7) circle (2mm); |
| 227 |
\end{gtr@tikzpicture}% |
| 228 |
}{0.011}% |
| 229 |
|
| 230 |
\gtr@symbol@factory{Female}{% |
| 231 |
\begin{gtr@tikzpicture}[line width=2mm,baseline=-13mm,color=gtrsymbol]% |
| 232 |
\path[use as bounding box] (-0.9,-1.8) rectangle (0.9,0.8); |
| 233 |
\draw (0,0) circle (7mm); |
| 234 |
\draw (270:7mm) -- (270:18mm); |
| 235 |
\draw (-0.4,-1.3)--(0.4,-1.3); |
| 236 |
\end{gtr@tikzpicture}% |
| 237 |
}{0.011}% |
| 238 |
|
| 239 |
\gtr@symbol@factory{Male}{% |
| 240 |
\begin{gtr@tikzpicture}[line width=2mm,color=gtrsymbol]% |
| 241 |
\path[use as bounding box] (-0.9,-0.8) rectangle (1.33,1.28); |
| 242 |
\draw (0,0) circle (7mm); |
| 243 |
\draw[arrows = {-Straight Barb[]}] (45:7mm) -- (45:18mm); |
| 244 |
\end{gtr@tikzpicture}% |
| 245 |
}{0.011}% |
| 246 |
|
| 247 |
\gtr@symbol@factory{Neuter}{% |
| 248 |
\begin{gtr@tikzpicture}[line width=2mm,baseline=-13mm,color=gtrsymbol]% |
| 249 |
\path[use as bounding box] (-0.9,-1.8) rectangle (0.9,0.8); |
| 250 |
\draw (0,0) circle (7mm); |
| 251 |
\draw (270:7mm) -- (270:18mm); |
| 252 |
\end{gtr@tikzpicture}% |
| 253 |
}{0.011}% |
| 254 |
|
| 255 |
\gtrset{% |
| 256 |
symbols record reset/.code={\gtrSymbolsRecordReset}, |
| 257 |
symbols record reset |
| 258 |
} |
| 259 |
|
| 260 |
\AtBeginDocument{% |
| 261 |
\gtrSymbolsSetCreate{gtrsymbol}} |