Debian Codegraph @

texmf-dist/doc/latex/worldflags/worldflags.tex

raw
1 % =============================================================================
2 % Flags of the world with TikZ Wilhelm Haager, 2021-05-12
3 % Version 2023-11-12
4 % =============================================================================
5 \documentclass[11pt,a4paper,headsepline,fleqn]{scrreprt}
6 \usepackage[T1]{fontenc}
7 \usepackage[utf8]{inputenc}
8 \usepackage[american]{babel}
9 \usepackage[width=150mm,height=230mm]{geometry}
10 \usepackage{helvet}
11 \usepackage[bitstream-charter]{mathdesign}
12 \usepackage{charter}
13 \usepackage[nottoc,numbib]{tocbibind} % bibliography as numbered chapter
14 \usepackage{array}
15 \usepackage{ragged2e}
16 \usepackage{tabularx}
17 \usepackage{graphicx}
18 \usepackage{verbatimbox}
19 \usepackage{xcolor}
20 \usepackage{pifont}
21 \usepackage{scrlayer-scrpage}
22 \pagestyle{scrheadings}
23 \clearpairofpagestyles
24 \KOMAoptions{headsepline}
25 \setkomafont{pagehead}{\small\rmfamily\slshape}
26 \setkomafont{pagenumber}{\small\rmfamily\slshape}
27 \lehead{\pagemark}
28 \rehead{Worldflags}
29 \lohead{Worldflags}
30 \rohead{\pagemark}
31 \def\chapterheadstartvskip{\vspace*{0mm}}
32 \def\chapterpagestyle{scrheadings}
33 \raggedbottom
34
35 \usepackage{worldflags}
36
37 \definecolor{emphcolor}{rgb}{0.6,0.1,0}
38 \definecolor{tablefcolor}{rgb}{0.8,0.7,0.5}
39 \colorlet{tablecolor}{tablefcolor!40}
40 \definecolor{codecolor}{rgb}{0.23,0.37,0.17}
41 \colorlet{cbcolor}{codecolor!20} % codebox background
42 \colorlet{cfcolor}{codecolor!40} % codebox frame
43 \colorlet{ctcolor}{codecolor!60} % codebox text
44 \definecolor{rcolor}{rgb}{1,0.66,0.14}
45 \colorlet{rbcolor}{rcolor!20} % resultbox background
46 \colorlet{rfcolor}{rcolor!50} % resultbox frame
47 \colorlet{rtcolor}{rcolor!80} % resultbox text
48
49 \newcolumntype{Y}{>{\RaggedRight\arraybackslash}X}
50 \def\arraystretch{1.25}
51 \def\topfraction{1}
52 \def\bottomfraction{1}
53 \def\textfraction{0}
54
55 \def\tb{\textbackslash}
56 \let\ti=\textit
57 \let\tt=\texttt
58 \def\m{\mbox{}}
59 \def\xx#1{\mbox{}\foreach \n in {1,...,#1}{~}}
60 \def\colwidth{45mm} % with of the left hand column in tables
61 \def\command#1{{\color{emphcolor}\texttt{#1}}}
62
63 \parskip\medskipamount
64 \parindent0pt
65
66
67 % Befehle zur tabellarischen Flaggendarstellung:
68 % ----------------------------------------------
69 \newcount\zaehler\zaehler0
70 \newcount\flaggenproz\flaggenproz4
71 \newdimen\spaltenbreite\spaltenbreite\textwidth
72 \divide\spaltenbreite by\flaggenproz
73
74 \def\show#1#2{%
75 \spaltenbreite\textwidth\divide\spaltenbreite by\flaggenproz
76 \advance\zaehler by 1%
77 \parbox{\spaltenbreite}{%
78 \centering
79 \makebox[0pt]{\worldflag{#2}}{\small \ifx.#1.\else\\#1\fi\ifx.#2.\else
80 \\(#2)\fi}}%
81 \ifnum\zaehler=\flaggenproz\zaehler0\par\fi
82 }
83 \def\flaggenprozeile#1{\flaggenproz#1\zaehler0}
84
85 % ------------------------------------------------------------------------
86 % Frames
87 % ------------------------------------------------------------------------
88
89 \long\def\wideframe#1{{\fboxsep5mm\fboxrule0.5pt%
90 \newdimen\pbwidth\pbwidth\textwidth
91 \advance\pbwidth by -2\fboxsep
92 \advance\pbwidth by -2\fboxrule
93 \fcolorbox{tablefcolor}{tablecolor}%
94 {\begin{minipage}{\pbwidth}#1\end{minipage}}}}
95
96 \long\def\codebox#1#2#3{\begin{minipage}[t]{#1\textwidth}
97 \fboxsep1mm\fboxrule0.5pt%
98 \newdimen\pbwidth\pbwidth\textwidth
99 \advance\pbwidth by -2\fboxsep
100 \advance\pbwidth by -2\fboxrule
101 \fcolorbox{cfcolor}{cbcolor}%
102 {\begin{minipage}[t][#2][t]{\pbwidth}%
103 {\footnotesize\sffamily\bfseries\color{ctcolor}Code:\\[\smallskipamount]}%
104 \footnotesize\ttfamily\color{codecolor}#3\end{minipage}}
105 \end{minipage}}
106
107 \long\def\resultbox#1#2#3{\begin{minipage}[t]{#1\textwidth}
108 \fboxsep1mm\fboxrule0.5pt%
109 \newdimen\pbwidth\pbwidth\textwidth
110 \advance\pbwidth by -2\fboxsep
111 \advance\pbwidth by -2\fboxrule
112 \fcolorbox{rfcolor}{rbcolor}%
113 {\begin{minipage}[t][#2][t]{\pbwidth}%
114 {\footnotesize\sffamily\bfseries\color{rtcolor}Result:\\[\smallskipamount]}%
115 \small#3\end{minipage}}
116 \end{minipage}}
117
118 % Weird hack from stackexchange to enable § as shortverb-character with utf8:
119 \begingroup\uccode`~="C2 \uppercase{\endgroup
120 \DeclareUnicodeCharacter{00A7}{\verb~}}
121 \begingroup\uccode`~="A7 \uppercase{\endgroup\def~}{}
122
123 \begin{document}
124 % --------------------------------------------------------------------------
125 % titlepage
126 % --------------------------------------------------------------------------
127 \title{Worldflags}
128 \subtitle{Drawing flags with TikZ}
129 \author{\slshape Wilhelm Haager\\\slshape [email protected]}
130 \vfill
131 \vfill
132 \date{2023-11-12}
133 \vfill
134 \maketitle
135
136 % --------------------------------------------------------------------------
137 % table of contents
138 % --------------------------------------------------------------------------
139 \tableofcontents
140
141 % --------------------------------------------------------------------------
142 \chapter{Introduction}
143 % --------------------------------------------------------------------------
144
145 \emph{Worldflags} is a package for drawing flags using TikZ.
146 Currently the national flags of all independent nations are included,
147 additionally some other flags of various organizations;
148 there's more to come.
149
150 A particular flag is selected via a parameter; for national flags that is the
151 two-letter country code (i.\,e. the domain name).
152 A flag can be drawn in two ways:
153 \begin{itemize}
154 \item as a single TikZ-picture within ordinary text
155 \item as a picture element \emph{within} a TikZ-picture
156 \end{itemize}
157
158 The appearance of a flag (size, frame etc.) can be adapted using
159 optional parameters.
160
161 The description of every flag resides in a particular flag description file
162 {\color{emphcolor}\texttt{worldflag\_}\textit{xx}\texttt{.tex}},
163 wherein \textit{xx} is the parameter for selecting a particular flag,
164 as listed in section \ref{FLAGS}.
165 That saves memory and computing time on the one hand,
166 as only the required flags have to be loaded.
167 On the other hand, the package can easily be extended by adding new
168 flag description files.
169
170 Some flags with complicated emblems (e.\,g. Afghanistan, Ecuador)
171 require a lot of memory. Thus an expansion of \TeX's main memory size
172 is recommended.
173
174 The flag descriptions are based on the construction sheets in
175 \cite{VEXILLAMUNDI}
176 (thanks to Mello Luchten\-berg for that great website),
177 complex emblems have been taken from the svg-files on Wikipedia
178 and have been translated into Tikz via Inkscape
179 (with a reasonable amount of manual post editing).
180
181 % --------------------------------------------------------------------------
182 \chapter{Usage}
183 % --------------------------------------------------------------------------
184
185 \section{Flags as single TikZ-pictures}
186 % ------------------------------------------------
187 %{\color{emphcolor}§worldflag[§\textit{opts}§]{§\textit{xx}§}§} draws the flag
188 %\textit{xx} with the Options \textit{opts}. \the\textwidth
189
190 % +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
191 \wideframe{
192 \raggedright
193 \textsl{Commands:}\\[\medskipamount]
194 \begin{tabularx}{\textwidth}{@{}>{\RaggedRight}p{\colwidth}Y@{}}
195 {\m\color{emphcolor}\texttt{\tb worldflag[}\textit{opts}\texttt{]\{}\textit{xx}\texttt{\}}}
196 &
197 draws the flag \textit{xx} with the optional parameters \textit{opts} as a particular TikZ-picture.\\
198 {\m\color{emphcolor}\texttt{\tb flagsdefault[}\textit{opts}\texttt{]}}
199 &
200 sets default values for the options \textit{opts} for subsequent flags.
201 \end{tabularx}
202
203 \bigskip
204 \textsl{Options:}\\[\medskipamount]
205 \begin{tabularx}{\textwidth}{@{}p{\colwidth}Y@{}}
206 {\m\color{emphcolor}\texttt{width=}\textit{dimension}}
207 &
208 sets the flag width, default: $15\,\mathrm{mm}$.\\
209 {\m\color{emphcolor}\texttt{length=}\textit{dimension}}
210 &
211 sets the flag length; if set to 0\,pt (default), the length is calculated according to the proper aspect ratio of the flag.\\
212 {\m\color{emphcolor}\texttt{framewidth=}\textit{dimension}}
213 &
214 sets the line width of the frame around the flag, default: 0.2\,mm.\\
215 {\m\color{emphcolor}\texttt{framecolor=}\textit{colorname}}
216 &
217 sets the color of the flag frame, default: \texttt{black!60}.\\
218 {\m\color{emphcolor}\texttt{stretch=}\textit{number}}
219 &
220 controls stretching and shrinking of geometric shapes when the aspect ratio differs from its proper value.\\
221 {\m\color{emphcolor}\texttt{grid}}
222 &
223 causes a millimeter-grid drawn on the flag as an aid for constructing new flags.\\
224 {\m\color{emphcolor}\texttt{noemblem}}
225 &
226 supresses the drawing of an emblem, which is part of many flags.\\
227 {\m\color{emphcolor}\texttt{emblem}}
228 &
229 enforces the drawing of an emblem onto the flag which is otherwise supressed (currently only applies to the flags of Austria and Germany).\\
230 {\m\color{emphcolor}\texttt{emblemdefault}}
231 &
232 restores the default behavior for drawing emblems.\\
233 {\m\color{emphcolor}\texttt{variant=}\textit{x}}
234 &
235 selects a variant \textit{x} of a flag (default: 0).\\
236 \end{tabularx}}
237 % +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
238
239 \bigskip
240 \command{\tb worldflag\{{\rmfamily\itshape xx}\}} draws a flag,
241 selected by the parameter \textit{xx}, as a single TikZ-picture.
242 Section \ref{FLAGS} lists all available flags and their selection code \textit{xx}.
243 Various properties of the flag can be specified with additional optional parameters
244 as key-value pairs.
245
246 \command{\tb flagsdefault[{\rmfamily\itshape opts}]} specifies default values
247 for the Options {\rmfamily\itshape opts} for subsequent flags.
248
249 The \emph{width} of a flag defaults to 15\,mm, it can be overridden with the option
250 \command{width}.
251 If one of the dimensions \emph{width} or \emph{length} is set to 0\,pt
252 (which is the default value for \emph{length}), its value
253 results from the proper aspect ratio width/length, which is proprietary to every flag.
254 E.\,g. the Swiss flag is quadratic, it has an aspect ratio of 1:1,
255 the British flag has an aspect ratio of 1:2.
256 If \command{width} is set to 0\,pt, \command{length} \emph{must} be specified.
257 If both dimensions are specified, flags loose their proper aspect ratio
258 but get the same size:
259
260 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
261 \codebox{0.45}{38mm}{\tb worldflag\{CH\}\\\tb worldflag\{GB\}\\
262 proper sizes\tb\tb[6pt]\\
263 \tb worldflag[length=22.5mm]\{CH\}\\\tb worldflag[length=22.5mm]\{GB\}\\
264 distorted}\hfill
265 \resultbox{0.54}{38mm}{\worldflag{CH} \worldflag{GB} proper sizes\\[6pt]
266 \worldflag[length=22.5mm]{CH} \worldflag[length=22.5mm]{GB} distorted}
267 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
268
269 \medskip
270 If both width and length of a flag are specified, which differs from ist
271 proper aspect ratio, some geometries on the flag will unavoidably
272 get distorted.
273 There is presumably no general rule whether certain \emph{distances} on the flag
274 should remain unchanged in that case, or certain \emph{ratios}
275 -- as flag owners do not intend to distort their flags --
276 but that behavior can be influenced for many flags applying the option
277 \command{stretch}.
278 If stretch is set to 0 (which is default), certain \emph{distances} and
279 \emph{sizes} on the flag remain unchanged, when the flag is stretched;
280 if set to 1, certain \emph{ratios} remain unchanged in that case.
281 Values within the range of 0\dots 1 are possible to get a compromise
282 between both cases.
283
284 The following examples illustrate that behavior:
285
286 \begin{tabularx}{\textwidth}{@{}llX@{}}
287 Canada: & \command{stretch=0} & The \emph{size} of the maple leaf remains unchanged.\\
288 & \command{stretch=1} & The \emph{ratio} of the widths -- maple leaf and pale -- remains unchanged; the maple leaf has to shrink.
289 \end{tabularx}
290
291 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
292 \codebox{0.45}{20mm}{
293 \tb flagsdefault[width=12mm]
294 \tb worldflag\{CA\}\\
295 \tb worldflag[length=18mm]\{CA\}\\
296 \tb worldflag[length=18mm,stretch=1]\{CA\} }\hfill
297 \resultbox{0.54}{20mm}{%
298 \flagsdefault[width=12mm]
299 \worldflag{CA}
300 \worldflag[length=18mm]{CA}
301 \worldflag[length=18mm,stretch=1]{CA}
302 }
303 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
304
305 \begin{tabularx}{\textwidth}{@{}llX@{}}
306 Denmark: & \command{stretch=0} & The \emph{distance} from the vertical bar to the hoist remains unchanged.\\
307 & \command{stretch=1} & The \emph{ratio} of the distances to the hoist and to the fly remains unchanged.
308 \end{tabularx}
309
310 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
311 \codebox{0.45}{20mm}{
312 \tb flagsdefault[width=12mm]
313 \tb worldflag\{DK\}\\
314 \tb worldflag[length=18mm]\{DK\}\\
315 \tb worldflag[length=18mm,stretch=1]\{DK\} }\hfill
316 \resultbox{0.54}{20mm}{%
317 \flagsdefault[width=12mm]
318 \worldflag{DK}
319 \worldflag[length=25mm]{DK}
320 \worldflag[length=25mm,stretch=1]{DK}
321 }
322 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
323
324 \medskip
325 The option \command{grid} causes a millimeter-grid drawn over the flag.
326 That is primarily a measuring aid for the construction of new flags.
327
328 The options \command{framecolor} and \command{framewidth} set the color
329 and the line width of the frame drawn around the flag, respectively.
330 The default value for the line width is 0.2\,mm, the default color is
331 \texttt{black!60}.
332 If \command{framewidth} is set to 0\,mm (or 0\,pt), no frame is drawn at all.
333
334 \flagsdefault[length=0mm,width=15mm]
335 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
336 \codebox{0.45}{20mm}{
337 \tb flagsdefault[framecolor=blue]
338 \tb worldflag[grid]\{IT\}\\
339 \tb worldflag[framewidth=1mm]\{IT\}\\
340 \tb worldflag[framewidth=0mm]\{IT\} }\hfill
341 \resultbox{0.54}{20mm}{%
342 \flagsdefault[framecolor=blue]
343 \worldflag[grid]{IT}
344 \worldflag[framewidth=1mm]{IT}
345 \worldflag[framewidth=0mm]{IT}
346 }
347 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
348
349 \medskip
350 Many flags have an emblem on it,
351 e.\,g. a coat of arms or a special symbol.
352 Those emblems are often very complex and require a lot of computing time and
353 memory.
354 The depiction of such an emblem can be supressed with the option
355 \command{noemblem}, either for the sake of saving computing time
356 (for drafts) or just because simplified version of the flag is required.
357 Some countries distinguish between a \emph{civil} flag without an emblem
358 and a \emph{state} flag containing an emblem.
359
360 Some flags don't have an emblem by default, but an emblem is available
361 for special purposes.
362 In that case the depiction of the emblem can be enforced with the option
363 \command{emblem}.
364 Currently that only applies to the country flags of Austria, Germany
365 and Spain (more will come).
366 The option \command{emblemdefault} restores the default behavior for drawing
367 emblems.
368
369
370 \flagsdefault[length=25mm,width=15mm]
371 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
372 \codebox{0.45}{37mm}{%
373 \tb worldflag\{AT\}\\
374 \tb worldflag[emblem]\{AT\}\\
375 \tb worldflag[noemblem]\{AT\}\tb\tb[6pt]\\
376 \tb worldflag\{HR\}\\
377 \tb worldflag[emblem]\{HR\}\\
378 \tb worldflag[noemblem]\{HR\}%
379 }\hfill
380 \resultbox{0.54}{37mm}{%
381 \worldflag{AT}
382 \worldflag[emblem]{AT}
383 \worldflag[noemblem]{AT}\\[6pt]
384 \worldflag{HR}
385 \worldflag[emblem]{HR}
386 \worldflag[noemblem]{HR}%
387 }
388 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
389
390 \medskip
391 The emblem (i.\,e. the coat of arms) in the Austrian flag is supressed by default,
392 the emblem in the Croatian flag is depicted default.
393
394 Some flags have several variants on disposal which can vary in geometry, colors etc.
395 A certain variant is selected by the option \command{variant} (default: 0).
396 For example, the flag of the Italian region Veneto has a variant with a
397 quadratic flag area and appended stripes, as well as a variant with a rectangular
398 flag area where the stripes are included:
399
400 \flagsdefault[length=37mm,width=25mm]
401 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
402 \codebox{0.45}{29mm}{%
403 \tb worldflag\{IT-VE\}\\
404 \tb worldflag[variant=1]\{IT-VE\}\\
405 }\hfill
406 \resultbox{0.54}{29mm}{%
407 \worldflag{IT-VE}
408 \worldflag[variant=1]{IT-VE}%
409 }
410 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
411
412 Some flags with complex elements (e.\,g. the Austrian flag with emblem) have
413 an additional variant with an included pdf-Image instead of \emph{TikZ}-code.
414 Putting up with some loss in flexibility, that saves memory and computing time.
415
416 \section{Flags as picture elements within a TikZ-picture}\label{SECTION_PIC}
417 % ------------------------------------------------
418
419 Within a Tikz-picture the flags are available as \emph{pic}-Elements
420 named \command{worldflag}.
421 A particular flag is selected with the option \command{country}.
422 Unlike \emph{nodes}, \emph{pic}-elements cannot be referenced by name,
423 but named nodes and coordinates within the \emph{pic}-element can be referenced.
424 Hence every flag has special coordinates for referencing:
425
426 \qquad{\divide\tabcolsep by 3
427 \begin{tabular}{@{}lclllcl}
428 \command{-0} & \dots & center of flag &~~~& & & \\
429 \command{-nw} & \dots & upper left corner (``north-west'')&~~~& \command{-n} & \dots & top edge center (``north'') \\
430 \command{-ne} & \dots & upper right corner (``north-east'')&~~~& \command{-e} & \dots & fly edge center (``east'') \\
431 \command{-sw} & \dots & lower left corner (``south-west'') &~~~& \command{-w}& \dots & hoist edge center (``west'') \\
432 \command{-se} & \dots & lower right corner (``south-east'') &~~~& \command{-s}& \dots & bottom edge center (``south'')
433 \end{tabular}
434 }
435
436 \medskip
437 Some additional options for rotating and shearing a flag are available.
438
439 % +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
440 \wideframe{
441 \textsl{Command:}\\
442 \begin{tabularx}{\textwidth}{@{}>{\RaggedRight}p{\colwidth}X@{}}
443 {\m\color{emphcolor}\makebox[0pt][l]{\texttt{\tb pic (}\textit{xy}\texttt{) [country=}\textit{xx\,, \dots}\texttt{]~at }\textit{pos}\texttt{ \{worldflag\};}}}
444 & \\
445 & draws the flag \textit{xx} and gives it the name \textit{xy}; the flag is centerd at the coordinate \textit{pos}.\\
446 %{\m\color{emphcolor}\texttt{\tb flagsdefault[}\textit{opts}\texttt{]}}
447 %&
448 %sets default values for the options \textit{opts}.
449 \end{tabularx}
450
451 \medskip
452 %\textsl{Options:}\\
453 \textsl{Additional Options:}\\
454 \begin{tabularx}{\textwidth}{@{}p{\colwidth}Y@{}}
455 % {\m\color{emphcolor}\texttt{width=}\textit{dimension}}
456 % &
457 % sets the flag width, default: $15\,\mathrm{mm}$.\\
458 % {\m\color{emphcolor}\texttt{length=}\textit{dimension}}
459 % &
460 % sets the flag length; if set to 0\,pt (default), the length is calculated according to the proper aspect ratio of the flag.\\
461 % {\m\color{emphcolor}\texttt{framewidth=}\textit{dimension}}
462 % &
463 % sets the line width of the frame around the flag, default: 0.2\,mm.\\
464 % {\m\color{emphcolor}\texttt{framecolor=}\textit{colorname}}
465 % &
466 % sets the color of the flag frame, default: \texttt{black!60}.\\
467 % {\m\color{emphcolor}\texttt{stretch=}\textit{number}}
468 % &
469 % controls stretching and shrinking of geometric shapes when the aspect ratio differs from its proper value.\\
470 % {\m\color{emphcolor}\texttt{grid}}
471 % &
472 % causes a millimeter-grid drawn on the flag.\\
473 % {\m\color{emphcolor}\texttt{noemblem}}
474 % &
475 % supresses the drawing of an emblem onto the flag.\\
476 % {\m\color{emphcolor}\texttt{emblem}}
477 % &
478 % enforces the drawing of an emblem onto the flag.\\
479 % {\m\color{emphcolor}\texttt{emblemdefault}}
480 % &
481 % restores the default behavior for drawing emblems.\\
482 {\m\color{emphcolor}\texttt{rotate=}$\alpha$}
483 &
484 rotates the flag $\alpha$ degrees around its center.\\
485 {\m\color{emphcolor}\texttt{turn=}$\beta$}
486 &
487 rotates the flag $\beta$ degrees around the (imaginary) flagpole.\\
488 {\m\color{emphcolor}\texttt{hang=}$\gamma$}
489 &
490 lets the flag ``hang down'' $\gamma$ degrees from the (imaginary) flag pole.
491 \end{tabularx}}
492 % +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
493
494 \medskip
495 The following example illustrates the usage of the special coordinates:
496
497 \flagsdefault[length=25mm,width=15mm]
498 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
499 \codebox{0.63}{58mm}{%
500 \tb begin\{tikzpicture\}[draw=cyan,>=stealth,x=1mm,y=1mm]\\
501 \tb pic (de) [country=DE,emblem] \{worldflag\};\\
502 \tb draw (de-e){-}-++(45:5)\\
503 \xx6 node [above right,cyan] \{fly\};\\
504 \tb draw (de-w)--++(45:14)\\\mbox{}~~~~~~node [above right,cyan] \{hoist\};\\
505 \tb draw (de-0)--++(45:14)\\\mbox{}~~~~~~node [above right,cyan] \{coat of arms\};\\
506 \tb draw (de-nw)--++(-5,0) (de-sw)--++(-5,0);\\
507 \tb draw [<->] (\$(de-nw)-(4,0)\$){-}-(\$(de-sw)-(4,0)\$)\\\mbox{}~~~~~~node [midway,above,rotate=90,cyan] \{width\};\\
508 \tb draw [<->] (\$(de-sw)-(0,6)\$){-}-(\$(de-se)-(0,6)\$)\\\mbox{}~~~~~~node [midway,above,cyan] \{length\};\\
509 \tb end\{tikzpicture\}%
510 }\hfill
511 \resultbox{0.36}{58mm}{%
512 \begin{tikzpicture}[draw=cyan,>=stealth,x=1mm,y=1mm]
513 \pic (de) [country=DE,emblem] {worldflag};
514 \draw (de-e)--++(45:5) node [above right,cyan] {fly};
515 \draw (de-w)--++(45:14) node [above right,cyan] {hoist};
516 \draw (de-0)--++(45:14) node [above right,cyan] {coat of arms};
517 \draw (de-nw)--++(-5,0) (de-sw)--++(-5,0);
518 \draw [<->] ($(de-nw)-(4,0)$)--($(de-sw)-(4,0)$) node [midway,above,rotate=90,cyan] {width};
519 \draw (de-sw)--++(0,-7) (de-se)--++(0,-7);
520 \draw [<->] ($(de-sw)-(0,6)$)--($(de-se)-(0,6)$) node [midway,above,cyan] {length};
521 \end{tikzpicture}
522 }
523 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
524
525 \newpage
526 The option \command{rotate} causes the flag to be rotated around the
527 flag center with a given angle in degree.
528
529 Note: That option is not proprietary to flags, it is a general option for
530 \emph{any} {pic}-element.
531 Hence it is \emph{not} possible to give it a default value
532 % -- unlike all other options --
533 with the command \texttt{flagsdefault}.
534
535 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
536 \codebox{0.53}{70mm}{%
537 \tb begin\{tikzpicture\}\\
538 \tb flagsdefault[width=12mm,length=18mm]\\
539 \tb foreach \tb c/\tb n in \{HU/0,SK/1,IT/6,SI/7\}\\
540 \xx3\tb pic [country=\tb c,rotate=\tb n*45]\\
541 \xx7 at (\tb n*45:24mm) \{worldflag\};\\
542 \tb foreach \tb c/\tb n in \{CZ/2,DE/3,LI/4,CH/5\}\\
543 \xx3\tb pic [country=\tb c,rotate=\tb n*45-180]\\
544 \xx7 at (\tb n*45:24mm) \{worldflag\};\\
545 \tb end\{tikzpicture\}
546 }\hfill
547 \resultbox{0.46}{70mm}{%
548 \begin{tikzpicture}
549 \flagsdefault[width=12mm,length=18mm]
550 \foreach \c/\n in {HU/0,SK/1,IT/6,SI/7}
551 \pic [country=\c,rotate=\n*45] at (\n*45:24mm) {worldflag};
552 \foreach \c/\n in {CZ/2,DE/3,LI/4,CH/5}
553 \pic [country=\c,rotate=\n*45-180] at (\n*45:24mm) {worldflag};
554 \end{tikzpicture}
555 }
556 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
557
558 \medskip
559 The option \command{turn} lets the flag rotate around the imaginary flagpole
560 with a given angle $\beta$ (in degrees).
561 The length of the flag will \emph{seemingly} shrink with a factor of $\cos\beta$.
562 With a value of $\beta\!=\!180$ the flag will just appear mirrored.
563 The option \command{hang} lets the flag ``hang down'' from the imaginary flagpole
564 with a given angle $\gamma$ (in degrees);
565 the flag will be sheared and compressed accordingly.
566
567 The following example shows a combination of
568 \command{rotate}, \command{turn} and \command{hang}.
569
570 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
571 \codebox{0.53}{75mm}{%
572 \tb begin\{tikzpicture\}[x=1mm,y=1mm]\\
573 \tb def\tb w\{30\}\\
574 \tb def\tb d\{20\}\\
575 \tb pgfdeclarehorizontalshading\{flagpole\}\\
576 \xx3\{30mm\}\{color(0mm)=(white);\\
577 \xx3color(1mm)=(brown); color(2mm)=(black)\}\\
578 \tb flagsdefault[width=15mm,hang=20]\\
579 \tb pic (gb) [country=GB,rotate=-\tb w]\\
580 \xx5at (\tb d,0) \{worldflag\};\\
581 \tb pic (us) [country=US,rotate=\tb w,turn=180]\\
582 \xx5at (-\tb d,0) \{worldflag\};\\
583 \tb fill [shading=flagpole,shading angle=-\tb w,\\
584 \xx6rotate around=\{-\tb w:(gb-nw)\}]\\
585 \xx6(gb-nw)-|++(-2,-60)-|cycle;\\
586 \tb fill [shading=flagpole,shading angle=\tb w,\\
587 \xx6rotate around=\{\tb w:(us-nw)\}]\\
588 \xx6(us-nw)-|++(2,-60)-|cycle;\\
589 \tb end\{tikzpicture\}
590 }\hfill
591 \resultbox{0.46}{75mm}{%
592 \begin{tikzpicture}[x=1mm,y=1mm]
593 \def\w{30}
594 \def\d{20}
595 \pgfdeclarehorizontalshading{flagpole}{30mm}
596 {color(0mm)=(white); color(1mm)=(brown); color(2mm)=(black)}
597 \flagsdefault[width=15mm,hang=20]
598 \pic (gb)[country=GB,rotate=-\w] at (\d,0) {worldflag};
599 \pic (us)[country=US,rotate=\w,turn=180] at (-\d,0) {worldflag};
600 \fill [shading=flagpole,shading angle=-\w,rotate around={-\w:(gb-nw)}] (gb-nw)-|++(-2,-60)-|cycle;
601 \fill [shading=flagpole,shading angle=\w,rotate around={\w:(us-nw)}] (us-nw)-|++(2,-60)-|cycle;
602 \end{tikzpicture}
603 }
604 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
605
606 % --------------------------------------------------------------------------
607 \chapter{Internals}
608 % --------------------------------------------------------------------------
609
610 This section is intended for those who want to \emph{extend} the worldflags
611 package and {create} new flags.
612 Those who just want to \emph{use} the package and {draw} existing flags,
613 need not read it.
614
615 Evey flag resides in a particular ``flag description file''
616 named \command{worldflag\_}\textit{\color{emphcolor}xx}\command{.tex}, wherein
617 \textit{\color{emphcolor}xx} is the code for selecting a flag.
618 Extending the package with new flags is quite easy:
619 Just a flag description file for every new flag has to be written and put into
620 a directory, where \TeX\ can find it.
621 No configuraion files, no other actions; that's it.
622
623 \section{Flag description file}\label{SEC_FLAG_DESCRIPTION}
624 % -----------------------------
625
626 Every flag description file has the following structure:
627
628 {\color{emphcolor}\small
629 \tt{\tb begin\{flagdescription\}\{$\xi$\}}~~~{\normalsize\color{black}\ding{192}}\\
630 \tt{\tb definecolor\{red\}\{RGB\}\{}\ti{r}\tt{,}\ti{g}\tt{,}\ti{b}\tt{\}}~~~{\normalsize\color{black}\ding{193}}\\
631 \tt{\tb definecolor\{gold\}\{RGB\}\{}\ti{r}\tt{,}\ti{g}\tt{,}\ti{b}\tt{\}}\\
632 \xx9\makebox[0pt]{$\vdots$}\\
633 \xx9{\makebox[0pt]{\normalsize\color{black}\ding{194}}}\\
634 \xx9\makebox[0pt]{$\vdots$}\\
635 \tt{\tb framecode\{}\ti{code}\tt{\}}~~~{\normalsize\color{black}\ding{195}}\\
636 \tt{\tb end\{flagdescription\}}~~~{\normalsize\color{black}\ding{196}}\\
637 }
638
639 \begin{itemize}
640 \item[\ding{192}]
641 All commands describing the geometry of a flag have to be within
642 the environment \command{flagdescription}.
643 This environmant requires a parameter
644 \emph{\color{emphcolor}$\xi$}, which specifies the proper aspect ratio
645 \emph{width/length} of a flag.
646 Using that parameter, the flag length is calculatend from the flag width
647 (or vice versa).
648 As \command{$\xi$} is further processed using \tt{\tb pgfmathparse},
649 is can be specified as a floating point number or as a ratio of two
650 (preferably integer) numbers.
651
652 Furthermore, two nested scopes are opened:
653 The outer scope sets the drawing unit to \command{\tb flagwidth}
654 (note: the top edge of a flag has always a \ti{y}-coordinate of 1)
655 and performs the coordinate transformation according to the options
656 \command{turn} and \command{hang}.
657 The inner scope shifts the coordinate system to the flag center.
658 That shift is only for rotation and positioning of the flag within a
659 TikZ-picture.
660 For the flag description the origin of the coordinate system remains on the
661 lower left corner of the flag.
662
663 In the sequel, the special coordinates
664 \command{-0}, \command{-n}, \command{-ne}, \command{-e}, \command{-se},
665 \command{-s}, \command{-sw}, \command{-w} and \command{-nw}
666 are established -- as described in section \ref{SECTION_PIC}.
667
668 \item[\ding{193}]
669 Every flag has proprietary shadings of colors.
670 Hence even common colors have to be redefined for every flag separately.
671
672 \item[\ding{194}]
673 TikZ commands for drawing and filling of shapes make up the core of
674 a flag description file.
675 A couple of macros (see section \ref{SEC_MACROS})
676 for common geometric figures facilitate the creation of the flag image.
677
678 \item[\ding{195}]
679 \emph{\color{emphcolor}code} is the drawing path for te frame around the flag.
680 In (the most common) case of a rectangular shape of the flag
681 (an exception is e.\,g. the flag of Nepal) \ti{code} can be left empty;
682 a rectangular frame is drawn automatically in that case.
683
684 The line width, set with the option \command{framewidth}, is stored in the
685 dimension register \command{\tb flagframe};
686 the frame color, set with the option \command{framecolor}, is stored in the
687 macro \command{\tb framecolor}.
688
689 \item[\ding{196}]
690 At the end of the environment a millimeter-grid is drawn onto the flag, if invoked with the option
691 \command{grid} and the two previously opened scopes are closed again.
692 \end{itemize}
693
694 \section{Variables}
695 % -----------------
696
697 The properties of a flag are kept in variables,
698 which are dimension registers or macros.
699 Those variables are either set by the user via specifying options or are calculated
700 internally.
701 Most of those variables are used internally, only the following few variables
702 are used in the code for the flag description:
703
704 % +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
705 \wideframe{
706 \textsl{Dimension registers:}\\
707 \begin{tabularx}{\textwidth}{@{}>{\RaggedRight}p{\colwidth}Y@{}}
708 {\m\color{emphcolor}\texttt{\tb flagwidth}}
709 &
710 width of the flag (vertical extent)\\
711 {\m\color{emphcolor}\texttt{\tb flaglength}}
712 &
713 length of the flag (horizontal extent)\\
714 \end{tabularx}
715
716 \bigskip
717 \begin{tabularx}{\textwidth}{@{}>{\RaggedRight}p{\colwidth}X@{}}
718 \textsl{Macros:}\\
719 {\m\color{emphcolor}\texttt{\tb stretchfactor}}
720 &
721 factor for stretching of certain geometries\\
722 {\m\color{emphcolor}\texttt{\tb flagvariant}}
723 &
724 contains a single digit (or letter) for branching the code to a particular
725 variant\\
726 \end{tabularx}}
727 % +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
728
729 \medskip
730 \command{\tb flagwidth} and \command{\tb flaglength} specify the width and
731 length of a flag.
732 They are set by the user with the options \command{width} and \command{length}
733 or are calculaterd from each other at the begin of the environment
734 \command{flagdescription} internally.
735 \command{\tb flagwidth} is the unit for coordinates and lengths
736 in the flag description.
737
738 \command{\tb stretchfactor} is a factor for stretching certain \ti{x}-coordinates,
739 when the whole flag is stretched (or compressed),
740 i.\,e. when the aspect ratio differs from its proper value.
741 It is calculated from the user option \command{stretch}
742 (stored in the macro \command{\tb flagstretch})
743 as follows and can be used in the flag description:
744
745 \[
746 f_s = 1 + \frac{l-l_0}{l_0}\cdot s, \quad
747 \parbox[t]{0.7\textwidth}{%
748 with\quad
749 \begin{tabular}[t]{@{}l@{~\dots~}l}
750 $f_s$ & the variable \tt{\tb stretchfactor} \\
751 $l_0$ & proper aspect ratio of the flag \\
752 $l$ & actual aspect ratio of the flag \\
753 $s$ & value of the user specified option \tt{stretch} \\
754 \end{tabular}}
755 \]
756
757 In the following example the yellow diamonds keep their
758 \emph{distances} to the
759 borders of the flag (hoist and fly, respectively), when the flag is stretched
760 or compressed,
761 the white diamonds keep their \emph{relative positions} on the flag
762 in that case.
763
764 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
765 \codebox{0.70}{70mm}{%
766 \tb def\tb diamond\#1\#2\{\tb begin\{scope\}[shift=\{\#2\}] \\
767 \xx4\tb fill [\#1] (3/20,0)--(0,4/20)--(-3/20,0)--(0,-4/20); \\
768 \xx4\tb end\{scope\}\}\% \\
769 \tb def\tb drawflag\{\% \\
770 \xx4\tb begin\{tikzpicture\} \\
771 \xx4\tb begin\{flagdescription\}\{2/3\} \\
772 \xx4\xx3\tb background\{cyan\} \\
773 \xx4\xx3\tb diamond\{yellow\}\{(0.5,0.75)\} \\
774 \xx4\xx3\tb diamond\{yellow\}\{(\$(\tb flaglength,0.75)-(0.5,0)\$)\} \\
775 \xx4\xx3\tb diamond\{white\}\{(0.5*\tb stretchfactor,0.25)\} \\
776 \xx4\xx3\tb diamond\{white\}\\\xx7\xx3\{(\$(\tb flaglength,0.25)-(0.5*\tb stretchfactor,0)\$)\}
777 \xx4\tb end\{flagdescription\} \\
778 \xx4\tb end\{tikzpicture\}\}\% \\
779 \tb drawflag\tb par\tb medskip \\
780 \tb newdimen\tb flaglength\tb flaglength=40mm \\
781 \tb def\tb flagstretch\{1\}% \\
782 \tb drawflag
783 }
784 \resultbox{0.29}{70mm}{%
785 \def\diamond#1#2{%
786 \begin{scope}[shift={#2}]
787 \fill [#1] (3/20,0)--(0,4/20)--(-3/20,0)--(0,-4/20);
788 \end{scope}}%
789 \def\drawflag{%
790 \begin{tikzpicture}
791 \begin{flagdescription}{2/3}
792 \background{cyan}
793 \diamond{yellow}{(0.5,0.75)}
794 \diamond{yellow}{($(\flaglength,0.75)-(0.5,0)$)}
795 \diamond{white}{(0.5*\stretchfactor,0.25)}
796 \diamond{white}{($(\flaglength,0.25)-(0.5*\stretchfactor,0)$)}
797 \end{flagdescription}
798 \end{tikzpicture}}%
799 \drawflag\par\medskip
800 \newdimen\flaglength\flaglength=40mm
801 \def\flagstretch{1}%
802 \drawflag
803 }
804 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
805
806 \medskip
807 By checking the macro \command{\tb flagvariant},
808 which has to expand to a single digit or character,
809 \TeX-code can be executed conditionally by use of
810 \command{\tb if...\tb else...\tb fi}.
811 The following example demonstrates two variants of a flag:
812
813 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
814 \codebox{0.75}{66mm}{%
815 \tb def\tb drawflag\{\% \\
816 \xx4\tb begin\{tikzpicture\} \\
817 \xx4\tb begin\{flagdescription\}\{2/3\} \\
818 \xx4\xx3\tb background\{cyan\} \\
819 \xx4\xx3\tb if\tb flagvariant0 \\
820 \xx4\xx3\xx3\tb fill [white] (0.5\tb flaglength,0.5) circle \{0.3\};\\
821 \xx4\xx3\tb else \\
822 \xx4\xx3\xx3\tb fill [white] (0.5\tb flaglength,0.5) ++(-0.3,-0.3) \\
823 \xx4\xx3\xx3\xx5 rectangle ++(0.6,0.6); \\
824 \xx4\xx3\tb fi \\
825 \xx4\tb end\{flagdescription\} \\
826 \xx4\tb end\{tikzpicture\}\}\% \\
827 \tb def\tb flagvariant\{0\}\% \\
828 \tb drawflag \\
829 \tb def\tb flagvariant\{1\} \\
830 \tb drawflag
831 }
832 \resultbox{0.24}{66mm}{%
833 \def\drawflag{%
834 \begin{tikzpicture}
835 \begin{flagdescription}{2/3}
836 \background{cyan}
837 \if\flagvariant0
838 \fill [white] (0.5\flaglength,0.5) circle (0.3);
839 \else
840 \fill [white] (0.5\flaglength,0.5) ++(-0.3,-0.3) rectangle ++(0.6,0.6);
841 \fi
842 \end{flagdescription}
843 \end{tikzpicture}}%
844 \def\flagvariant{0}%
845 \drawflag\par\medskip
846 \def\flagvariant{1}
847 \drawflag
848 }
849 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
850
851 \section{Commands}\label{SEC_MACROS}
852 % ----------------------------------
853
854 A couple of commands for common geometric elements on flags facilitate
855 the flag description.
856 To avoid accidental name clashes with other packages,
857 the visibility of those commands is confined to the environment
858 \command{flagdescription}.
859
860
861 % +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
862 \begin{figure}[t]
863 \wideframe{
864 \begin{tabularx}{\textwidth}{@{}>{\RaggedRight}p{\colwidth}>{\RaggedRight}Y@{}}
865 {\m\color{emphcolor}\tt{\tb begin\{flagdescription\}\{}$\xi$\tt{\}}}
866 &
867 \\
868 \qquad $\vdots$ & \\
869 {\m\color{emphcolor}\tt{\tb end\{flagdescription\}}}
870 &
871 environment for the flag with aspect ratio $\xi$\\
872 \end{tabularx}
873
874 \bigskip
875 \begin{tabularx}{\textwidth}{@{}>{\RaggedRight}p{\colwidth}X@{}}
876 \textsl{Geometric flag elements:}
877 \\ % --------------------------
878 {\m\color{emphcolor}\tt{\tb framecode\{}\ti{path}\tt{\}}}
879 & drawing path for the frame around the flag; if \emph{path} is empty, a rectangular frame is drawn.
880 \\ % --------------------------
881 {\m\color{emphcolor}\tt{\tb hstripesII\{}{$c_1$}\tt{\}\{}{$c_2$}\tt{\}}}
882 & partitions the flag into two horizontal stripes with the colors $c_1$ and $c_2$.
883 \\ % --------------------------
884 {\m\color{emphcolor}\tt{\tb hstripesIII\{}{$c_1$}\tt{\}\{}{$c_2$}\tt{\}\{}{$c_3$}\tt{\}}}
885 & three horizontal stripes with the colors $c_1$, \dots\ $c_3$
886 \\ % --------------------------
887 {\m\color{emphcolor}\tt{\tb hstripesIV\{}{$c_1$}\tt{\}\{}{$c_2$}\tt{\}\{}{$c_3$}\tt{\}\{}{$c_4$}\tt{\}}}
888 & \qquad four horizontal stripes with the colors $c_1$, \dots\ $c_4$
889 \\ % --------------------------
890 {\m\color{emphcolor}\tt{\tb vstripesII\{}{$c_1$}\tt{\}\{}{$C_2$}\tt{\}}}
891 & partitions the flag into two vertical stripes with the colors $c_1$ and $c_2$.
892 \\ % --------------------------
893 {\m\color{emphcolor}\tt{\tb vstripesIII\{}{$c_1$}\tt{\}\{}{$c_2$}\tt{\}\{}{$c_3$}\tt{\}}}
894 & three vertical stripes with the colors $c_1$, \dots\ $c_3$
895 \\ % --------------------------
896 {\m\color{emphcolor}\tt{\tb hbar\{}{$c$}\tt{\}\{}{$y$}\tt{\}\{}{$w$}\tt{\}}}
897 & horizontal bar with the color $c$ and the line width $w$ at the \ti{y}-coordinate $y$
898 \\ % --------------------------
899 {\m\color{emphcolor}\tt{\tb vbar\{}{$c$}\tt{\}\{}{$x$}\tt{\}\{}{$w$}\tt{\}}}
900 & vertical bar with the color $c$ and the line width $w$ at the \ti{x}-coordinate $x$
901 \\ % --------------------------
902 {\m\color{emphcolor}\tt{\tb chevron\{}{$c$}\tt{\}\{}{$x$}\tt{\}}}
903 & isosceles triangle at the hoist with the color $c$ and the vertex at the \ti{x}-coordinate $x$
904 \\ % --------------------------
905 {\m\color{emphcolor}\tt{\tb starV\{}{$c$}\tt{\}\{}{$p$}\tt{\}\{}{$r$}\tt{\}\{}{$\alpha$}\tt{\}}}
906 & 5-pointed star as a compex polygon with the fill color $c$, an outer raduis $r$, an angle $\alpha$ at the coordinate $p$
907 \\ % --------------------------
908 {\m\color{emphcolor}\tt{\tb starVI\{}{$c$}\tt{\}\{}{$p$}\tt{\}\{}{$r$}\tt{\}\{}{$\alpha$}\tt{\}}}
909 & 6-pointed star as a compex polygon with the fill color $c$, an outer raduis $r$, an angle $\alpha$ at the coordinate $p$
910 \\ % --------------------------
911 {\m\color{emphcolor}\tt{\tb starn\{}{$c$}\tt{\}\{}{$n$}\tt{\}\{}{$p$}\tt{\}\{}{$r_1$}\tt{\}\{}{$r_2$}\tt{\}\{}{$\alpha$}\tt{\}}}
912 & \qquad n-pointed star with color $c$, an outer raduis $r_1$, an inner raduis $r_2$ and an angle $\alpha$ at the coordinate $p$
913 \\ % --------------------------
914 {\m\color{emphcolor}\tt{\tb moon\{}{$c$}\tt{\}\{}{$p_1$}\tt{\}\{}{$r_1$}\tt{\}\{}{$p_2$}\tt{\}\{}{$r_2$}\tt{\}}}
915 & crescent moon with the fill color $c$, as a difference set of two generating circles with the radii $r_1$, $r_2$, and center coordinates $p_1$ and $p_2$
916 \\ % --------------------------
917 {\m\color{emphcolor}\tt{\tb unionjack\{}{$x_1$}\tt{\}\{}{$y_1$}\tt{\}\{}{$x_2$}\tt{\}\{}{$y_2$}\tt{\}}}
918 & \qquad Union Jack between the coordinates $(x_1,y_1)$ and $(x_2,y_2)$
919 \\ % --------------------------
920 \end{tabularx}}
921 % +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
922 \end{figure}
923 \newpage
924 The macros
925 \command{\tb hstripesII}, \command{\tb hstripesIII}, \command{\tb hstripesIV},
926 \command{\tb vstripesII}, \command{\tb vstripesIII} partition the flag into an
927 according number of horizontal or vertical colored stripes.
928
929 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
930 \codebox{0.65}{27mm}{%
931 \tb begin\{tikzpicture\}
932 \tb begin\{flagdescription\}\{3/4\} \\
933 \xx3\tb hstripesIII\{cyan\}\{white\}\{red\}\\
934 \tb end\{flagdescription\}
935 \tb end\{tikzpicture\} \tb quad \\
936 \tb begin\{tikzpicture\}
937 \tb begin\{flagdescription\}\{3/4\} \\
938 \xx3\tb vstripesIII\{cyan\}\{white\}\{red\}\\
939 \tb end\{flagdescription\}
940 \tb end\{tikzpicture\} \\
941 }\hfill
942 \resultbox{0.34}{27mm}{%
943 \begin{tikzpicture}
944 \begin{flagdescription}{3/4}
945 \hstripesIII{cyan}{white}{red}
946 \end{flagdescription}
947 \end{tikzpicture}
948 \quad
949 \begin{tikzpicture}
950 \begin{flagdescription}{3/4}
951 \vstripesIII{cyan}{white}{red}
952 \end{flagdescription}
953 \end{tikzpicture}
954 }
955 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
956
957 \medskip
958 \command{\tb background} fills the entire rectangular area of the flag with
959 color; note: a flag needs neither a frame around it nor a background on principle.
960 \command{\tb hbar} draws a horizontal bar of given width and color
961 at a specified \ti{y}-coordinate across the flag;
962 \command{\tb vbar} does the same vertically.
963 \command{\tb chevron} draws an isosceles triangle with a given height over
964 the hoist.
965
966 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
967 \codebox{0.65}{46mm}{%
968 \tb begin\{tikzpicture\}
969 \tb begin\{flagdescription\}\{3/4\} \\
970 \xx3\tb background\{cyan\} \\
971 \xx3\tb hbar\{white\}\{0.5\}\{0.3\} \\
972 \xx3\tb vbar\{white\}\{0.5\}\{0.3\} \\
973 \tb end\{flagdescription\}
974 \tb end\{tikzpicture\} \\
975 \tb quad \\
976 \tb begin\{tikzpicture\}
977 \tb begin\{flagdescription\}\{3/4\}
978 \xx3\tb chevron\{cyan\}\{1\} \\
979 \xx3\tb framecode{} \\
980 \tb end\{flagdescription\}
981 \tb end\{tikzpicture\}
982 }\hfill
983 \resultbox{0.34}{46mm}{%
984 \begin{tikzpicture}
985 \begin{flagdescription}{3/4}
986 \background{cyan}
987 \hbar{white}{0.5}{0.3}
988 \vbar{white}{0.5}{0.3}
989 \end{flagdescription}
990 \end{tikzpicture}
991 \quad
992 \begin{tikzpicture}
993 \begin{flagdescription}{3/4}
994 \chevron{cyan}{1}
995 \framecode{}
996 \end{flagdescription}
997 \end{tikzpicture}
998 }
999 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1000
1001 \medskip
1002 \command{\tb unionjack} draws the Union Jack
1003 (which is part of a couple of flags)
1004 between a lower left and an upper right point.
1005 Their coordinates -- $x_1$, $y_1$, $x_2$,$y_2$ -- are separate
1006 parameters, which \emph{must} be specified as dimensions
1007 (i.\,e. using a unit), not just as numbers.
1008 The colors \command{blue}, \command{red} and \command{white}
1009 can be redefined arbitrarily.
1010
1011 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1012 \codebox{0.65}{46mm}{%
1013 \tb begin\{tikzpicture\}
1014 \tb begin\{flagdescription\}\{3/4\} \\
1015 \tb unionjack\{0mm\}\{0mm\}\{\tb flaglength\}\{\tb flagwidth\} \\
1016 \tb end\{flagdescription\}
1017 \tb end\{tikzpicture\} \\
1018 \tb quad \\
1019 \tb begin\{tikzpicture\}
1020 \tb begin\{flagdescription\}\{3/4\} \\
1021 \tb colorlet\{blue\}\{black\} \\
1022 \tb definecolor\{red\}\{rgb\}\{0.9,0.6,0\} \\
1023 \tb unionjack\{0mm\}\{5mm\}\{10mm\}\{\tb flagwidth\}\\
1024 \tb framecode{}\\
1025 \tb end\{flagdescription\}
1026 \tb end\{tikzpicture\} \\
1027 }
1028 \resultbox{0.34}{46mm}{%
1029 \begin{tikzpicture}
1030 \begin{flagdescription}{3/4}
1031 \unionjack{0mm}{0mm}{\flaglength}{\flagwidth}
1032 \end{flagdescription}
1033 \end{tikzpicture}
1034 \quad
1035 \begin{tikzpicture}
1036 \begin{flagdescription}{3/4}
1037 \colorlet{blue}{black}
1038 \definecolor{red}{rgb}{0.9,0.6,0}
1039 \unionjack{0mm}{5mm}{10mm}{\flagwidth}
1040 \framecode{}
1041 \end{flagdescription}
1042 \end{tikzpicture}
1043 }
1044 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1045
1046 \medskip
1047 The various types of stars \command{\tb starV} \command{\tb starVI}
1048 \command{\tb starn} and \command{\tb moon} are self-explanatory.
1049 In the following example \tt{\tb starn} and \tt{\tb moon}
1050 are overlayed with the generating circles.
1051
1052 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1053 \codebox{0.65}{55mm}{%
1054 \tb begin\{tikzpicture\}
1055 \tb begin\{flagdescription\}\{1/3\}\\
1056 \xx3\tb background\{cyan\}\\
1057 \xx3\tb starV\{white\}\{(1,0.5)\}\{0.3\}\{0\}\\
1058 \xx3\tb starVI\{white\}\{(2,0.5)\}\{0.3\}\{0\}\\
1059 % \xx3\tb framecode{}\\
1060 \tb end\{flagdescription\}
1061 \tb end\{tikzpicture\}\\
1062 \tb par\tb medskip\\
1063 \tb begin\{tikzpicture\}
1064 \tb begin\{flagdescription\}\{1/3\}\\
1065 \xx3\tb background\{cyan\}\\
1066 \xx3\tb starn\{white\}\{9\}\{(2,0.5)\}\{0.4\}\{0.15\}\{0\} \\
1067 \xx3\tb draw (2,0.5)circle(0.4) (2,0.5)circle(0.15); \\
1068 \xx3\tb moon\{white\}\{(1,0.45)\}\{0.4\}\{(1.1,0.6)\}\{0.36\}\\
1069 \xx3\tb draw (1,0.45)circle(0.4) (1.1,0.6)circle(0.36);\\
1070 % \xx3\tb framecode{}\\
1071 \tb end\{flagdescription\}
1072 \tb end\{tikzpicture\}
1073 }
1074 \resultbox{0.34}{55mm}{%
1075 \begin{tikzpicture}
1076 \begin{flagdescription}{1/3}
1077 \background{cyan}
1078 \starV{white}{(1,0.5)}{0.3}{0}
1079 \starVI{white}{(2,0.5)}{0.3}{0}
1080 % \framecode{}
1081 \end{flagdescription}
1082 \end{tikzpicture}
1083 \par\medskip
1084 \begin{tikzpicture}
1085 \begin{flagdescription}{1/3}
1086 \background{cyan}
1087 \starn{white}{9}{(2,0.5)}{0.4}{0.15}{0}
1088 \draw (2,0.5)circle(0.4) (2,0.5) circle(0.15);
1089 \moon{white}{(1,0.45)}{0.4}{(1.1,0.6)}{0.36}
1090 \draw (1,0.45)circle(0.4) (1.1,0.6)circle(0.36);
1091 % \framecode{}
1092 \end{flagdescription}
1093 \end{tikzpicture}
1094 }
1095 %~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1096
1097 \iftrue
1098 % --------------------------------------------------------------------------
1099 \chapter{Flags}\label{FLAGS}
1100 % --------------------------------------------------------------------------
1101
1102 %\iffalse
1103 \flagsdefault[width=18mm,length=30mm,stretch=0.5]
1104
1105 \section{National Flags of sovereign states}
1106 % ------------------------------------------
1107 \flaggenprozeile{4}
1108 \show{Afghanistan}{AF}
1109 \show{Albania}{AL}
1110 \show{Algeria}{DZ}
1111 \show{Andorra}{AD}
1112 \show{Angola}{AO}
1113 \show{Antigua \& Barbuda}{AG}
1114 \show{Argentina}{AR}
1115 \show{Armenia}{AM}
1116 \show{Australia}{AU}
1117 \show{Austria}{AT}
1118 \show{Azerbaijan}{AZ}
1119 \show{Bahamas}{BS}
1120 \show{Bahrein}{BH}
1121 \show{Bangladesh}{BD}
1122 \show{Barbados}{BB}
1123 \show{Belarus}{BY}
1124 \show{Belgium}{BE}
1125 \show{Belize}{BZ}
1126 \show{Benin}{BJ}
1127 \show{Bhutan}{BT}
1128 \show{Bolivia}{BO}
1129 \show{Bosnia \& Herzogovina}{BA}
1130 \show{Botswana}{BW}
1131 \show{Brazil}{BR}
1132 \show{Brunei}{BN}
1133 \show{Bulgaria}{BG}
1134 \show{Burkina Faso}{BF}
1135 \show{Burundi}{BI}
1136 \show{Cambodia}{KH}
1137 \show{Cameroon}{CM}
1138 \show{Canada}{CA}
1139 \show{Cape Verde}{CV}
1140 \show{Central African Rep.}{CF}
1141 \show{Chad}{TD}
1142 \show{Chile}{CL}
1143 \show{China}{CN}
1144 \show{Colombia}{CO}
1145 \show{Comoros}{KM}
1146 \show{Congo, Democratic Rep.}{CD}
1147 \show{Congo, Republic}{CG}
1148 \show{Cook Islands}{CK}
1149 \show{Costa Rica}{CR}
1150 \show{Croatia}{HR}
1151 \show{Cuba}{CU}
1152 \show{Cyprus}{CY}
1153 \show{Czech Republic}{CZ}
1154 \show{Denmark}{DK}
1155 \show{Djibouti}{DJ}
1156 \show{Dominica}{DM}
1157 \show{Dominican Republic}{DO}
1158 \show{East Timor}{TL}
1159 \show{Ecuador}{EC}
1160 \show{Egypt}{EG}
1161 \show{EL Salvador}{SV}
1162 \show{Equatorial Guinea}{GQ}
1163 \show{Eritrea}{ER}
1164 \show{Estonia}{EE}
1165 \show{Eswatini}{SZ}
1166 \show{Ethiopia}{ET}
1167 \show{Fiji}{FJ}
1168 \show{Finnland}{FI}
1169 \show{France}{FR}
1170 \show{Gabon}{GA}
1171 \show{Gambia}{GM}
1172 \show{Georgia}{GE}
1173 \show{Germany}{DE}
1174 \show{Ghana}{GH}
1175 \show{Greece}{GR}
1176 \show{Grenada}{GD}
1177 \show{Guatemala}{GT}
1178 \show{Guinea}{GN}
1179 \show{Guinea Bissau}{GW}
1180 \show{Guyana}{GY}
1181 \show{Haiti}{HT}
1182 \show{Honduras}{HN}
1183 \show{Hungary}{HU}
1184 \show{Iceland}{IS}
1185 \show{India}{IN}
1186 \show{Indonesia}{ID}
1187 \show{Iran}{IR}
1188 \show{Iraq}{IQ}
1189 \show{Ireland}{IE}
1190 \show{Israel}{IL}
1191 \show{Italy}{IT}
1192 \show{Ivory Coast}{CI}
1193 \show{Jamaica}{JM}
1194 \show{Japan}{JP}
1195 \show{Jordan}{JO}
1196 \show{Kazakhstan}{KZ}
1197 \show{Kenya}{KE}
1198 \show{Kiribati}{KI}
1199 \show{Korea, North}{KP}
1200 \show{Korea, South}{KR}
1201 \show{Kosovo}{KO}
1202 \show{Kuwait}{KW}
1203 \show{Kyrgystan}{KG}
1204 \show{Laos}{LA}
1205 \show{Latvia}{LV}
1206 \show{Lebanon}{LB}
1207 \show{Lesotho}{LS}
1208 \show{Liberia}{LR}
1209 \show{Libya}{LY}
1210 \show{Liechtenstein}{LI}
1211 \show{Lithuania}{LT}
1212 \show{Luxembourg}{LU}
1213 \show{Madagaskar}{MG}
1214 \show{Malawi}{MW}
1215 \show{Malaysia}{MY}
1216 \show{Maledives}{MV}
1217 \show{Mali}{ML}
1218 \show{Malta}{MT}
1219 \show{Marshall Islands}{MH}
1220 \show{Mauritania}{MR}
1221 \show{Mauritius}{MU}
1222 \show{Mexico}{MX}
1223 \show{Micronesia}{FM}
1224 \show{Moldova}{MD}
1225 \show{Monaco}{MC}
1226 \show{Mongolia}{MN}
1227 \show{Montenegro}{ME}
1228 \show{Morocco}{MA}
1229 \show{Mozambique}{MZ}
1230 \show{Myanmar}{MM}
1231 \show{Namibia}{NA}
1232 \show{Nauru}{NR}
1233 \show{Nepal}{NP}
1234 \show{Netherlands}{NL}
1235 \show{New Zealsnd}{NZ}
1236 \show{Nicaragua}{NI}
1237 \show{Niger}{NE}
1238 \show{Nigeria}{NG}
1239 \show{North Macedonia}{MK}
1240 \show{Norway}{NO}
1241 \show{Oman}{OM}
1242 \show{Pakistan}{PK}
1243 \show{Palau}{PW}
1244 \show{Palestine}{PS}
1245 \show{Panama}{PA}
1246 \show{Papua New Guinea}{PG}
1247 \show{Paraguay}{PY}
1248 \show{Peru}{PE}
1249 \show{Philippines}{PH}
1250 \show{Poland}{PL}
1251 \show{Portugal}{pt}
1252 \show{Quatar}{QA}
1253 \show{Romania}{RO}
1254 \show{Russia}{RU}
1255 \show{Rwanda}{RW}
1256 \show{St. Kitts \& Nevis}{KN}
1257 \show{St. Lucia}{LC}
1258 \show{St. Vincent}{VC}
1259 \show{Samoa}{WS}
1260 \show{San Marino}{SM}
1261 \show{Sao Tome \& Principe}{ST}
1262 \show{Saudi Arabia}{SA}
1263 \show{Senegal}{SN}
1264 \show{Serbia}{RS}
1265 \show{Seychelles}{SC}
1266 \show{Sierra Leone}{SL}
1267 \show{Singapore}{SG}
1268 \show{Slovakia}{SK}
1269 \show{Slovenia}{SI}
1270 \show{Solomon Islands}{SB}
1271 \show{Somalia}{SO}
1272 \show{South Africa}{ZA}
1273 \show{South Sudan}{SS}
1274 \show{Spain}{ES}
1275 \show{Sri Lanka}{LK}
1276 \show{Sudan}{SD}
1277 \show{Suriname}{SR}
1278 \show{Sweden}{SE}
1279 \show{Switzerland}{CH}
1280 \show{Syria}{SY}
1281 \show{Taiwan}{TW}
1282 \show{Tajikistan}{TJ}
1283 \show{Tanzania}{TZ}
1284 \show{Thailand}{TH}
1285 \show{Togo}{TG}
1286 \show{Tonga}{TO}
1287 \show{Trinidad \& Tobago}{TT}
1288 \show{Tunisia}{TN}
1289 \show{Turkey}{TR}
1290 \show{Turkmenistan}{TM}
1291 \show{Tuvalu}{TV}
1292 \show{Uganda}{UG}
1293 \show{Ukraine}{UA}
1294 \show{United Arab Emirates}{AE}
1295 \show{United Kingdom}{GB}
1296 \show{United States}{US}
1297 \show{Uruguay}{UY}
1298 \show{Uzbekistan}{UZ}
1299 \show{Vanuatu}{VU}
1300 \show{Vatican}{VA}
1301 \show{Venezuela}{VE}
1302 \show{Vietnam}{VN}
1303 \show{Yemen}{YE}
1304 \show{Zambia}{ZM}
1305 \show{Zimbabwe}{ZW}
1306
1307 \subsection*{Variants}
1308 % --------------------
1309
1310 \flaggenprozeile{4}
1311 \flagsdefault[emblem,variant=0]\show{Austria: Variant 0}{AT}
1312 \flagsdefault[emblem,variant=1]\show{Austria: Variant 1}{AT}
1313 \flagsdefault[emblemdefault,variant=0]
1314
1315 \section{Historical and outdated flags}
1316 % -------------------------------------
1317
1318 \flaggenprozeile{4}
1319 \show{Soviet Union}{SU}
1320
1321 \section{Flags of other countries and territories}
1322 % ------------------------------------------------
1323
1324 \flaggenprozeile{4}
1325 \show{Abkhazia}{Abkhazia}
1326 \show{\AA land}{AX}
1327 \show{Antarctica}{AQ}
1328 \show{Artsakh}{Artsakh}
1329 \show{Bonaire}{Bonaire}
1330 \show{Faroe Islands}{FO}
1331 \show{French Guiana}{GF}
1332 \show{Gibraltar}{GI}
1333 \show{Greenland}{GL}
1334 \show{Guernsey}{GG}
1335 \show{Isle of Man}{IM}
1336 \show{Jersey}{JE}
1337 \show{Niue}{NU}
1338 \show{Puerto Rico}{PR}
1339 \show{Reunion}{RE}
1340 \show{St.\,Eustasius}{StEustasius}
1341 \show{Somaliland}{Somaliland}
1342 \show{Tibet}{Tibet}
1343 \show{Transnistria}{Transnistria}
1344 \show{Western Sahara}{EH}
1345
1346 \section{Austrian federal states}
1347 % -------------------------------
1348
1349 \flaggenprozeile{4}
1350 \show{Vienna}{AT-W}
1351 \show{Lower Austria}{AT-N}
1352 \show{Upper Austria}{AT-O}
1353 \show{Salzburg}{AT-S}
1354 \show{The Tyrol}{AT-T}
1355 \show{Vorarlberg}{AT-V}
1356 \show{Carinthia}{AT-K}
1357 \show{Styria}{AT-St}
1358 \show{Burgenland}{AT-B}
1359
1360 \newpage
1361 \section{Italian Regions}
1362 % -----------------------
1363
1364 \flaggenprozeile{4}
1365 \flagsdefault[variant=1]\show{Abruzzo}{IT-AB}\flagsdefault[variant=0]
1366 \show{Alto Adige}{IT-AA}
1367 \show{Aosta}{IT-AO}
1368 \show{Basilicata}{IT-BA}
1369 \show{Calabria}{IT-CL}
1370 \show{Campania}{IT-CM}
1371 \show{Emilia Romagna}{IT-EM}
1372 \show{Friuli Venezia Giulia}{IT-FR}
1373 \show{Lazio}{IT-LA}
1374 \show{Liguria}{IT-LI}
1375 \show{Lombardia}{IT-LO}
1376 \show{Marche}{IT-MA}
1377 \show{Molise}{IT-MO}
1378 \show{Piemonte}{IT-PI}
1379 \show{Puglia}{IT-PU}
1380 \show{Sardegna}{IT-SA}
1381 \show{Sicilia}{IT-SI}
1382 \show{Toscana}{IT-TO}
1383 \show{Trentino}{IT-TN}
1384 \show{Trentino-Alto Adige}{IT-TA}
1385 \show{Umbria}{IT-UM}
1386 \flagsdefault[variant=1]\show{Veneto}{IT-VE}\flagsdefault[variant=0]
1387
1388 \subsection*{Variants}
1389 % --------------------
1390
1391 \flaggenprozeile{4}
1392 \flagsdefault[variant=0]\show{Veneto: Variant 0}{IT-VE}
1393 \flagsdefault[variant=1]\show{Veneto: Variant 1}{IT-VE}
1394 \flagsdefault[variant=2]\show{Veneto: Variant 2}{IT-VE}
1395 \flagsdefault[variant=3]\show{Veneto: Variant 3}{IT-VE}
1396 \flagsdefault[variant=0]\show{Abruzzo: Variant 0}{IT-AB}
1397 \flagsdefault[variant=1]\show{Abruzzo: Variant 1}{IT-AB}
1398 \flagsdefault[variant=0]\show{Toscana: Variant 0}{IT-TO}
1399 \flagsdefault[variant=1]\show{Toscana: Variant 1}{IT-TO}
1400 \flagsdefault[variant=0]\show{Trentino: Variant 0}{IT-TN}
1401 \flagsdefault[variant=1]\show{Trentino: Variant 1}{IT-TN}
1402
1403 \section{Other Flags}
1404 % ----------------------
1405
1406 \flaggenprozeile{4}
1407 \show{European Union}{EU}
1408 \show{United Nations}{UNO}
1409 \show{WHO}{WHO}
1410 \show{UNESCO}{UNESCO}
1411 \show{NATO}{NATO}
1412 \show{Christian Flag}{Christian}
1413 \show{Buddhist Flag}{Buddhism}
1414 \show{Red Cross}{RedCross}
1415 \show{Red Crescent}{RedCrescent}
1416 \show{Red Crystal}{RedCrystal}
1417 \show{Olympics}{Olympics}
1418 \show{Jolly Roger}{JollyRoger}
1419 \show{Rainbow flag}{Rainbow}
1420 \show{Esperanto Movement}{Esperanto}
1421
1422 \newpage
1423 \section{Nautical Signal Flags}
1424 % -----------------------------
1425
1426 \flagsdefault[width=18mm,length=25mm]
1427 \flaggenprozeile{5}
1428 \show{}{A}
1429 \show{}{B}
1430 \show{}{C}
1431 \show{}{D}
1432 \show{}{E}
1433 \show{}{F}
1434 \show{}{G}
1435 \show{}{H}
1436 \show{}{I}
1437 \show{}{J}
1438 \show{}{K}
1439 \show{}{L}
1440 \show{}{M}
1441 \show{}{N}
1442 \show{}{O}
1443 \show{}{P}
1444 \show{}{Q}
1445 \show{}{R}
1446 \show{}{S}
1447 \show{}{T}
1448 \show{}{U}
1449 \show{}{V}
1450 \show{}{W}
1451 \show{}{X}
1452 \show{}{Y}
1453 \show{}{Z}\par\bigskip
1454
1455 \flagsdefault[width=0mm,length=25mm]
1456 \flaggenprozeile{5}
1457 \show{}{0}
1458 \show{}{1}
1459 \show{}{2}
1460 \show{}{3}
1461 \show{}{4}
1462 \show{}{5}
1463 \show{}{6}
1464 \show{}{7}
1465 \show{}{8}
1466 \show{}{9}
1467
1468 % --------------------------------------------------------------------------
1469 % Links
1470 % --------------------------------------------------------------------------
1471 {
1472 \raggedright
1473 \def\web#1{{\color{emphcolor}\texttt{#1}}: }
1474 \def\txt#1{#1}
1475 \def\bibname{Links}
1476 % \addcontentsline{toc}{chapter}{\bibname}
1477
1478 \begin{thebibliography}{88}
1479 % ---------------------------------------------------------------------------
1480 \bibitem{VEXILLAMUNDI}
1481 \web{http://www.vexilla-mundi.com}
1482 \txt{Comprehensive website with flags of all nations including construction
1483 sheets, historical flags, flags of many cities and regions.}
1484 % ---------------------------------------------------------------------------
1485 \bibitem{FOTW}
1486 \web{https://www.fotw.info}
1487 \txt{Website of the FOTW (``Flags Of The World''), vexillological association
1488 and internet resource; many background informations about flags and vexillology.}
1489 % ---------------------------------------------------------------------------
1490 \bibitem{FLAGS}
1491 \web{https://www.flags.net}
1492 \txt{World Flags Database; another comprehensive collection of flags
1493 from all over the world.}
1494 % ---------------------------------------------------------------------------
1495 \bibitem{WELTFLAGGEN}
1496 \web{https://www.welt-flaggen.de}
1497 \txt{Flags of and information about all countries of the world;
1498 contains flag quizzes.}
1499
1500 % ---------------------------------------------------------------------------
1501 \bibitem{NATIONALFLAGGEN}
1502 \web{https://www.nationalflaggen.de}
1503 \txt{Provides various images and animated gifs of all national flags.}
1504 \end{thebibliography}
1505 % ---------------------------------------------------------------------------
1506 }
1507 \fi
1508
1509
1510 \end{document}