| 1 |
%% |
| 2 |
%% This is file `vexillology.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% vexillology.dtx (with options: `package') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% Copyright (C) 2026 by Karl D. Hammond |
| 12 |
%% |
| 13 |
%% Karl D. Hammond, |
| 14 |
%% Contact: kaiserkarl31 at yahoo.com |
| 15 |
%% |
| 16 |
%% This work may be distributed and/or modified under the |
| 17 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 18 |
%% of this license or (at your option) any later version. |
| 19 |
%% The latest version of this license is in |
| 20 |
%% http://www.latex-project.org/lppl.txt |
| 21 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 22 |
%% version 2005/12/01 or later. |
| 23 |
\NeedsTeXFormat{LaTeX2e} |
| 24 |
\RequirePackage{tikz} |
| 25 |
\ProvidesPackage{vexillology} |
| 26 |
[2026/01/15 v1.0.0 vexillogical symbols] |
| 27 |
\newif\ifvexallextended |
| 28 |
\DeclareOption{extended}{\vexallextendedtrue} |
| 29 |
\ProcessOptions |
| 30 |
\RequirePackage{tikz} |
| 31 |
\usetikzlibrary{arrows.meta} |
| 32 |
\newcommand*{\vexxscale}{0.8ex} |
| 33 |
\newcommand*{\vexyscale}{0.8ex} |
| 34 |
\newcommand*{\vexgrid}{% |
| 35 |
\draw (0,0) -- (3,0) |
| 36 |
(1,-1) -- (1,1) |
| 37 |
(2,-1) -- (2,1); |
| 38 |
} |
| 39 |
\newcommand*{\vexgridextended}{% |
| 40 |
\draw (0,0) -- (3,0) |
| 41 |
(0,1) -- (3,1) |
| 42 |
(1,-1) -- (1,2) |
| 43 |
(2,-1) -- (2,2); |
| 44 |
} |
| 45 |
\newcommand*{\vexdotone}{% |
| 46 |
\fill (0.5,0.5) circle (0.35); |
| 47 |
} |
| 48 |
\newcommand*{\vexdottwo}{% |
| 49 |
\fill (1.5,0.5) circle (0.35); |
| 50 |
} |
| 51 |
\newcommand*{\vexdotthree}{% |
| 52 |
\fill (2.5,0.5) circle (0.35); |
| 53 |
} |
| 54 |
\newcommand*{\vexdotfour}{% |
| 55 |
\fill (0.5,-0.5) circle (0.35); |
| 56 |
} |
| 57 |
\newcommand*{\vexdotfive}{% |
| 58 |
\fill (1.5,-0.5) circle (0.35); |
| 59 |
} |
| 60 |
\newcommand*{\vexdotsix}{% |
| 61 |
\fill (2.5,-0.5) circle (0.35); |
| 62 |
} |
| 63 |
\newcommand*{\vexdotseven}{% |
| 64 |
\fill (0.5,1.5) circle (0.35); |
| 65 |
} |
| 66 |
\newcommand*{\vexdoteight}{% |
| 67 |
\fill (1.5,1.5) circle (0.35); |
| 68 |
} |
| 69 |
\newcommand*{\vexdotnine}{% |
| 70 |
\fill (2.5,1.5) circle (0.35); |
| 71 |
} |
| 72 |
\NewDocumentCommand{\vexusage}{s m}{% |
| 73 |
\begin{tikzpicture}[x=\vexxscale,y=\vexyscale] |
| 74 |
\IfBooleanTF {#1} |
| 75 |
{\vexgridextended} |
| 76 |
{ |
| 77 |
\ifvexallextended |
| 78 |
\vexgridextended |
| 79 |
\else |
| 80 |
\pgfmathparse{int(#2)} |
| 81 |
\ifnum\pgfmathresult>63\relax |
| 82 |
\vexgridextended |
| 83 |
\else |
| 84 |
\vexgrid |
| 85 |
\fi |
| 86 |
\fi |
| 87 |
} |
| 88 |
\pgfmathparse{int(mod(#2,2))} |
| 89 |
\ifnum\pgfmathresult=1\relax |
| 90 |
\vexdotone |
| 91 |
\fi |
| 92 |
\pgfmathparse{int(mod(div(#2,2),2))} |
| 93 |
\ifnum\pgfmathresult=1\relax |
| 94 |
\vexdottwo |
| 95 |
\fi |
| 96 |
\pgfmathparse{int(mod(div(#2,4),2))} |
| 97 |
\ifnum\pgfmathresult=1\relax |
| 98 |
\vexdotthree |
| 99 |
\fi |
| 100 |
\pgfmathparse{int(mod(div(#2,8),2))} |
| 101 |
\ifnum\pgfmathresult=1\relax |
| 102 |
\vexdotfour |
| 103 |
\fi |
| 104 |
\pgfmathparse{int(mod(div(#2,16),2))} |
| 105 |
\ifnum\pgfmathresult=1\relax |
| 106 |
\vexdotfive |
| 107 |
\fi |
| 108 |
\pgfmathparse{int(mod(div(#2,32),2))} |
| 109 |
\ifnum\pgfmathresult=1\relax |
| 110 |
\vexdotsix |
| 111 |
\fi |
| 112 |
\pgfmathparse{int(mod(div(#2,64),2))} |
| 113 |
\ifnum\pgfmathresult=1\relax |
| 114 |
\vexdotseven |
| 115 |
\fi |
| 116 |
\pgfmathparse{int(mod(div(#2,128),2))} |
| 117 |
\ifnum\pgfmathresult=1\relax |
| 118 |
\vexdoteight |
| 119 |
\fi |
| 120 |
\pgfmathparse{int(mod(div(#2,256),2))} |
| 121 |
\ifnum\pgfmathresult=1\relax |
| 122 |
\vexdotnine |
| 123 |
\fi |
| 124 |
\end{tikzpicture}} |
| 125 |
\newcommand*{\vexcivilflag}{1} |
| 126 |
\newcommand*{\vexstateflag}{2} |
| 127 |
\newcommand*{\vexwarflag}{4} |
| 128 |
\newcommand*{\vexcivilensign}{8} |
| 129 |
\newcommand*{\vexstateensign}{16} |
| 130 |
\newcommand*{\vexwarensign}{32} |
| 131 |
\newcommand*{\vexcivilairensign}{64} |
| 132 |
\newcommand*{\vexstateairensign}{128} |
| 133 |
\newcommand*{\vexwarairensign}{256} |
| 134 |
\newcommand*{\vexnationalflag}{7} |
| 135 |
\newcommand*{\vexnationalensign}{56} |
| 136 |
\newcommand*{\vexnationalflagandensign}{63} |
| 137 |
\newcommand*{\vexnationaleverything}{511} |
| 138 |
\newcommand*{\vexnormal}{% |
| 139 |
\begin{tikzpicture}[x=\vexxscale,y=\vexyscale] |
| 140 |
\draw (0,-0.4) -- (0,1) -- (2,1) -- (2,0) -- (0,0); |
| 141 |
\end{tikzpicture}} |
| 142 |
\newcommand*{\vexproposed}{% |
| 143 |
\begin{tikzpicture}[x=\vexxscale,y=\vexyscale] |
| 144 |
\draw (0,-0.4) -- (0,1) -- (2,1) (2,0) -- (0,0); |
| 145 |
\end{tikzpicture}} |
| 146 |
\newcommand*{\vexreconstruction}{% |
| 147 |
\begin{tikzpicture}[x=\vexxscale,y=\vexyscale] |
| 148 |
\draw (0,-0.4) -- (0,1) -- (2,1) -- (2,0) -- (0,0); |
| 149 |
\fill (0.9875,0.2) circle (0.075*\vexxscale); |
| 150 |
\draw [line width=0.125*\vexyscale,line cap=round] |
| 151 |
(0.9875,0.381) .. controls +(0,0.25) and +(0,-0.12) .. (1.125,0.70) |
| 152 |
.. controls +(0,0.09) and +(0.05,0) .. (1,0.8125) |
| 153 |
.. controls +(-0.09,0) and +(0,0.065) .. (0.85,0.702); |
| 154 |
\end{tikzpicture}} |
| 155 |
\newcommand*{\vexreverse}{% |
| 156 |
\begin{tikzpicture}[x=\vexxscale,y=\vexyscale] |
| 157 |
\draw (0,-0.4) -- (0,1) -- (2,1) -- (2,0) -- (0,0); |
| 158 |
\draw [-{Straight Barb[length=0.25ex,width=0.25ex]}] (1,0.5) -- (2.75,0.5); |
| 159 |
\end{tikzpicture}} |
| 160 |
\newcommand*{\vexvariant}{% |
| 161 |
\begin{tikzpicture}[x=\vexxscale,y=\vexyscale] |
| 162 |
\draw (0,-0.4) -- (0,1) -- (2,1) -- (2,0) -- (0,0); |
| 163 |
\draw (-0.2,-0.5) .. controls +(-0.4,0.3) and +(-0.4,-0.3) .. (-0.2,1.1); |
| 164 |
\draw (2.2,-0.5) .. controls +(0.4,0.3) and +(0.4,-0.3) .. (2.2,1.1); |
| 165 |
\end{tikzpicture}} |
| 166 |
\newcommand*{\vexalternative}{% |
| 167 |
\begin{tikzpicture}[x=\vexxscale,y=\vexyscale] |
| 168 |
%\draw[green] (0,-0.4) -- (0,1) -- (2,1) -- (2,0) -- (0,0); |
| 169 |
\draw (0,-0.4) -- (0,1) -- (2,1) -- (2,0.5) |
| 170 |
(0.5,0) -- (0,0); |
| 171 |
\draw [xshift=0.4ex,yshift=-0.4ex] |
| 172 |
(0,-0.4) -- (0,1) -- (2,1) -- (2,0) -- (0,0); |
| 173 |
\end{tikzpicture}} |
| 174 |
\newcommand*{\vexdefacto}{% |
| 175 |
\begin{tikzpicture}[x=\vexxscale,y=\vexyscale] |
| 176 |
\draw (0,-0.4) -- (0,1) -- (2,1) -- (2,0) -- (0,0); |
| 177 |
\draw (0.5,-0.2) -- (1.5,1.2); |
| 178 |
\end{tikzpicture}} |
| 179 |
\newcommand*{\vexreverseisdifferent}{% |
| 180 |
\begin{tikzpicture}[x=\vexxscale,y=\vexyscale, |
| 181 |
>={Straight Barb[length=0.25ex,width=0.25ex]}] |
| 182 |
\draw [->] (0,0) -- (2,0); |
| 183 |
\draw [->] (1.5,0.5) -- (-0.5,0.5); |
| 184 |
\draw (0.25,-0.5) -- (1.25,1); |
| 185 |
\end{tikzpicture}} |
| 186 |
\newcommand*{\vexsinisterhoist}{% |
| 187 |
\begin{tikzpicture}[x=\vexxscale,y=\vexyscale] |
| 188 |
\draw (0,0) -- (0,1) -- (2,1) -- (2,-0.4) -- (2,0) -- cycle; |
| 189 |
\end{tikzpicture}} |
| 190 |
\newcommand*{\vexhistorical}{% |
| 191 |
\begin{tikzpicture}[x=\vexxscale,y=\vexyscale,line cap=rect] |
| 192 |
\draw (0,-0.4) -- (0,1) -- (1.2,1) -- (0.6,0) -- (0,0); |
| 193 |
\draw (2,-0.4) -- (2,0.7) -- (1.5,0.7) -- (0.8,-0.4) -- cycle; |
| 194 |
\end{tikzpicture}} |
| 195 |
\newcommand*{\vexreverseismirror}{% |
| 196 |
\begin{tikzpicture}[x=\vexxscale,y=\vexyscale,line cap=rect, |
| 197 |
>={Straight Barb[length=0.25ex,width=0.35ex]}] |
| 198 |
\draw (2,-0.5) -- (2,1) -- (0,1) -- (0,0) -- (2,0); |
| 199 |
\draw [->] (0.25,-0.125) .. controls +(0.25,-0.20) and +(-0.25,0) .. (1.75,-0.25); |
| 200 |
\draw [line cap=round] (0.75,0.15) -- ++(0.25,0.35) |
| 201 |
(1.25,0.15) -- (1.25,0.85) |
| 202 |
-- (0.85,0.85) .. controls (0.70,0.8) and (0.70,0.6) .. (0.85,0.5) |
| 203 |
-- (1.25,0.5); |
| 204 |
\end{tikzpicture}} |
| 205 |
\newcommand*{\vexreverseiscongruent}{% |
| 206 |
\begin{tikzpicture}[x=\vexxscale,y=\vexyscale,line cap=rect, |
| 207 |
>={Straight Barb[length=0.25ex,width=0.35ex]}] |
| 208 |
\draw (2,-0.5) -- (2,1) -- (0,1) -- (0,0) -- (2,0); |
| 209 |
\draw [->] (0.25,-0.125) .. controls +(0.25,-0.20) and +(-0.25,0) .. (1.75,-0.25); |
| 210 |
\draw (1.25,0.15) -- (0.75,0.15) -- (0.75,0.85) -- (1.25,0.85) |
| 211 |
(0.75,0.5) -- (1.15,0.5); |
| 212 |
\end{tikzpicture}} |
| 213 |
\newcommand*{\vexnormalvertical}{% |
| 214 |
\begin{tikzpicture}[x=\vexxscale,y=\vexyscale,line cap=rect] |
| 215 |
\draw (2.125,1.25) -- (-0.125,1.25) -- (-0.125,-0.25) |
| 216 |
-- (1.125,-0.25) -- (1.125,1.25); |
| 217 |
\begin{scope} |
| 218 |
\clip (0.1,0.1) rectangle (0.9,0.9); |
| 219 |
\draw (0.85,0.15) -- (0.15,0.15) -- (0.85,0.85) -- (0.15,0.85); |
| 220 |
\end{scope} |
| 221 |
\end{tikzpicture}} |
| 222 |
\newcommand*{\vexobversevertical}{% |
| 223 |
\begin{tikzpicture}[x=\vexxscale,y=\vexyscale,line cap=rect] |
| 224 |
\draw (-0.125,1.25) -- (-0.125,-0.25) |
| 225 |
-- (1.125,-0.25) -- (1.125,1.25) -- (-1.125,1.25); |
| 226 |
\begin{scope} |
| 227 |
\clip (0.1,0.1) rectangle (0.9,0.9); |
| 228 |
\draw (0.85,0.15) -- (0.15,0.15) -- (0.85,0.85) -- (0.15,0.85); |
| 229 |
\end{scope} |
| 230 |
\end{tikzpicture}} |
| 231 |
\newcommand*{\vexrotatevertical}{% |
| 232 |
\begin{tikzpicture}[x=\vexxscale,y=\vexyscale,line cap=rect] |
| 233 |
\draw (2.125,1.25) -- (-0.125,1.25) -- (-0.125,-0.25) |
| 234 |
-- (1.125,-0.25) -- (1.125,1.25); |
| 235 |
\draw [line cap=round] (0.20,0.1) -- (0.20,0.9) -- (0.75,0.9) |
| 236 |
.. controls (0.90,0.7625) and (0.90,0.5875) .. (0.75,0.5) -- (0.20,0.5) |
| 237 |
(0.55,0.5) -- (0.82,0.1); |
| 238 |
\end{tikzpicture}} |
| 239 |
\newcommand*{\vexunknownvertical}{% |
| 240 |
\begin{tikzpicture}[x=\vexxscale,y=\vexyscale,line cap=rect] |
| 241 |
\draw (2.125,1.25) -- (-0.125,1.25) -- (-0.125,-0.25) |
| 242 |
-- (1.125,-0.25) -- (1.125,1.25); |
| 243 |
\fill (0.49375,0.2) circle (0.075*\vexxscale); |
| 244 |
\draw [line width=0.125*\vexyscale,line cap=round] |
| 245 |
(0.49375,0.381) .. controls +(0,0.25) and +(0,-0.12) .. (0.64125,0.70) |
| 246 |
.. controls +(0,0.09) and +(0.05,0) .. (0.50625,0.8125) |
| 247 |
.. controls +(-0.09,0) and +(0,0.065) .. (0.35625,0.702); |
| 248 |
\end{tikzpicture}} |
| 249 |
\newcommand*{\vexnorotating}{% |
| 250 |
\begin{tikzpicture}[x=\vexxscale,y=\vexyscale,line cap=rect] |
| 251 |
%\draw (2,1) -- (0,1) -- (0,0) -- (1,0) -- (1,1); |
| 252 |
\draw (2.125,1.25) -- (-0.125,1.25) -- (-0.125,-0.25) |
| 253 |
-- (1.125,-0.25) -- (1.125,1.25); |
| 254 |
\end{tikzpicture}} |
| 255 |
\newcommand*{\vexunauthorized}{% |
| 256 |
\begin{tikzpicture}[x=\vexxscale,y=\vexyscale] |
| 257 |
\draw (0,-0.4) -- (0,1) -- (2,1) -- (2,0) -- (0,0); |
| 258 |
\draw (0.5,-0.2) -- (1.5,1.2); |
| 259 |
\draw (1.5,-0.2) -- (0.5,1.2); |
| 260 |
\end{tikzpicture}} |
| 261 |
\newcommand*{\vexonlyvertical}{% |
| 262 |
\begin{tikzpicture}[x=\vexxscale,y=\vexyscale] |
| 263 |
\draw (0,0) rectangle (1.5,1.5); |
| 264 |
\draw (0.75,0) -- ++(0,-0.4); |
| 265 |
\draw (0.75,1.5) -- ++(0,0.2); |
| 266 |
\end{tikzpicture}} |
| 267 |
\newcommand*{\vexauthorized}{% |
| 268 |
\begin{tikzpicture}[x=\vexxscale,y=\vexyscale] |
| 269 |
\draw (0,0) circle (0.75); |
| 270 |
\draw (0,0) ellipse (0.25 and 0.375); |
| 271 |
\end{tikzpicture}} |
| 272 |
\endinput |
| 273 |
%% |
| 274 |
%% End of file `vexillology.sty'. |