| 1 |
%% The LaTeX package genealogytree - version 2.4.0 (2026/05/06) |
| 2 |
%% gtrcore.node.code.tex: Node Boxes |
| 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 |
% Processors % |
| 24 |
|
| 25 |
\gtrset{% |
| 26 |
setNodeDimensionsFit/.code={\tcbset{% |
| 27 |
gtrNodeDimensions/.style={% |
| 28 |
width=\gtrNodeMinWidth, |
| 29 |
fit width plus=\dimexpr\gtrNodeMaxWidth-\gtrNodeMinWidth\relax, |
| 30 |
height=\gtrNodeMinHeight, |
| 31 |
fit height plus=\dimexpr\gtrNodeMaxHeight-\gtrNodeMinHeight\relax},% |
| 32 |
gtrNodeDimensionsLandscape/.style={% |
| 33 |
height=\gtrNodeMinWidth, |
| 34 |
fit height plus=\dimexpr\gtrNodeMaxWidth-\gtrNodeMinWidth\relax, |
| 35 |
width=\gtrNodeMinHeight, |
| 36 |
fit width plus=\dimexpr\gtrNodeMaxHeight-\gtrNodeMinHeight\relax}}% |
| 37 |
},% |
| 38 |
setNodeDimensionsTColorBox/.code={\tcbset{% |
| 39 |
gtrNodeDimensions/.style={% |
| 40 |
width=\gtrNodeMinWidth, |
| 41 |
height=\gtrNodeMinHeight, |
| 42 |
height plus=\dimexpr\gtrNodeMaxHeight-\gtrNodeMinHeight\relax},% |
| 43 |
gtrNodeDimensionsLandscape/.style={% |
| 44 |
height=\gtrNodeMinWidth, |
| 45 |
height plus=\dimexpr\gtrNodeMaxWidth-\gtrNodeMinWidth\relax, |
| 46 |
width=\gtrNodeMinHeight}}% |
| 47 |
},% |
| 48 |
setNodeDimensionsTCBox/.code={\tcbset{% |
| 49 |
gtrNodeDimensions/.style={% |
| 50 |
height=\gtrNodeMinHeight, |
| 51 |
height plus=\dimexpr\gtrNodeMaxHeight-\gtrNodeMinHeight\relax},% |
| 52 |
gtrNodeDimensionsLandscape/.style={% |
| 53 |
height=\gtrNodeMinWidth, |
| 54 |
height plus=\dimexpr\gtrNodeMaxWidth-\gtrNodeMinWidth\relax}}% |
| 55 |
},% |
| 56 |
setNodeDimensionsTikz/.code={\tikzset{% |
| 57 |
gtrNodeDimensions/.style={% |
| 58 |
minimum width=\gtrNodeMinWidth, |
| 59 |
minimum height=\gtrNodeMinHeight},% |
| 60 |
gtrNodeDimensionsLandscape/.style={% |
| 61 |
minimum width=\gtrNodeMinHeight, |
| 62 |
minimum height=\gtrNodeMinWidth}}% |
| 63 |
}, |
| 64 |
} |
| 65 |
|
| 66 |
|
| 67 |
\gtrset{processing/fit/.style={% |
| 68 |
no content interpreter, |
| 69 |
node processor=\gtr@boxcontent@fit, |
| 70 |
setNodeDimensionsFit |
| 71 |
}} |
| 72 |
\newcommand{\gtr@boxcontent@fit}{% |
| 73 |
\edef\gtr@current@fontsize{\f@size pt}% |
| 74 |
\tcboxfit[% |
| 75 |
gtrNodeDimensions, |
| 76 |
enhanced,clip upper, |
| 77 |
hyphenationfix,nobeforeafter,boxsep=1pt, |
| 78 |
fit basedim=\gtr@current@fontsize,fit skip=1.05, |
| 79 |
top=0.2\tcbfitdim,bottom=0.2\tcbfitdim, |
| 80 |
left=0.2\tcbfitdim,right=0.2\tcbfitdim, |
| 81 |
middle=0.2\tcbfitdim, |
| 82 |
fit fontsize macros,fonttitle=\normalsize, |
| 83 |
code={\pgfkeysalsofrom{\gtrNodeBoxOptions}} |
| 84 |
]{\gtrBoxContent}% |
| 85 |
} |
| 86 |
|
| 87 |
|
| 88 |
\gtrset{processing/tcolorbox/.style={% |
| 89 |
no content interpreter, |
| 90 |
node processor=\gtr@boxcontent@tcolorbox, |
| 91 |
setNodeDimensionsTColorBox |
| 92 |
}} |
| 93 |
\newcommand{\gtr@boxcontent@tcolorbox}{% |
| 94 |
\begin{tcolorbox}[% |
| 95 |
gtrNodeDimensions,enhanced,hyphenationfix,nobeforeafter, |
| 96 |
code={\pgfkeysalsofrom{\gtrNodeBoxOptions}} |
| 97 |
]% |
| 98 |
\gtrBoxContent% |
| 99 |
\end{tcolorbox}% |
| 100 |
} |
| 101 |
|
| 102 |
|
| 103 |
\gtrset{processing/tcbox/.style={% |
| 104 |
no content interpreter, |
| 105 |
node processor=\gtr@boxcontent@tcbox, |
| 106 |
setNodeDimensionsTCBox |
| 107 |
}} |
| 108 |
\newcommand{\gtr@boxcontent@tcbox}{% |
| 109 |
\tcbox[% |
| 110 |
enhanced,clip upper,hyphenationfix,nobeforeafter, |
| 111 |
code={\pgfkeysalsofrom{\gtrNodeBoxOptions}} |
| 112 |
]{\gtrBoxContent}% |
| 113 |
} |
| 114 |
|
| 115 |
\gtrset{processing/tcbox*/.style={% |
| 116 |
no content interpreter, |
| 117 |
node processor=\gtr@boxcontent@tcboxstar, |
| 118 |
setNodeDimensionsTColorBox |
| 119 |
}} |
| 120 |
\newcommand{\gtr@boxcontent@tcboxstar}{% |
| 121 |
\tcbox[% |
| 122 |
gtrNodeDimensions,enhanced,clip upper,hyphenationfix,nobeforeafter, |
| 123 |
valign=center,tcbox width=minimum center, |
| 124 |
code={\pgfkeysalsofrom{\gtrNodeBoxOptions}} |
| 125 |
]{\gtrBoxContent}% |
| 126 |
} |
| 127 |
|
| 128 |
\tikzset{gtr@set@boxoptions/.code={\pgfkeysalsofrom{\gtrNodeBoxOptions}}} |
| 129 |
\gtrset{processing/tikznode/.style={% |
| 130 |
no content interpreter, |
| 131 |
node processor=\gtr@boxcontent@tikznode, |
| 132 |
setNodeDimensionsTikz |
| 133 |
}} |
| 134 |
\newcommand{\gtr@boxcontent@tikznode}{% |
| 135 |
\tikz\node[outer sep=0pt,gtr@set@boxoptions]{\gtrBoxContent};% |
| 136 |
} |
| 137 |
|
| 138 |
|
| 139 |
\gtrset{processing/database/.style={% |
| 140 |
database content interpreter, |
| 141 |
node processor=\gtr@boxcontent@fit, |
| 142 |
setNodeDimensionsFit, |
| 143 |
}} |
| 144 |
|
| 145 |
|
| 146 |
\gtrset{ |
| 147 |
content interpreter/.store in=\gtr@box@content@interpreter, |
| 148 |
content interpreter code/.code={\long\def\gtr@box@content@interpreter##1{#1}}, |
| 149 |
content interpreter content/.style={content interpreter code={\long\def\gtrBoxContent{#1}}}, |
| 150 |
no content interpreter/.style={content interpreter content={##1}}, |
| 151 |
deletion content interpreter/.style={content interpreter content=}, |
| 152 |
database content interpreter/.style={content interpreter code={% |
| 153 |
\gtrset{database/.cd,db@reset,##1}% |
| 154 |
\gtrOptionsDatabase% |
| 155 |
\let\gtrBoxContent\gtrPrintDatabase% |
| 156 |
}}, |
| 157 |
id content interpreter/.style={content interpreter code={% |
| 158 |
\gtrset{id=##1,code={\gtr@key@keysalsofrom{/gtr/nopt/\gtr@gkv@id}}}% |
| 159 |
\long\def\gtrBoxContent{##1}% |
| 160 |
}}, |
| 161 |
content interpreter id and content/.style 2 args={% |
| 162 |
content interpreter code={% |
| 163 |
\long\def\gtrBoxContent{#2}% |
| 164 |
\begingroup\edef\x{\endgroup\noexpand\gtrset{id=#1}}\x% |
| 165 |
\gtrset{code={\gtr@key@keysalsofrom{/gtr/nopt/\gtr@gkv@id}}}% |
| 166 |
}% |
| 167 |
}, |
| 168 |
} |
| 169 |
|
| 170 |
|
| 171 |
%%%%%%%%%%%%%%%%% |
| 172 |
% Database Keys % |
| 173 |
|
| 174 |
\gtrset{% |
| 175 |
database unknown key/.is choice, |
| 176 |
database unknown key/ignore/.style={database/.unknown/.code=}, |
| 177 |
database unknown key/save/.style={database/.unknown/.style={% |
| 178 |
save/\pgfkeyscurrentname/.initial={##1}% |
| 179 |
}}, |
| 180 |
database unknown key/warn/.style={database/.unknown/.code={% |
| 181 |
\gtr@warning{The database key '\pgfkeyscurrentname' is unknown}% |
| 182 |
}}, |
| 183 |
database unknown key/error/.style={database/.unknown/.code={% |
| 184 |
\gtr@error{The database key '\pgfkeyscurrentname' is unknown}{% |
| 185 |
Perhaps you misspelled it or forgot to define a code for it.}% |
| 186 |
}}, |
| 187 |
database unknown key=warn, |
| 188 |
image prefix/.store in=\gtr@image@prefix, |
| 189 |
image prefix=, |
| 190 |
database/image/.code={% |
| 191 |
\begingroup\edef\x{\endgroup\noexpand\def\noexpand\gtrDBimage{\expandonce{\gtr@image@prefix}\unexpanded{#1}}}% |
| 192 |
\x% |
| 193 |
\ifundef{\gtrDBimageopt}{\let\gtrDBimageopt\@empty}{}% |
| 194 |
}, |
| 195 |
} |
| 196 |
|
| 197 |
\def\gtr@db@new@store#1{% |
| 198 |
\begingroup\edef\x{\endgroup\noexpand\gtrset{database/#1/.store in=\expandonce{\csname gtrDB#1\endcsname}}}% |
| 199 |
\x% |
| 200 |
} |
| 201 |
|
| 202 |
\gtr@db@new@store{age} |
| 203 |
\gtr@db@new@store{comment} |
| 204 |
\gtr@db@new@store{imageopt} |
| 205 |
\gtr@db@new@store{kekule} |
| 206 |
\gtr@db@new@store{name} |
| 207 |
\gtr@db@new@store{profession} |
| 208 |
\gtr@db@new@store{relation} |
| 209 |
\gtr@db@new@store{relationship} |
| 210 |
\gtr@db@new@store{sex} |
| 211 |
\gtr@db@new@store{shortname} |
| 212 |
\gtr@db@new@store{uuid} |
| 213 |
|
| 214 |
\pgfkeys{/gtr/database/relation/.append code=\xdef\gtr@flag@node@r{#1}} |
| 215 |
\pgfkeys{/gtr/database/sex/.append code=\xdef\gtr@flag@node@s{#1}} |
| 216 |
|
| 217 |
|
| 218 |
\def\gtr@db@new@event@store#1{% |
| 219 |
\begingroup\edef\x{\endgroup\noexpand\gtrset{% |
| 220 |
database/#1+/.code n args={3}{% |
| 221 |
\noexpand\gtrParseDate{#1}{\unexpanded{##1}}% |
| 222 |
\noexpand\def\expandonce{\csname gtrDB#1place\endcsname}{\unexpanded{##2}}% |
| 223 |
\noexpand\def\expandonce{\csname gtrDB#1mod\endcsname}{\unexpanded{##3}}},% |
| 224 |
database/#1/.style 2 args={#1+={\unexpanded{##1}}{\unexpanded{##2}}{}},% |
| 225 |
database/#1-/.style={#1+={\unexpanded{##1}}{}{}},% |
| 226 |
}}% |
| 227 |
\x% |
| 228 |
} |
| 229 |
|
| 230 |
\gtr@db@new@event@store{birth}% |
| 231 |
\gtr@db@new@event@store{baptism}% |
| 232 |
\gtr@db@new@event@store{engagement}% |
| 233 |
\gtr@db@new@event@store{marriage}% |
| 234 |
\gtr@db@new@event@store{divorce}% |
| 235 |
\gtr@db@new@event@store{floruit}% |
| 236 |
\gtr@db@new@event@store{death}% |
| 237 |
\gtr@db@new@event@store{burial}% |
| 238 |
|
| 239 |
\gtrset{% |
| 240 |
database/.cd, |
| 241 |
male/.style={sex=male}, |
| 242 |
female/.style={sex=female}, |
| 243 |
neuter/.style={sex=neuter}, |
| 244 |
viewport/.style={imageopt={viewport=#1,clip}}, |
| 245 |
db@reset/.style={name=,shortname=,sex=neuter}, |
| 246 |
ancestor/.style={relation=ancestor}, |
| 247 |
descendant/.style={relation=descendant}, |
| 248 |
sibling/.style={relation=sibling}, |
| 249 |
unrelated/.style={relation=unrelated}, |
| 250 |
id/.code={\gtrset{id=#1,code={\gtr@key@keysalsofrom{/gtr/nopt/\gtr@gkv@id}}}}, |
| 251 |
} |
| 252 |
|
| 253 |
\tcbset{% |
| 254 |
male/.style={colframe=blue}, |
| 255 |
female/.style={colframe=red}, |
| 256 |
neuter/.style={}, |
| 257 |
if image defined/.code n args={2}{\gtrifimagedefined{\tcbset{#1}}{\tcbset{#2}}}, |
| 258 |
} |
| 259 |
|
| 260 |
\gtrset{ |
| 261 |
event prefix/.cd, |
| 262 |
birth/.initial=\gtrsymBorn, |
| 263 |
birth/out of wedlock/.initial=\gtrsymBornoutofwedlock, |
| 264 |
birth/stillborn/.initial=\gtrsymStillborn, |
| 265 |
birth/died/.initial=\gtrsymDiedonbirthday, |
| 266 |
baptism/.initial=\gtrsymBaptized, |
| 267 |
engagement/.initial=\gtrsymEngaged, |
| 268 |
marriage/.initial=\gtrsymMarried, |
| 269 |
marriage/other/.initial=\gtrsymPartnership, |
| 270 |
divorce/.initial=\gtrsymDivorced, |
| 271 |
floruit/.initial=\gtrsymFloruit, |
| 272 |
death/.initial=\gtrsymDied, |
| 273 |
death/killed/.initial=\gtrsymKilled, |
| 274 |
burial/.initial=\gtrsymBuried, |
| 275 |
burial/cremated/.initial=\gtrsymFuneralurn, |
| 276 |
} |
| 277 |
|
| 278 |
\gtrset{ |
| 279 |
sex@/female/.code=\gtrsymFemale, |
| 280 |
sex@/f/.code=\gtrsymFemale, |
| 281 |
sex@/male/.code=\gtrsymMale, |
| 282 |
sex@/m/.code=\gtrsymMale, |
| 283 |
sex@/neuter/.code=\gtrsymNeuter, |
| 284 |
sex@/n/.code=\gtrsymNeuter, |
| 285 |
sex@/.unknown/.code=\gtrsymNeuter, |
| 286 |
} |
| 287 |
|
| 288 |
\def\gtrPrintEventPrefix#1{% |
| 289 |
\letcs\gtr@temp{gtrDB#1mod}% |
| 290 |
\ifdefvoid{\gtr@temp}{% |
| 291 |
\pgfkeysvalueof{/gtr/event prefix/#1}% |
| 292 |
}{% |
| 293 |
\pgfkeysvalueof{/gtr/event prefix/#1/\gtr@temp}% |
| 294 |
}% |
| 295 |
} |
| 296 |
|
| 297 |
\def\gtrDBsex{neuter} |
| 298 |
|
| 299 |
\def\gtriffemale#1#2{% |
| 300 |
\ifdefstring{\gtrDBsex}{female}{#1}{#2}% |
| 301 |
} |
| 302 |
|
| 303 |
\def\gtrifmale#1#2{% |
| 304 |
\ifdefstring{\gtrDBsex}{male}{#1}{#2}% |
| 305 |
} |
| 306 |
|
| 307 |
\def\gtrPrintSex{\gtrset{sex@/\gtrDBsex}} |
| 308 |
|
| 309 |
|
| 310 |
%%%%%%%%% |
| 311 |
% Names % |
| 312 |
|
| 313 |
\let\pref=\textit |
| 314 |
\let\surn=\textsc |
| 315 |
\def\nick#1{``#1''} |
| 316 |
|
| 317 |
\def\gtrPrintName@full{{% |
| 318 |
\hspace{0pt}% |
| 319 |
\ifdefvoid{\gtrDBname}{% |
| 320 |
\ifdefvoid{\gtrDBshortname}{% |
| 321 |
\gtrkv@namefont\gtr@emptynametext% |
| 322 |
}{% |
| 323 |
\gtrkv@namefont\gtrDBshortname% |
| 324 |
}% |
| 325 |
}{% |
| 326 |
\gtrkv@namefont\gtrDBname% |
| 327 |
}% |
| 328 |
}} |
| 329 |
|
| 330 |
|
| 331 |
\def\gtrPrintName@short{{% |
| 332 |
\hspace{0pt}% |
| 333 |
\ifdefvoid{\gtrDBshortname}{% |
| 334 |
\ifdefvoid{\gtrDBname}{% |
| 335 |
\gtrkv@namefont\gtr@emptynametext% |
| 336 |
}{% |
| 337 |
\gtrkv@namefont\gtrDBname% |
| 338 |
}% |
| 339 |
}{% |
| 340 |
\gtrkv@namefont\gtrDBshortname% |
| 341 |
}% |
| 342 |
}} |
| 343 |
|
| 344 |
\gtrset{% |
| 345 |
name/.is choice, |
| 346 |
name/full/.code={\let\gtrPrintName\gtrPrintName@full}, |
| 347 |
name/short/.code={\let\gtrPrintName\gtrPrintName@short}, |
| 348 |
name font/.store in=\gtrkv@namefont, |
| 349 |
name code/.code={\def\gtrPrintName{#1}}, |
| 350 |
pref code/.code={\def\pref##1{#1}}, |
| 351 |
surn code/.code={\def\surn##1{#1}}, |
| 352 |
nick code/.code={\def\nick##1{#1}}, |
| 353 |
empty name text/.store in=\gtr@emptynametext, |
| 354 |
} |
| 355 |
|
| 356 |
\gtrset{% |
| 357 |
name=full, |
| 358 |
name font=, |
| 359 |
empty name text=??, |
| 360 |
} |
| 361 |
|
| 362 |
|
| 363 |
%%%%%%%%%% |
| 364 |
% Events % |
| 365 |
|
| 366 |
\def\gtrlistseparator{} |
| 367 |
|
| 368 |
\newenvironment{gtrprintlist}[4]{% |
| 369 |
\def\gtrlistseparatorfinal{#4}% |
| 370 |
\def\gtrlistseparator{#1\def\gtrlistseparator{#2}\def\gtrlistseparatorfinal{#3}}% |
| 371 |
}{\gtrlistseparatorfinal} |
| 372 |
|
| 373 |
\newenvironment{gtreventlist}{}{} |
| 374 |
\newenvironment{gtrinfolist}{}{} |
| 375 |
|
| 376 |
\gtrset{% |
| 377 |
database format/.is choice, |
| 378 |
list separators/.code n args={4}{\renewenvironment{gtreventlist}{\begin{gtrprintlist}{#1}{#2}{#3}{#4}}{\end{gtrprintlist}}}, |
| 379 |
list separators hang/.style={list separators={\par\hangindent=#1\hangafter=1}% |
| 380 |
{\par\hangindent=#1\hangafter=1}{\par}{\par}}, |
| 381 |
list separators hang/.default=\tcbfitdim, |
| 382 |
list separators={\par}{\par}{\par}{\par}, |
| 383 |
info separators/.code n args={4}{\renewenvironment{gtrinfolist}{\begin{gtrprintlist}{#1}{#2}{#3}{#4}}{\end{gtrprintlist}}}, |
| 384 |
info separators={\par}{. }{.}{}, |
| 385 |
} |
| 386 |
|
| 387 |
\newcommand{\gtrDeclareDatabaseFormat}[3]{% |
| 388 |
\csdef{gtrOptionsDatabase@#1}{#2}% |
| 389 |
\csdef{gtrPrintDatabase@#1}{#3}% |
| 390 |
\begingroup\edef\x{\endgroup\noexpand\gtrset{database format/#1/.code={% |
| 391 |
\noexpand\letcs{\noexpand\gtrOptionsDatabase}{gtrOptionsDatabase@#1}% |
| 392 |
\noexpand\letcs{\noexpand\gtrPrintDatabase}{gtrPrintDatabase@#1}% |
| 393 |
}}}% |
| 394 |
\x% |
| 395 |
} |
| 396 |
|
| 397 |
\def\gtr@list@event#1{\gtrifeventdefined{#1}{\gtrlistseparator\hspace{0pt}\gtrPrintEvent{#1}}{}} |
| 398 |
|
| 399 |
\def\gtr@print@infolist{% |
| 400 |
\begin{gtrinfolist}% |
| 401 |
\gtrifprofessiondefined{\gtrlistseparator\gtrPrintProfession}{}% |
| 402 |
\gtrifcommentdefined{\gtrlistseparator\gtrPrintComment}{}% |
| 403 |
\end{gtrinfolist}% |
| 404 |
} |
| 405 |
|
| 406 |
\gtrDeclareDatabaseFormat{full}{}{% |
| 407 |
\gtrPrintName% |
| 408 |
\begin{gtreventlist}% |
| 409 |
\gtr@list@event{birth}% |
| 410 |
\gtr@list@event{baptism}% |
| 411 |
\gtr@list@event{engagement}% |
| 412 |
\gtr@list@event{marriage}% |
| 413 |
\gtr@list@event{divorce}% |
| 414 |
\gtr@list@event{floruit}% |
| 415 |
\gtr@list@event{death}% |
| 416 |
\gtr@list@event{burial}% |
| 417 |
\end{gtreventlist}% |
| 418 |
\gtr@print@infolist% |
| 419 |
} |
| 420 |
|
| 421 |
\def\gtrifnativitydefined#1#2{% |
| 422 |
\gtrifeventdefined{birth}{#1}{% |
| 423 |
\gtrifeventdefined{baptism}{#1}{#2}% |
| 424 |
}% |
| 425 |
} |
| 426 |
|
| 427 |
\def\gtrifwedlockdefined#1#2{% |
| 428 |
\gtrifeventdefined{marriage}{#1}{% |
| 429 |
\gtrifeventdefined{engagement}{#1}{% |
| 430 |
\gtrifeventdefined{divorce}{#1}{#2}% |
| 431 |
}% |
| 432 |
}% |
| 433 |
} |
| 434 |
|
| 435 |
\def\gtrifdeceasedefined#1#2{% |
| 436 |
\gtrifeventdefined{death}{#1}{% |
| 437 |
\gtrifeventdefined{burial}{#1}{#2}% |
| 438 |
}% |
| 439 |
} |
| 440 |
|
| 441 |
\gtrDeclareDatabaseFormat{full marriage above}{}{% |
| 442 |
\gtrifwedlockdefined{% |
| 443 |
\begin{gtreventlist}% |
| 444 |
\gtr@list@event{engagement}% |
| 445 |
\gtr@list@event{marriage}% |
| 446 |
\gtr@list@event{divorce}% |
| 447 |
\end{gtreventlist}\tcbline% |
| 448 |
}{}% |
| 449 |
\gtrPrintName% |
| 450 |
\begin{gtreventlist}% |
| 451 |
\gtr@list@event{birth}% |
| 452 |
\gtr@list@event{baptism}% |
| 453 |
\gtr@list@event{floruit}% |
| 454 |
\gtr@list@event{death}% |
| 455 |
\gtr@list@event{burial}% |
| 456 |
\end{gtreventlist}% |
| 457 |
\gtr@print@infolist% |
| 458 |
} |
| 459 |
|
| 460 |
\gtrDeclareDatabaseFormat{full marriage below}{}{% |
| 461 |
\gtrPrintName% |
| 462 |
\begin{gtreventlist}% |
| 463 |
\gtr@list@event{birth}% |
| 464 |
\gtr@list@event{baptism}% |
| 465 |
\gtr@list@event{floruit}% |
| 466 |
\gtr@list@event{death}% |
| 467 |
\gtr@list@event{burial}% |
| 468 |
\end{gtreventlist}% |
| 469 |
\gtr@print@infolist% |
| 470 |
\gtrifwedlockdefined{% |
| 471 |
\tcbline\begin{gtreventlist}% |
| 472 |
\gtr@list@event{engagement}% |
| 473 |
\gtr@list@event{marriage}% |
| 474 |
\gtr@list@event{divorce}% |
| 475 |
\end{gtreventlist}% |
| 476 |
}{}% |
| 477 |
} |
| 478 |
|
| 479 |
\gtrDeclareDatabaseFormat{full no marriage}{}{% |
| 480 |
\gtrPrintName% |
| 481 |
\begin{gtreventlist}% |
| 482 |
\gtr@list@event{birth}% |
| 483 |
\gtr@list@event{baptism}% |
| 484 |
\gtr@list@event{floruit}% |
| 485 |
\gtr@list@event{death}% |
| 486 |
\gtr@list@event{burial}% |
| 487 |
\end{gtreventlist}% |
| 488 |
\gtr@print@infolist% |
| 489 |
} |
| 490 |
|
| 491 |
\def\gtr@list@event@birth{% |
| 492 |
\gtrifeventdefined{birth}{\gtrlistseparator\hspace{0pt}\gtrPrintEvent{birth}}{% |
| 493 |
\gtr@list@event{baptism}% |
| 494 |
}% |
| 495 |
} |
| 496 |
|
| 497 |
\def\gtr@list@event@marriage{% |
| 498 |
\gtrifeventdefined{marriage}{\gtrlistseparator\hspace{0pt}\gtrPrintEvent{marriage}}{% |
| 499 |
\gtrifeventdefined{engagement}{\gtrlistseparator\hspace{0pt}\gtrPrintEvent{engagement}}{% |
| 500 |
\gtr@list@event{divorce}% |
| 501 |
}% |
| 502 |
}% |
| 503 |
} |
| 504 |
|
| 505 |
\def\gtr@list@event@floruit{% |
| 506 |
\gtrifeventdefined{floruit}{% |
| 507 |
\gtrifnativitydefined{% |
| 508 |
\gtrifdeceasedefined{}{% |
| 509 |
\gtrlistseparator\hspace{0pt}\gtrPrintEvent{floruit}% |
| 510 |
}% |
| 511 |
}{% |
| 512 |
\gtrlistseparator\hspace{0pt}\gtrPrintEvent{floruit}% |
| 513 |
}% |
| 514 |
}{}% |
| 515 |
} |
| 516 |
|
| 517 |
\def\gtr@list@event@death{% |
| 518 |
\gtrifeventdefined{death}{\gtrlistseparator\hspace{0pt}\gtrPrintEvent{death}}{% |
| 519 |
\gtr@list@event{burial}% |
| 520 |
}% |
| 521 |
} |
| 522 |
|
| 523 |
\gtrDeclareDatabaseFormat{medium}{}{% |
| 524 |
\gtrPrintName% |
| 525 |
\begin{gtreventlist}% |
| 526 |
\gtr@list@event@birth% |
| 527 |
\gtr@list@event@marriage% |
| 528 |
\gtr@list@event@floruit% |
| 529 |
\gtr@list@event@death% |
| 530 |
\end{gtreventlist}% |
| 531 |
\gtr@print@infolist% |
| 532 |
} |
| 533 |
|
| 534 |
\gtrDeclareDatabaseFormat{medium marriage above}{}{% |
| 535 |
\gtrifwedlockdefined{\begin{gtreventlist}\gtr@list@event@marriage\end{gtreventlist}\tcbline}{}% |
| 536 |
\gtrPrintName% |
| 537 |
\begin{gtreventlist}% |
| 538 |
\gtr@list@event@birth% |
| 539 |
\gtr@list@event@floruit% |
| 540 |
\gtr@list@event@death% |
| 541 |
\end{gtreventlist}% |
| 542 |
\gtr@print@infolist% |
| 543 |
} |
| 544 |
|
| 545 |
\gtrDeclareDatabaseFormat{medium marriage below}{}{% |
| 546 |
\gtrPrintName% |
| 547 |
\begin{gtreventlist}% |
| 548 |
\gtr@list@event@birth% |
| 549 |
\gtr@list@event@floruit% |
| 550 |
\gtr@list@event@death% |
| 551 |
\end{gtreventlist}% |
| 552 |
\gtr@print@infolist% |
| 553 |
\gtrifwedlockdefined{\tcbline\begin{gtreventlist}\gtr@list@event@marriage\end{gtreventlist}}{}% |
| 554 |
} |
| 555 |
|
| 556 |
\gtrDeclareDatabaseFormat{medium no marriage}{}{% |
| 557 |
\gtrPrintName% |
| 558 |
\begin{gtreventlist}% |
| 559 |
\gtr@list@event@birth% |
| 560 |
\gtr@list@event@floruit% |
| 561 |
\gtr@list@event@death% |
| 562 |
\end{gtreventlist}% |
| 563 |
\gtr@print@infolist% |
| 564 |
} |
| 565 |
|
| 566 |
\gtrDeclareDatabaseFormat{short}{}{% |
| 567 |
\gtrPrintName% |
| 568 |
\begin{gtreventlist}% |
| 569 |
\gtr@list@event@birth% |
| 570 |
\gtr@list@event@marriage% |
| 571 |
\gtr@list@event@floruit% |
| 572 |
\gtr@list@event@death% |
| 573 |
\end{gtreventlist}% |
| 574 |
} |
| 575 |
|
| 576 |
\gtrDeclareDatabaseFormat{short marriage above}{}{% |
| 577 |
\gtrifwedlockdefined{\begin{gtreventlist}\gtr@list@event@marriage\end{gtreventlist}\tcbline}{}% |
| 578 |
\gtrPrintName% |
| 579 |
\begin{gtreventlist}% |
| 580 |
\gtr@list@event@birth% |
| 581 |
\gtr@list@event@floruit% |
| 582 |
\gtr@list@event@death% |
| 583 |
\end{gtreventlist}% |
| 584 |
} |
| 585 |
|
| 586 |
\gtrDeclareDatabaseFormat{short marriage below}{}{% |
| 587 |
\gtrPrintName% |
| 588 |
\begin{gtreventlist}% |
| 589 |
\gtr@list@event@birth% |
| 590 |
\gtr@list@event@floruit% |
| 591 |
\gtr@list@event@death% |
| 592 |
\end{gtreventlist}% |
| 593 |
\gtrifwedlockdefined{\tcbline\begin{gtreventlist}\gtr@list@event@marriage\end{gtreventlist}}{}% |
| 594 |
} |
| 595 |
|
| 596 |
\gtrDeclareDatabaseFormat{short no marriage}{}{% |
| 597 |
\gtrPrintName% |
| 598 |
\begin{gtreventlist}% |
| 599 |
\gtr@list@event@birth% |
| 600 |
\gtr@list@event@floruit% |
| 601 |
\gtr@list@event@death% |
| 602 |
\end{gtreventlist}% |
| 603 |
} |
| 604 |
|
| 605 |
\gtrDeclareDatabaseFormat{marriage}{}{% |
| 606 |
\begin{gtreventlist}% |
| 607 |
\gtr@list@event@marriage% |
| 608 |
\end{gtreventlist}% |
| 609 |
} |
| 610 |
|
| 611 |
\gtrDeclareDatabaseFormat{name}{}{\gtrPrintName} |
| 612 |
|
| 613 |
\gtrDeclareDatabaseFormat{symbol}{}{\gtrPrintSex} |
| 614 |
|
| 615 |
\gtrDeclareDatabaseFormat{empty}{}{} |
| 616 |
|
| 617 |
\gtrset{% |
| 618 |
database format=medium |
| 619 |
} |
| 620 |
|
| 621 |
\def\gtrPrintEvent@prefixdateplace#1{% |
| 622 |
\gtrkv@event@pre\gtrPrintEventPrefix{#1}% |
| 623 |
\gtrkv@event@sepdate\gtrPrintDate{#1}% |
| 624 |
\gtrifplacedefined{#1}{\gtrkv@event@sepplace\gtrPrintPlace{#1}}{}% |
| 625 |
\gtrkv@event@app% |
| 626 |
} |
| 627 |
|
| 628 |
\def\gtrPrintEvent@prefixdate#1{% |
| 629 |
\gtrkv@event@pre\gtrPrintEventPrefix{#1}% |
| 630 |
\gtrkv@event@sepdate\gtrPrintDate{#1}% |
| 631 |
\gtrkv@event@app% |
| 632 |
} |
| 633 |
|
| 634 |
\def\gtrPrintEvent@date#1{% |
| 635 |
\gtrkv@event@pre\gtrPrintDate{#1}% |
| 636 |
\gtrkv@event@app% |
| 637 |
} |
| 638 |
|
| 639 |
|
| 640 |
%%%%%%%%%%%%%%%%%%%%%% |
| 641 |
% Age, Comment, Profession and Places % |
| 642 |
|
| 643 |
\def\gtrifagedefined#1#2{% |
| 644 |
\ifdefvoid{\gtrDBage}{#2}{#1}% |
| 645 |
} |
| 646 |
|
| 647 |
\def\gtrifcommentdefined#1#2{% |
| 648 |
\ifdefvoid{\gtrDBcomment}{#2}{#1}% |
| 649 |
} |
| 650 |
|
| 651 |
\def\gtrifprofessiondefined#1#2{% |
| 652 |
\ifdefvoid{\gtrDBprofession}{#2}{#1}% |
| 653 |
} |
| 654 |
|
| 655 |
\def\gtrifplacedefined#1#2#3{% |
| 656 |
\ifcsvoid{gtrDB#1place}{#3}{#2}% |
| 657 |
} |
| 658 |
|
| 659 |
\def\gtrPrintPlace#1{% |
| 660 |
\gtrkv@place@pre\csuse{gtrDB#1place}\gtrkv@place@app% |
| 661 |
} |
| 662 |
|
| 663 |
%%%%%%%%% |
| 664 |
% Dates % |
| 665 |
|
| 666 |
\def\gtr@parse@date@md#1#2#3\@nil{% |
| 667 |
\ifblank{#3}{\csdef{#1}{0#2}}{\csdef{#1}{#2#3}}% |
| 668 |
} |
| 669 |
|
| 670 |
\def\gtr@parse@date@@cymd(#1)#2-#3-#4-#5\@nil{% |
| 671 |
\csdef{\gtr@db@date@prefix@ cal}{#1}% |
| 672 |
\csdef{\gtr@db@date@prefix@ year}{#2}% |
| 673 |
\notblank{#3}{\gtr@parse@date@md{\gtr@db@date@prefix@ month}#3\@nil}{}% |
| 674 |
\notblank{#4}{\gtr@parse@date@md{\gtr@db@date@prefix@ day}#4\@nil}{}% |
| 675 |
} |
| 676 |
|
| 677 |
\def\gtr@parse@date@cymd{% |
| 678 |
\@ifnextchar({\gtr@parse@date@@cymd}{\gtr@parse@date@@cymd(AD)}% |
| 679 |
} |
| 680 |
|
| 681 |
\def\gtr@parse@date@begin#1{% |
| 682 |
\let\gtr@db@date@prefix@\gtr@db@date@prefix% |
| 683 |
\gtr@parse@date@cymd#1---\@nil% |
| 684 |
} |
| 685 |
|
| 686 |
\def\gtr@parse@date@end#1/{% |
| 687 |
\edef\gtr@db@date@prefix@{\gtr@db@date@prefix end}% |
| 688 |
\gtr@parse@date@cymd#1---\@nil% |
| 689 |
} |
| 690 |
|
| 691 |
\def\gtr@parse@date@range#1/#2\@nil{% |
| 692 |
\ifblank{#2}{% |
| 693 |
\ifblank{#1}{}{\gtr@parse@date@begin{#1}}% |
| 694 |
}{% |
| 695 |
\ifstrequal{#2}{/}{% |
| 696 |
\ifblank{#1}{}{% |
| 697 |
\csdef{\gtr@db@date@prefix endyear}{}% |
| 698 |
\gtr@parse@date@begin{#1}% |
| 699 |
}% |
| 700 |
}{% |
| 701 |
\ifblank{#1}{% |
| 702 |
\csdef{\gtr@db@date@prefix year}{}% |
| 703 |
\gtr@parse@date@end#2% |
| 704 |
}{% |
| 705 |
\gtr@parse@date@begin{#1}% |
| 706 |
\gtr@parse@date@end#2% |
| 707 |
}% |
| 708 |
}% |
| 709 |
}% |
| 710 |
} |
| 711 |
|
| 712 |
\def\gtr@parse@date#1#2{% |
| 713 |
\csundef{#1cal}% |
| 714 |
\csundef{#1day}% |
| 715 |
\csundef{#1month}% |
| 716 |
\csundef{#1year}% |
| 717 |
\csundef{#1endcal}% |
| 718 |
\csundef{#1endday}% |
| 719 |
\csundef{#1endmonth}% |
| 720 |
\csundef{#1endyear}% |
| 721 |
\notblank{#2}{% |
| 722 |
\gtr@parse@date@range#2/\@nil% |
| 723 |
}{}% |
| 724 |
} |
| 725 |
|
| 726 |
\def\gtrParseDate#1{% |
| 727 |
\edef\gtr@db@date@prefix{gtrDB#1}% |
| 728 |
\gtr@parse@date{gtrDB#1}% |
| 729 |
} |
| 730 |
|
| 731 |
\def\gtr@strip@zero@0#1\@nil{#1} |
| 732 |
|
| 733 |
\def\gtr@strip@zero{% |
| 734 |
\@ifnextchar0{\gtr@strip@zero@}{\gtr@strip@zero@0}% |
| 735 |
} |
| 736 |
|
| 737 |
\def\gtr@cs@strip@zero#1{% |
| 738 |
\letcs\gtr@temp{#1}% |
| 739 |
\expandafter\gtr@strip@zero\gtr@temp\@nil% |
| 740 |
} |
| 741 |
|
| 742 |
\def\gtr@cs@Roman#1{% |
| 743 |
\letcs\gtr@temp{#1}% |
| 744 |
\@Roman{\numexpr\gtr@temp}% |
| 745 |
} |
| 746 |
|
| 747 |
\def\gtr@cs@monthlong#1{% |
| 748 |
\pgfkeysvalueof{/gtr/month long/\csuse{#1}}% |
| 749 |
} |
| 750 |
|
| 751 |
\def\gtr@cs@monthshort#1{{% |
| 752 |
\def\dot{}% |
| 753 |
\pgfkeysvalueof{/gtr/month short/\csuse{#1}}% |
| 754 |
}} |
| 755 |
|
| 756 |
\def\gtr@cs@monthshortdot#1{{% |
| 757 |
\def\dot{.}% |
| 758 |
\pgfkeysvalueof{/gtr/month short/\csuse{#1}}% |
| 759 |
}} |
| 760 |
|
| 761 |
\def\gtrifdatedefined#1#2#3{% |
| 762 |
\ifcsdef{gtrDB#1year}{#2}{% |
| 763 |
\ifcsdef{gtrDB#1endyear}{#2}{#3}% |
| 764 |
}% |
| 765 |
} |
| 766 |
\let\gtrifeventdefined=\gtrifdatedefined |
| 767 |
|
| 768 |
\def\gtr@dateformat@factory#1#2{% |
| 769 |
\csdef{gtrPrintDateCore@#1}##1{#2}% |
| 770 |
\gtrset{date format/{#1}/.code={\letcs\gtrPrintDateCore{gtrPrintDateCore@#1}}}% |
| 771 |
} |
| 772 |
|
| 773 |
\gtr@dateformat@factory{dd.mm.yyyy}{% |
| 774 |
\ifcsdef{#1month}{% |
| 775 |
\ifcsdef{#1day}{\csuse{#1day}.}{}% |
| 776 |
\csuse{#1month}.% |
| 777 |
}{}% |
| 778 |
\csuse{#1year}% |
| 779 |
} |
| 780 |
|
| 781 |
\gtr@dateformat@factory{d.m.yyyy}{% |
| 782 |
\ifcsdef{#1month}{% |
| 783 |
\ifcsdef{#1day}{\gtr@cs@strip@zero{#1day}.}{}% |
| 784 |
\gtr@cs@strip@zero{#1month}.% |
| 785 |
}{}% |
| 786 |
\csuse{#1year}% |
| 787 |
} |
| 788 |
|
| 789 |
\gtr@dateformat@factory{d.M.yyyy}{% |
| 790 |
\ifcsdef{#1month}{% |
| 791 |
\ifcsdef{#1day}{\gtr@cs@strip@zero{#1day}.}{}% |
| 792 |
\gtr@cs@Roman{#1month}.% |
| 793 |
}{}% |
| 794 |
\csuse{#1year}% |
| 795 |
} |
| 796 |
|
| 797 |
\gtr@dateformat@factory{d.month yyyy}{% |
| 798 |
\ifcsdef{#1month}{% |
| 799 |
\ifcsdef{#1day}{\gtr@cs@strip@zero{#1day}.~}{}% |
| 800 |
\gtr@cs@monthlong{#1month}\ % |
| 801 |
}{}% |
| 802 |
\csuse{#1year}% |
| 803 |
} |
| 804 |
|
| 805 |
\gtr@dateformat@factory{dd.mon.yyyy}{% |
| 806 |
\ifcsdef{#1month}{% |
| 807 |
\ifcsdef{#1day}{\csuse{#1day}.~}{}% |
| 808 |
\gtr@cs@monthshortdot{#1month}\ % |
| 809 |
}{}% |
| 810 |
\csuse{#1year}% |
| 811 |
} |
| 812 |
|
| 813 |
\gtr@dateformat@factory{d.mon.yyyy}{% |
| 814 |
\ifcsdef{#1month}{% |
| 815 |
\ifcsdef{#1day}{\gtr@cs@strip@zero{#1day}.~}{}% |
| 816 |
\gtr@cs@monthshortdot{#1month}\ % |
| 817 |
}{}% |
| 818 |
\csuse{#1year}% |
| 819 |
} |
| 820 |
|
| 821 |
\gtr@dateformat@factory{dd mon.yyyy}{% |
| 822 |
\ifcsdef{#1month}{% |
| 823 |
\ifcsdef{#1day}{\csuse{#1day}~}{}% |
| 824 |
\gtr@cs@monthshortdot{#1month}\ % |
| 825 |
}{}% |
| 826 |
\csuse{#1year}% |
| 827 |
} |
| 828 |
|
| 829 |
\gtr@dateformat@factory{d mon.yyyy}{% |
| 830 |
\ifcsdef{#1month}{% |
| 831 |
\ifcsdef{#1day}{\gtr@cs@strip@zero{#1day}~}{}% |
| 832 |
\gtr@cs@monthshortdot{#1month}\ % |
| 833 |
}{}% |
| 834 |
\csuse{#1year}% |
| 835 |
} |
| 836 |
|
| 837 |
\gtr@dateformat@factory{dd/mm/yyyy}{% |
| 838 |
\ifcsdef{#1month}{% |
| 839 |
\ifcsdef{#1day}{\csuse{#1day}/}{}% |
| 840 |
\csuse{#1month}/% |
| 841 |
}{}% |
| 842 |
\csuse{#1year}% |
| 843 |
} |
| 844 |
|
| 845 |
\gtr@dateformat@factory{dd/mm yyyy}{% |
| 846 |
\ifcsdef{#1month}{% |
| 847 |
\ifcsdef{#1day}{\csuse{#1day}/}{}% |
| 848 |
\csuse{#1month}\ % |
| 849 |
}{}% |
| 850 |
\csuse{#1year}% |
| 851 |
} |
| 852 |
|
| 853 |
\gtr@dateformat@factory{d/m/yyyy}{% |
| 854 |
\ifcsdef{#1month}{% |
| 855 |
\ifcsdef{#1day}{\gtr@cs@strip@zero{#1day}/}{}% |
| 856 |
\gtr@cs@strip@zero{#1month}/% |
| 857 |
}{}% |
| 858 |
\csuse{#1year}% |
| 859 |
} |
| 860 |
|
| 861 |
\gtr@dateformat@factory{d/m yyyy}{% |
| 862 |
\ifcsdef{#1month}{% |
| 863 |
\ifcsdef{#1day}{\gtr@cs@strip@zero{#1day}/}{}% |
| 864 |
\gtr@cs@strip@zero{#1month}\ % |
| 865 |
}{}% |
| 866 |
\csuse{#1year}% |
| 867 |
} |
| 868 |
|
| 869 |
\gtr@dateformat@factory{d/M/yyyy}{% |
| 870 |
\ifcsdef{#1month}{% |
| 871 |
\ifcsdef{#1day}{\gtr@cs@strip@zero{#1day}/}{}% |
| 872 |
\gtr@cs@Roman{#1month}/% |
| 873 |
}{}% |
| 874 |
\csuse{#1year}% |
| 875 |
} |
| 876 |
|
| 877 |
\gtr@dateformat@factory{dd/month/yyyy}{% |
| 878 |
\ifcsdef{#1month}{% |
| 879 |
\ifcsdef{#1day}{\csuse{#1day}/}{}% |
| 880 |
\gtr@cs@monthlong{#1month}/% |
| 881 |
}{}% |
| 882 |
\csuse{#1year}% |
| 883 |
} |
| 884 |
|
| 885 |
\gtr@dateformat@factory{d/month/yyyy}{% |
| 886 |
\ifcsdef{#1month}{% |
| 887 |
\ifcsdef{#1day}{\gtr@cs@strip@zero{#1day}/}{}% |
| 888 |
\gtr@cs@monthlong{#1month}/% |
| 889 |
}{}% |
| 890 |
\csuse{#1year}% |
| 891 |
} |
| 892 |
|
| 893 |
\gtr@dateformat@factory{dd/mon/yyyy}{% |
| 894 |
\ifcsdef{#1month}{% |
| 895 |
\ifcsdef{#1day}{\csuse{#1day}/}{}% |
| 896 |
\gtr@cs@monthshort{#1month}/% |
| 897 |
}{}% |
| 898 |
\csuse{#1year}% |
| 899 |
} |
| 900 |
|
| 901 |
\gtr@dateformat@factory{d/mon/yyyy}{% |
| 902 |
\ifcsdef{#1month}{% |
| 903 |
\ifcsdef{#1day}{\gtr@cs@strip@zero{#1day}/}{}% |
| 904 |
\gtr@cs@monthshort{#1month}/% |
| 905 |
}{}% |
| 906 |
\csuse{#1year}% |
| 907 |
} |
| 908 |
|
| 909 |
\gtr@dateformat@factory{dd mm yyyy}{% |
| 910 |
\ifcsdef{#1month}{% |
| 911 |
\ifcsdef{#1day}{\csuse{#1day}~}{}% |
| 912 |
\csuse{#1month}~% |
| 913 |
}{}% |
| 914 |
\csuse{#1year}% |
| 915 |
} |
| 916 |
|
| 917 |
\gtr@dateformat@factory{d M yyyy}{% |
| 918 |
\ifcsdef{#1month}{% |
| 919 |
\ifcsdef{#1day}{\gtr@cs@strip@zero{#1day}~}{}% |
| 920 |
\gtr@cs@Roman{#1month}~% |
| 921 |
}{}% |
| 922 |
\csuse{#1year}% |
| 923 |
} |
| 924 |
|
| 925 |
\gtr@dateformat@factory{d month yyyy}{% |
| 926 |
\ifcsdef{#1month}{% |
| 927 |
\ifcsdef{#1day}{\gtr@cs@strip@zero{#1day}~}{}% |
| 928 |
\gtr@cs@monthlong{#1month}\ % |
| 929 |
}{}% |
| 930 |
\csuse{#1year}% |
| 931 |
} |
| 932 |
|
| 933 |
\gtr@dateformat@factory{dd mon yyyy}{% |
| 934 |
\ifcsdef{#1month}{% |
| 935 |
\ifcsdef{#1day}{\csuse{#1day}~}{}% |
| 936 |
\gtr@cs@monthshort{#1month}\ % |
| 937 |
}{}% |
| 938 |
\csuse{#1year}% |
| 939 |
} |
| 940 |
|
| 941 |
\gtr@dateformat@factory{d mon yyyy}{% |
| 942 |
\ifcsdef{#1month}{% |
| 943 |
\ifcsdef{#1day}{\gtr@cs@strip@zero{#1day}~}{}% |
| 944 |
\gtr@cs@monthshort{#1month}\ % |
| 945 |
}{}% |
| 946 |
\csuse{#1year}% |
| 947 |
} |
| 948 |
|
| 949 |
\gtr@dateformat@factory{dd-mm-yyyy}{% |
| 950 |
\ifcsdef{#1month}{% |
| 951 |
\ifcsdef{#1day}{\csuse{#1day}-}{}% |
| 952 |
\csuse{#1month}-% |
| 953 |
}{}% |
| 954 |
\csuse{#1year}% |
| 955 |
} |
| 956 |
|
| 957 |
\gtr@dateformat@factory{d-m-yyyy}{% |
| 958 |
\ifcsdef{#1month}{% |
| 959 |
\ifcsdef{#1day}{\gtr@cs@strip@zero{#1day}-}{}% |
| 960 |
\gtr@cs@strip@zero{#1month}-% |
| 961 |
}{}% |
| 962 |
\csuse{#1year}% |
| 963 |
} |
| 964 |
|
| 965 |
\gtr@dateformat@factory{d-M-yyyy}{% |
| 966 |
\ifcsdef{#1month}{% |
| 967 |
\ifcsdef{#1day}{\gtr@cs@strip@zero{#1day}-}{}% |
| 968 |
\gtr@cs@Roman{#1month}-% |
| 969 |
}{}% |
| 970 |
\csuse{#1year}% |
| 971 |
} |
| 972 |
|
| 973 |
\gtr@dateformat@factory{dd-month-yyyy}{% |
| 974 |
\ifcsdef{#1month}{% |
| 975 |
\ifcsdef{#1day}{\csuse{#1day}-}{}% |
| 976 |
\gtr@cs@monthlong{#1month}-% |
| 977 |
}{}% |
| 978 |
\csuse{#1year}% |
| 979 |
} |
| 980 |
|
| 981 |
\gtr@dateformat@factory{d-month-yyyy}{% |
| 982 |
\ifcsdef{#1month}{% |
| 983 |
\ifcsdef{#1day}{\gtr@cs@strip@zero{#1day}-}{}% |
| 984 |
\gtr@cs@monthlong{#1month}-% |
| 985 |
}{}% |
| 986 |
\csuse{#1year}% |
| 987 |
} |
| 988 |
|
| 989 |
\gtr@dateformat@factory{dd-mon-yyyy}{% |
| 990 |
\ifcsdef{#1month}{% |
| 991 |
\ifcsdef{#1day}{\csuse{#1day}-}{}% |
| 992 |
\gtr@cs@monthshort{#1month}-% |
| 993 |
}{}% |
| 994 |
\csuse{#1year}% |
| 995 |
} |
| 996 |
|
| 997 |
\gtr@dateformat@factory{d-mon-yyyy}{% |
| 998 |
\ifcsdef{#1month}{% |
| 999 |
\ifcsdef{#1day}{\gtr@cs@strip@zero{#1day}-}{}% |
| 1000 |
\gtr@cs@monthshort{#1month}-% |
| 1001 |
}{}% |
| 1002 |
\csuse{#1year}% |
| 1003 |
} |
| 1004 |
|
| 1005 |
\gtr@dateformat@factory{ddmonyyyy}{% |
| 1006 |
\ifcsdef{#1month}{% |
| 1007 |
\ifcsdef{#1day}{\csuse{#1day}}{}% |
| 1008 |
\gtr@cs@monthshort{#1month}% |
| 1009 |
}{}% |
| 1010 |
\csuse{#1year}% |
| 1011 |
} |
| 1012 |
|
| 1013 |
\gtr@dateformat@factory{yyyy.mm.dd}{% |
| 1014 |
\csuse{#1year}% |
| 1015 |
\ifcsdef{#1month}{% |
| 1016 |
.\csuse{#1month}% |
| 1017 |
\ifcsdef{#1day}{.\csuse{#1day}}{}% |
| 1018 |
}{}% |
| 1019 |
} |
| 1020 |
|
| 1021 |
\gtr@dateformat@factory{yyyy.m.d}{% |
| 1022 |
\csuse{#1year}% |
| 1023 |
\ifcsdef{#1month}{% |
| 1024 |
.\gtr@cs@strip@zero{#1month}% |
| 1025 |
\ifcsdef{#1day}{.\gtr@cs@strip@zero{#1day}}{}% |
| 1026 |
}{}% |
| 1027 |
} |
| 1028 |
|
| 1029 |
\gtr@dateformat@factory{yyyy.m.d.}{% |
| 1030 |
\csuse{#1year}.% |
| 1031 |
\ifcsdef{#1month}{% |
| 1032 |
~\gtr@cs@strip@zero{#1month}.% |
| 1033 |
\ifcsdef{#1day}{~\gtr@cs@strip@zero{#1day}.}{}% |
| 1034 |
}{}% |
| 1035 |
} |
| 1036 |
|
| 1037 |
\gtr@dateformat@factory{yyyy.M.d.}{% |
| 1038 |
\csuse{#1year}.% |
| 1039 |
\ifcsdef{#1month}{% |
| 1040 |
~\gtr@cs@Roman{#1month}.% |
| 1041 |
\ifcsdef{#1day}{~\gtr@cs@strip@zero{#1day}.}{}% |
| 1042 |
}{}% |
| 1043 |
} |
| 1044 |
|
| 1045 |
\gtr@dateformat@factory{yyyy.month d.}{% |
| 1046 |
\csuse{#1year}.% |
| 1047 |
\ifcsdef{#1month}{% |
| 1048 |
~\gtr@cs@monthlong{#1month}% |
| 1049 |
\ifcsdef{#1day}{~\gtr@cs@strip@zero{#1day}.}{}% |
| 1050 |
}{}% |
| 1051 |
} |
| 1052 |
|
| 1053 |
\gtr@dateformat@factory{yyyy.mon.d.}{% |
| 1054 |
\csuse{#1year}.% |
| 1055 |
\ifcsdef{#1month}{% |
| 1056 |
~\gtr@cs@monthshortdot{#1month}% |
| 1057 |
\ifcsdef{#1day}{~\gtr@cs@strip@zero{#1day}.}{}% |
| 1058 |
}{}% |
| 1059 |
} |
| 1060 |
|
| 1061 |
\gtr@dateformat@factory{yyyy/mm/dd}{% |
| 1062 |
\csuse{#1year}% |
| 1063 |
\ifcsdef{#1month}{% |
| 1064 |
/\csuse{#1month}% |
| 1065 |
\ifcsdef{#1day}{/\csuse{#1day}}{}% |
| 1066 |
}{}% |
| 1067 |
} |
| 1068 |
|
| 1069 |
\gtr@dateformat@factory{yyyy/m/d}{% |
| 1070 |
\csuse{#1year}% |
| 1071 |
\ifcsdef{#1month}{% |
| 1072 |
/\gtr@cs@strip@zero{#1month}% |
| 1073 |
\ifcsdef{#1day}{/\gtr@cs@strip@zero{#1day}}{}% |
| 1074 |
}{}% |
| 1075 |
} |
| 1076 |
|
| 1077 |
\gtr@dateformat@factory{yyyy d/m}{% |
| 1078 |
\csuse{#1year}% |
| 1079 |
\ifcsdef{#1month}{% |
| 1080 |
\ \ifcsdef{#1day}{\gtr@cs@strip@zero{#1day}/}{}% |
| 1081 |
\gtr@cs@strip@zero{#1month}% |
| 1082 |
}{}% |
| 1083 |
} |
| 1084 |
|
| 1085 |
\gtr@dateformat@factory{yyyy mm dd}{% |
| 1086 |
\csuse{#1year}% |
| 1087 |
\ifcsdef{#1month}{% |
| 1088 |
~\csuse{#1month}% |
| 1089 |
\ifcsdef{#1day}{~\csuse{#1day}}{}% |
| 1090 |
}{}% |
| 1091 |
} |
| 1092 |
|
| 1093 |
\gtr@dateformat@factory{yyyy month d}{% |
| 1094 |
\csuse{#1year}% |
| 1095 |
\ifcsdef{#1month}{% |
| 1096 |
~\gtr@cs@monthlong{#1month}% |
| 1097 |
\ifcsdef{#1day}{~\gtr@cs@strip@zero{#1day}}{}% |
| 1098 |
}{}% |
| 1099 |
} |
| 1100 |
|
| 1101 |
\gtr@dateformat@factory{yyyy mon dd}{% |
| 1102 |
\csuse{#1year}% |
| 1103 |
\ifcsdef{#1month}{% |
| 1104 |
~\gtr@cs@monthshort{#1month}% |
| 1105 |
\ifcsdef{#1day}{~\csuse{#1day}}{}% |
| 1106 |
}{}% |
| 1107 |
} |
| 1108 |
|
| 1109 |
\gtr@dateformat@factory{yyyy-mm-dd}{% |
| 1110 |
\csuse{#1year}% |
| 1111 |
\ifcsdef{#1month}{% |
| 1112 |
-\csuse{#1month}% |
| 1113 |
\ifcsdef{#1day}{-\csuse{#1day}}{}% |
| 1114 |
}{}% |
| 1115 |
} |
| 1116 |
|
| 1117 |
\gtr@dateformat@factory{yyyy-mon-dd}{% |
| 1118 |
\csuse{#1year}% |
| 1119 |
\ifcsdef{#1month}{% |
| 1120 |
-\gtr@cs@monthshort{#1month}% |
| 1121 |
\ifcsdef{#1day}{-\csuse{#1day}}{}% |
| 1122 |
}{}% |
| 1123 |
} |
| 1124 |
|
| 1125 |
\gtr@dateformat@factory{yyyy-mon-d}{% |
| 1126 |
\csuse{#1year}% |
| 1127 |
\ifcsdef{#1month}{% |
| 1128 |
-\gtr@cs@monthshort{#1month}% |
| 1129 |
\ifcsdef{#1day}{-\gtr@cs@strip@zero{#1day}}{}% |
| 1130 |
}{}% |
| 1131 |
} |
| 1132 |
|
| 1133 |
\gtr@dateformat@factory{yyyymondd}{% |
| 1134 |
\csuse{#1year}% |
| 1135 |
\ifcsdef{#1month}{% |
| 1136 |
\gtr@cs@monthshort{#1month}% |
| 1137 |
\ifcsdef{#1day}{\csuse{#1day}}{}% |
| 1138 |
}{}% |
| 1139 |
} |
| 1140 |
|
| 1141 |
\gtr@dateformat@factory{yyyymmdd}{% |
| 1142 |
\csuse{#1year}% |
| 1143 |
\ifcsdef{#1month}{% |
| 1144 |
\csuse{#1month}% |
| 1145 |
\ifcsdef{#1day}{\csuse{#1day}}{}% |
| 1146 |
}{}% |
| 1147 |
} |
| 1148 |
|
| 1149 |
\gtr@dateformat@factory{mm.dd.yyyy}{% |
| 1150 |
\ifcsdef{#1month}{% |
| 1151 |
\csuse{#1month}.% |
| 1152 |
\ifcsdef{#1day}{\csuse{#1day}.}{}% |
| 1153 |
}{}% |
| 1154 |
\csuse{#1year}% |
| 1155 |
} |
| 1156 |
|
| 1157 |
\gtr@dateformat@factory{m.d.yyyy}{% |
| 1158 |
\ifcsdef{#1month}{% |
| 1159 |
\gtr@cs@strip@zero{#1month}.% |
| 1160 |
\ifcsdef{#1day}{\gtr@cs@strip@zero{#1day}.}{}% |
| 1161 |
}{}% |
| 1162 |
\csuse{#1year}% |
| 1163 |
} |
| 1164 |
|
| 1165 |
\gtr@dateformat@factory{mm/dd/yyyy}{% |
| 1166 |
\ifcsdef{#1month}{% |
| 1167 |
\csuse{#1month}/% |
| 1168 |
\ifcsdef{#1day}{\csuse{#1day}/}{}% |
| 1169 |
}{}% |
| 1170 |
\csuse{#1year}% |
| 1171 |
} |
| 1172 |
|
| 1173 |
\gtr@dateformat@factory{m/d/yyyy}{% |
| 1174 |
\ifcsdef{#1month}{% |
| 1175 |
\gtr@cs@strip@zero{#1month}/% |
| 1176 |
\ifcsdef{#1day}{\gtr@cs@strip@zero{#1day}/}{}% |
| 1177 |
}{}% |
| 1178 |
\csuse{#1year}% |
| 1179 |
} |
| 1180 |
|
| 1181 |
\gtr@dateformat@factory{mm-dd-yyyy}{% |
| 1182 |
\ifcsdef{#1month}{% |
| 1183 |
\csuse{#1month}-% |
| 1184 |
\ifcsdef{#1day}{\csuse{#1day}-}{}% |
| 1185 |
}{}% |
| 1186 |
\csuse{#1year}% |
| 1187 |
} |
| 1188 |
|
| 1189 |
\gtr@dateformat@factory{m-d-yyyy}{% |
| 1190 |
\ifcsdef{#1month}{% |
| 1191 |
\gtr@cs@strip@zero{#1month}-% |
| 1192 |
\ifcsdef{#1day}{\gtr@cs@strip@zero{#1day}-}{}% |
| 1193 |
}{}% |
| 1194 |
\csuse{#1year}% |
| 1195 |
} |
| 1196 |
|
| 1197 |
\gtr@dateformat@factory{month d yyyy}{% |
| 1198 |
\ifcsdef{#1month}{% |
| 1199 |
\gtr@cs@monthlong{#1month}% |
| 1200 |
\ifcsdef{#1day}{~\gtr@cs@strip@zero{#1day}}{},\ % |
| 1201 |
}{}% |
| 1202 |
\csuse{#1year}% |
| 1203 |
} |
| 1204 |
|
| 1205 |
\gtr@dateformat@factory{mon.d yyyy}{% |
| 1206 |
\ifcsdef{#1month}{% |
| 1207 |
\gtr@cs@monthshortdot{#1month}% |
| 1208 |
\ifcsdef{#1day}{~\gtr@cs@strip@zero{#1day}}{},\ % |
| 1209 |
}{}% |
| 1210 |
\csuse{#1year}% |
| 1211 |
} |
| 1212 |
|
| 1213 |
\gtr@dateformat@factory{mon d yyyy}{% |
| 1214 |
\ifcsdef{#1month}{% |
| 1215 |
\gtr@cs@monthshort{#1month}% |
| 1216 |
\ifcsdef{#1day}{~\gtr@cs@strip@zero{#1day}}{},\ % |
| 1217 |
}{}% |
| 1218 |
\csuse{#1year}% |
| 1219 |
} |
| 1220 |
|
| 1221 |
\gtr@dateformat@factory{yyyy}{% |
| 1222 |
\csuse{#1year}% |
| 1223 |
} |
| 1224 |
|
| 1225 |
|
| 1226 |
\def\gtr@print@date@single@calendar@all#1{% |
| 1227 |
\ifcsempty{#1year}{}{% |
| 1228 |
\letcs\gtr@temp{#1cal}% |
| 1229 |
\gtrset{calendar/\gtr@temp}% |
| 1230 |
\gtr@db@cal@pre% |
| 1231 |
\gtrPrintDateCore{#1}% |
| 1232 |
\gtr@db@cal@app% |
| 1233 |
}% |
| 1234 |
} |
| 1235 |
|
| 1236 |
\def\gtr@print@date@single@calendar@AD#1{% |
| 1237 |
\ifcsempty{#1year}{}{% |
| 1238 |
\letcs\gtr@temp{#1cal}% |
| 1239 |
\ifdefstring{\gtr@temp}{AD}{% |
| 1240 |
\gtrPrintDateCore{#1}% |
| 1241 |
}{% |
| 1242 |
\ifdefstring{\gtr@temp}{caAD}{% |
| 1243 |
\gtrset{calendar/ca}% |
| 1244 |
}{% |
| 1245 |
\gtrset{calendar/\gtr@temp}% |
| 1246 |
}% |
| 1247 |
\gtr@db@cal@pre% |
| 1248 |
\gtrPrintDateCore{#1}% |
| 1249 |
\gtr@db@cal@app% |
| 1250 |
}% |
| 1251 |
}% |
| 1252 |
} |
| 1253 |
|
| 1254 |
\def\gtr@print@date@single@calendar@none#1{% |
| 1255 |
\ifcsempty{#1year}{}{% |
| 1256 |
\gtrPrintDateCore{#1}% |
| 1257 |
}% |
| 1258 |
} |
| 1259 |
|
| 1260 |
\def\gtrPrintDate#1{% |
| 1261 |
\ifcsdef{gtrDB#1year}{% |
| 1262 |
\ifcsdef{gtrDB#1endyear}{% |
| 1263 |
\ifcsempty{gtrDB#1endyear}{% |
| 1264 |
\gtrkv@range@after@A% |
| 1265 |
\gtr@print@date@single@calendar{gtrDB#1}% |
| 1266 |
\gtrkv@range@after@B% |
| 1267 |
}{% |
| 1268 |
\ifcsempty{gtrDB#1year}{% |
| 1269 |
\gtrkv@range@before@A% |
| 1270 |
\gtr@print@date@single@calendar{gtrDB#1end}% |
| 1271 |
\gtrkv@range@before@B% |
| 1272 |
}{% |
| 1273 |
\gtrkv@range@full@A% |
| 1274 |
\gtr@print@date@single@calendar{gtrDB#1}% |
| 1275 |
\gtrkv@range@full@B% |
| 1276 |
\gtr@print@date@single@calendar{gtrDB#1end}% |
| 1277 |
\gtrkv@range@full@C% |
| 1278 |
}% |
| 1279 |
}% |
| 1280 |
}{% |
| 1281 |
\gtr@print@date@single@calendar{gtrDB#1}% |
| 1282 |
}% |
| 1283 |
}{??}% |
| 1284 |
} |
| 1285 |
|
| 1286 |
\def\gtrifimagedefined#1#2{% |
| 1287 |
\ifdefvoid{\gtrDBimage}{#2}{#1}% |
| 1288 |
} |
| 1289 |
|
| 1290 |
\ExplSyntaxOn |
| 1291 |
|
| 1292 |
\NewDocumentCommand \gtrincludeDBimage { m } |
| 1293 |
{ |
| 1294 |
\exp_last_unbraced:NNV \includegraphics [ \gtrDBimageopt, #1 ] { \gtrDBimage } |
| 1295 |
} |
| 1296 |
|
| 1297 |
\tikzset |
| 1298 |
{ |
| 1299 |
fill@gtrDB@image@options/.code= |
| 1300 |
{ |
| 1301 |
\tl_set:Nx \l__getree_tmpa_tl { fill~image~options = { \exp_not:V \gtrDBimageopt } } |
| 1302 |
\pgfkeysalsofrom { \l__getree_tmpa_tl } |
| 1303 |
} |
| 1304 |
} |
| 1305 |
|
| 1306 |
\ExplSyntaxOff |
| 1307 |
|
| 1308 |
\tikzset{% |
| 1309 |
fill overzoom DBimage/.style={fill@gtrDB@image@options,fill overzoom image=\gtrDBimage},% |
| 1310 |
fill zoom DBimage/.style={fill@gtrDB@image@options,fill zoom image=\gtrDBimage},% |
| 1311 |
} |
| 1312 |
|
| 1313 |
\gtrset{% |
| 1314 |
date format/typical/.code={\letcs\gtrPrintDateCore{gtrPrintDateCore@\gtr@typical@date@format}}, |
| 1315 |
set@typical@date@format/.code={\edef\gtr@typical@date@format{#1}\gtrset{date format=typical}}, |
| 1316 |
calendar text for/.style args={#1 is #2#3}{calendar/#1/.code={\def\gtr@db@cal@pre{#2}\def\gtr@db@cal@app{#3}}}, |
| 1317 |
calendar/.unknown/.code={\def\gtr@db@cal@pre{}\def\gtr@db@cal@app{ (\pgfkeyscurrentname)}}, |
| 1318 |
date code/.code={\def\gtrPrintDateCore##1{#1}}, |
| 1319 |
event code/.code={\def\gtrPrintEvent##1{#1}}, |
| 1320 |
comment code/.code={\def\gtrPrintComment{#1}}, |
| 1321 |
profession code/.code={\def\gtrPrintProfession{#1}}, |
| 1322 |
age code/.code={\def\gtrPrintAge{#1}}, |
| 1323 |
date format/.is choice, |
| 1324 |
calendar print/.is choice, |
| 1325 |
calendar print/all/.code={\let\gtr@print@date@single@calendar\gtr@print@date@single@calendar@all}, |
| 1326 |
calendar print/none/.code={\let\gtr@print@date@single@calendar\gtr@print@date@single@calendar@none}, |
| 1327 |
calendar print/all but AD/.code={\let\gtr@print@date@single@calendar\gtr@print@date@single@calendar@AD}, |
| 1328 |
date range full/.code n args={3}{\def\gtrkv@range@full@A{#1}\def\gtrkv@range@full@B{#2}\def\gtrkv@range@full@C{#3}}, |
| 1329 |
date range before/.code n args={2}{\def\gtrkv@range@before@A{#1}\def\gtrkv@range@before@B{#2}}, |
| 1330 |
date range after/.code n args={2}{\def\gtrkv@range@after@A{#1}\def\gtrkv@range@after@B{#2}}, |
| 1331 |
date range separator/.style={date range full={}{#1}{},date range before={#1}{},date range after={}{#1}}, |
| 1332 |
date range separator/.default={--}, |
| 1333 |
place text/.code n args={2}{\def\gtrkv@place@pre{#1}\def\gtrkv@place@app{#2}}, |
| 1334 |
event text/.code n args={4}{\def\gtrkv@event@pre{#1}\def\gtrkv@event@sepdate{#2}\def\gtrkv@event@sepplace{#3}\def\gtrkv@event@app{#4}}, |
| 1335 |
event format/.is choice, |
| 1336 |
event format/prefix date place/.code={\let\gtrPrintEvent=\gtrPrintEvent@prefixdateplace}, |
| 1337 |
event format/prefix date/.code={\let\gtrPrintEvent=\gtrPrintEvent@prefixdate}, |
| 1338 |
event format/date/.code={\let\gtrPrintEvent=\gtrPrintEvent@date}, |
| 1339 |
} |
| 1340 |
|
| 1341 |
\gtrset{% |
| 1342 |
set@typical@date@format=d.M.yyyy, |
| 1343 |
date range separator, |
| 1344 |
calendar print=all but AD, |
| 1345 |
event text={}{~}{ }{}, |
| 1346 |
event format=prefix date place, |
| 1347 |
age code={[\gtrDBage]}, |
| 1348 |
comment code={\hspace{0pt}{\itshape\gtrDBcomment}}, |
| 1349 |
profession code={\hspace{0pt}{\itshape\gtrDBprofession}}, |
| 1350 |
} |