%% %% This is file `vexillology.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% vexillology.dtx (with options: `package') %% %% This is a generated file. %% %% Copyright (C) 2026 by Karl D. Hammond %% %% Karl D. Hammond, %% Contact: kaiserkarl31 at yahoo.com %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 %% of this license or (at your option) any later version. %% The latest version of this license is in %% http://www.latex-project.org/lppl.txt %% and version 1.3 or later is part of all distributions of LaTeX %% version 2005/12/01 or later. \NeedsTeXFormat{LaTeX2e} \RequirePackage{tikz} \ProvidesPackage{vexillology} [2026/01/15 v1.0.0 vexillogical symbols] \newif\ifvexallextended \DeclareOption{extended}{\vexallextendedtrue} \ProcessOptions \RequirePackage{tikz} \usetikzlibrary{arrows.meta} \newcommand*{\vexxscale}{0.8ex} \newcommand*{\vexyscale}{0.8ex} \newcommand*{\vexgrid}{% \draw (0,0) -- (3,0) (1,-1) -- (1,1) (2,-1) -- (2,1); } \newcommand*{\vexgridextended}{% \draw (0,0) -- (3,0) (0,1) -- (3,1) (1,-1) -- (1,2) (2,-1) -- (2,2); } \newcommand*{\vexdotone}{% \fill (0.5,0.5) circle (0.35); } \newcommand*{\vexdottwo}{% \fill (1.5,0.5) circle (0.35); } \newcommand*{\vexdotthree}{% \fill (2.5,0.5) circle (0.35); } \newcommand*{\vexdotfour}{% \fill (0.5,-0.5) circle (0.35); } \newcommand*{\vexdotfive}{% \fill (1.5,-0.5) circle (0.35); } \newcommand*{\vexdotsix}{% \fill (2.5,-0.5) circle (0.35); } \newcommand*{\vexdotseven}{% \fill (0.5,1.5) circle (0.35); } \newcommand*{\vexdoteight}{% \fill (1.5,1.5) circle (0.35); } \newcommand*{\vexdotnine}{% \fill (2.5,1.5) circle (0.35); } \NewDocumentCommand{\vexusage}{s m}{% \begin{tikzpicture}[x=\vexxscale,y=\vexyscale] \IfBooleanTF {#1} {\vexgridextended} { \ifvexallextended \vexgridextended \else \pgfmathparse{int(#2)} \ifnum\pgfmathresult>63\relax \vexgridextended \else \vexgrid \fi \fi } \pgfmathparse{int(mod(#2,2))} \ifnum\pgfmathresult=1\relax \vexdotone \fi \pgfmathparse{int(mod(div(#2,2),2))} \ifnum\pgfmathresult=1\relax \vexdottwo \fi \pgfmathparse{int(mod(div(#2,4),2))} \ifnum\pgfmathresult=1\relax \vexdotthree \fi \pgfmathparse{int(mod(div(#2,8),2))} \ifnum\pgfmathresult=1\relax \vexdotfour \fi \pgfmathparse{int(mod(div(#2,16),2))} \ifnum\pgfmathresult=1\relax \vexdotfive \fi \pgfmathparse{int(mod(div(#2,32),2))} \ifnum\pgfmathresult=1\relax \vexdotsix \fi \pgfmathparse{int(mod(div(#2,64),2))} \ifnum\pgfmathresult=1\relax \vexdotseven \fi \pgfmathparse{int(mod(div(#2,128),2))} \ifnum\pgfmathresult=1\relax \vexdoteight \fi \pgfmathparse{int(mod(div(#2,256),2))} \ifnum\pgfmathresult=1\relax \vexdotnine \fi \end{tikzpicture}} \newcommand*{\vexcivilflag}{1} \newcommand*{\vexstateflag}{2} \newcommand*{\vexwarflag}{4} \newcommand*{\vexcivilensign}{8} \newcommand*{\vexstateensign}{16} \newcommand*{\vexwarensign}{32} \newcommand*{\vexcivilairensign}{64} \newcommand*{\vexstateairensign}{128} \newcommand*{\vexwarairensign}{256} \newcommand*{\vexnationalflag}{7} \newcommand*{\vexnationalensign}{56} \newcommand*{\vexnationalflagandensign}{63} \newcommand*{\vexnationaleverything}{511} \newcommand*{\vexnormal}{% \begin{tikzpicture}[x=\vexxscale,y=\vexyscale] \draw (0,-0.4) -- (0,1) -- (2,1) -- (2,0) -- (0,0); \end{tikzpicture}} \newcommand*{\vexproposed}{% \begin{tikzpicture}[x=\vexxscale,y=\vexyscale] \draw (0,-0.4) -- (0,1) -- (2,1) (2,0) -- (0,0); \end{tikzpicture}} \newcommand*{\vexreconstruction}{% \begin{tikzpicture}[x=\vexxscale,y=\vexyscale] \draw (0,-0.4) -- (0,1) -- (2,1) -- (2,0) -- (0,0); \fill (0.9875,0.2) circle (0.075*\vexxscale); \draw [line width=0.125*\vexyscale,line cap=round] (0.9875,0.381) .. controls +(0,0.25) and +(0,-0.12) .. (1.125,0.70) .. controls +(0,0.09) and +(0.05,0) .. (1,0.8125) .. controls +(-0.09,0) and +(0,0.065) .. (0.85,0.702); \end{tikzpicture}} \newcommand*{\vexreverse}{% \begin{tikzpicture}[x=\vexxscale,y=\vexyscale] \draw (0,-0.4) -- (0,1) -- (2,1) -- (2,0) -- (0,0); \draw [-{Straight Barb[length=0.25ex,width=0.25ex]}] (1,0.5) -- (2.75,0.5); \end{tikzpicture}} \newcommand*{\vexvariant}{% \begin{tikzpicture}[x=\vexxscale,y=\vexyscale] \draw (0,-0.4) -- (0,1) -- (2,1) -- (2,0) -- (0,0); \draw (-0.2,-0.5) .. controls +(-0.4,0.3) and +(-0.4,-0.3) .. (-0.2,1.1); \draw (2.2,-0.5) .. controls +(0.4,0.3) and +(0.4,-0.3) .. (2.2,1.1); \end{tikzpicture}} \newcommand*{\vexalternative}{% \begin{tikzpicture}[x=\vexxscale,y=\vexyscale] %\draw[green] (0,-0.4) -- (0,1) -- (2,1) -- (2,0) -- (0,0); \draw (0,-0.4) -- (0,1) -- (2,1) -- (2,0.5) (0.5,0) -- (0,0); \draw [xshift=0.4ex,yshift=-0.4ex] (0,-0.4) -- (0,1) -- (2,1) -- (2,0) -- (0,0); \end{tikzpicture}} \newcommand*{\vexdefacto}{% \begin{tikzpicture}[x=\vexxscale,y=\vexyscale] \draw (0,-0.4) -- (0,1) -- (2,1) -- (2,0) -- (0,0); \draw (0.5,-0.2) -- (1.5,1.2); \end{tikzpicture}} \newcommand*{\vexreverseisdifferent}{% \begin{tikzpicture}[x=\vexxscale,y=\vexyscale, >={Straight Barb[length=0.25ex,width=0.25ex]}] \draw [->] (0,0) -- (2,0); \draw [->] (1.5,0.5) -- (-0.5,0.5); \draw (0.25,-0.5) -- (1.25,1); \end{tikzpicture}} \newcommand*{\vexsinisterhoist}{% \begin{tikzpicture}[x=\vexxscale,y=\vexyscale] \draw (0,0) -- (0,1) -- (2,1) -- (2,-0.4) -- (2,0) -- cycle; \end{tikzpicture}} \newcommand*{\vexhistorical}{% \begin{tikzpicture}[x=\vexxscale,y=\vexyscale,line cap=rect] \draw (0,-0.4) -- (0,1) -- (1.2,1) -- (0.6,0) -- (0,0); \draw (2,-0.4) -- (2,0.7) -- (1.5,0.7) -- (0.8,-0.4) -- cycle; \end{tikzpicture}} \newcommand*{\vexreverseismirror}{% \begin{tikzpicture}[x=\vexxscale,y=\vexyscale,line cap=rect, >={Straight Barb[length=0.25ex,width=0.35ex]}] \draw (2,-0.5) -- (2,1) -- (0,1) -- (0,0) -- (2,0); \draw [->] (0.25,-0.125) .. controls +(0.25,-0.20) and +(-0.25,0) .. (1.75,-0.25); \draw [line cap=round] (0.75,0.15) -- ++(0.25,0.35) (1.25,0.15) -- (1.25,0.85) -- (0.85,0.85) .. controls (0.70,0.8) and (0.70,0.6) .. (0.85,0.5) -- (1.25,0.5); \end{tikzpicture}} \newcommand*{\vexreverseiscongruent}{% \begin{tikzpicture}[x=\vexxscale,y=\vexyscale,line cap=rect, >={Straight Barb[length=0.25ex,width=0.35ex]}] \draw (2,-0.5) -- (2,1) -- (0,1) -- (0,0) -- (2,0); \draw [->] (0.25,-0.125) .. controls +(0.25,-0.20) and +(-0.25,0) .. (1.75,-0.25); \draw (1.25,0.15) -- (0.75,0.15) -- (0.75,0.85) -- (1.25,0.85) (0.75,0.5) -- (1.15,0.5); \end{tikzpicture}} \newcommand*{\vexnormalvertical}{% \begin{tikzpicture}[x=\vexxscale,y=\vexyscale,line cap=rect] \draw (2.125,1.25) -- (-0.125,1.25) -- (-0.125,-0.25) -- (1.125,-0.25) -- (1.125,1.25); \begin{scope} \clip (0.1,0.1) rectangle (0.9,0.9); \draw (0.85,0.15) -- (0.15,0.15) -- (0.85,0.85) -- (0.15,0.85); \end{scope} \end{tikzpicture}} \newcommand*{\vexobversevertical}{% \begin{tikzpicture}[x=\vexxscale,y=\vexyscale,line cap=rect] \draw (-0.125,1.25) -- (-0.125,-0.25) -- (1.125,-0.25) -- (1.125,1.25) -- (-1.125,1.25); \begin{scope} \clip (0.1,0.1) rectangle (0.9,0.9); \draw (0.85,0.15) -- (0.15,0.15) -- (0.85,0.85) -- (0.15,0.85); \end{scope} \end{tikzpicture}} \newcommand*{\vexrotatevertical}{% \begin{tikzpicture}[x=\vexxscale,y=\vexyscale,line cap=rect] \draw (2.125,1.25) -- (-0.125,1.25) -- (-0.125,-0.25) -- (1.125,-0.25) -- (1.125,1.25); \draw [line cap=round] (0.20,0.1) -- (0.20,0.9) -- (0.75,0.9) .. controls (0.90,0.7625) and (0.90,0.5875) .. (0.75,0.5) -- (0.20,0.5) (0.55,0.5) -- (0.82,0.1); \end{tikzpicture}} \newcommand*{\vexunknownvertical}{% \begin{tikzpicture}[x=\vexxscale,y=\vexyscale,line cap=rect] \draw (2.125,1.25) -- (-0.125,1.25) -- (-0.125,-0.25) -- (1.125,-0.25) -- (1.125,1.25); \fill (0.49375,0.2) circle (0.075*\vexxscale); \draw [line width=0.125*\vexyscale,line cap=round] (0.49375,0.381) .. controls +(0,0.25) and +(0,-0.12) .. (0.64125,0.70) .. controls +(0,0.09) and +(0.05,0) .. (0.50625,0.8125) .. controls +(-0.09,0) and +(0,0.065) .. (0.35625,0.702); \end{tikzpicture}} \newcommand*{\vexnorotating}{% \begin{tikzpicture}[x=\vexxscale,y=\vexyscale,line cap=rect] %\draw (2,1) -- (0,1) -- (0,0) -- (1,0) -- (1,1); \draw (2.125,1.25) -- (-0.125,1.25) -- (-0.125,-0.25) -- (1.125,-0.25) -- (1.125,1.25); \end{tikzpicture}} \newcommand*{\vexunauthorized}{% \begin{tikzpicture}[x=\vexxscale,y=\vexyscale] \draw (0,-0.4) -- (0,1) -- (2,1) -- (2,0) -- (0,0); \draw (0.5,-0.2) -- (1.5,1.2); \draw (1.5,-0.2) -- (0.5,1.2); \end{tikzpicture}} \newcommand*{\vexonlyvertical}{% \begin{tikzpicture}[x=\vexxscale,y=\vexyscale] \draw (0,0) rectangle (1.5,1.5); \draw (0.75,0) -- ++(0,-0.4); \draw (0.75,1.5) -- ++(0,0.2); \end{tikzpicture}} \newcommand*{\vexauthorized}{% \begin{tikzpicture}[x=\vexxscale,y=\vexyscale] \draw (0,0) circle (0.75); \draw (0,0) ellipse (0.25 and 0.375); \end{tikzpicture}} \endinput %% %% End of file `vexillology.sty'.