summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/wargame/source/wargame.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/wargame/source/wargame.dtx')
-rw-r--r--macros/latex/contrib/wargame/source/wargame.dtx170
1 files changed, 162 insertions, 8 deletions
diff --git a/macros/latex/contrib/wargame/source/wargame.dtx b/macros/latex/contrib/wargame/source/wargame.dtx
index e8a3b9b1e1..6c568db5f2 100644
--- a/macros/latex/contrib/wargame/source/wargame.dtx
+++ b/macros/latex/contrib/wargame/source/wargame.dtx
@@ -473,6 +473,12 @@
% \item[\spec{code=}\meta{tikz-code}] Any valid \TikZ{} code
% \item[\spec{clip=}\meta{path(s)}] \TikZ{} path specification to clip
% the terrain within the hex.
+% \item[\spec{random rotation}] Applies a random rotation to the
+% terrain image or picture. This will create an effect where the
+% hexes look less alike.
+% \item[\spec{rotate}=\meta{angle}] Applies a rotation by \meta{angle}
+% to the terrain image or picture. Note that the \meta{angle}
+% should most likely be multiples of $60^{\circ}$.
% \end{description}
%
% \begin{table}[htbp]
@@ -493,25 +499,31 @@
% & \texttt{}
% & \tikz{\hex[terrain={image=wargame.beach}](r=0,c=0) }
% & Beach
-% & \texttt{\{image=wargame.beach\}}\\
+% & \texttt{\{beach\}}\\
% \tikz{\hex[terrain={image=wargame.light_woods}](r=0,c=0) }
% & Light woods
-% & \texttt{\{image=wargame.light\_woods\}}
+% & \texttt{\{light\_woods\}}
% & \tikz{\hex[terrain={image=wargame.woods}](r=0,c=0)}
% & Woods
-% & \texttt{\{image=wargame.woods\}}\\
+% & \texttt{\{woods\}}\\
% \tikz{\hex[terrain={image=wargame.rough}](r=0,c=0) }
% & Rough
-% & \texttt{\{image=wargame.rough\}}
+% & \texttt{\{rough\}}
% & \tikz{\hex[terrain={image=wargame.swamp}](r=0,c=0) }
% & Swamp
-% & \texttt{\{image=wargame.swamp\}}\\
+% & \texttt{\{swamp\}}\\
% \tikz{\hex[terrain={image=wargame.mountains}](r=0,c=0) }
% & Mountains
-% & \texttt{\{image=wargame.mountains\}}
+% & \texttt{\{mountains\}}
% & \tikz{\hex[fill=blue!40!white](r=0,c=0) }
% & Sea
-% & \texttt{\{image=wargame.sea\}}\\
+% & \texttt{\{sea\}}\\
+% \tikz{\hex[terrain={image=wargame.fields},fill=yellow](r=0,c=0) }
+% & Fields
+% & \texttt{\{fields\},fill=yellow}
+% &\tikz{\hex[terrain={image=wargame.speckle},fill=hostile!25!white](r=0,c=0) }
+% & Fields
+% & \texttt{\{speckle\},fill=hostile}\\
% \hline
% \end{tabular}
% \caption{Terrains specified via tile images}
@@ -1539,6 +1551,148 @@
% \cs{chit}. Note that we \emph{must} give the full path to the
% \spec{chit} keys when defining a style like this.
%
+% \subsection{Kriegspiel chits}
+%
+% By passing the option \texttt{kriegspiel} to the \cs{chit} command
+% or in a \texttt{chit} node, the shape of the chits will be changed
+% from square to rectangular.
+%
+% \paragraph{Important} Not all NATO symbols have been adapted to
+% facilitate that shape.
+%
+% Here are some examples
+%
+% \begin{tikzpicture}[
+% chit/factor/.append style={font=\sffamily\bfseries\small},
+% /chit/.cd,
+% hex/.style={lower right={#1}},
+% turn/.style={lower left={#1}}]
+% \chit[symbol={
+% main=infantry,
+% echelon=corps,
+% faction=friendly,
+% command=land},
+% factors={chit/2 factors={4,3}},
+% parent={chit/small identifier={II}},
+% unique={chit/small identifier={4}},
+% turn={chit/small identifier={2}},
+% hex={chit/small identifier={0120}},
+% kriegspiel,
+% color=black,
+% fill=hostile](0,0);
+% \chit[symbol={
+% main={[fill=pgfstrokecolor]artillery},%
+% echelon=corps,
+% faction=friendly,
+% command=land},
+% factors={chit/2 factors artillery={4,3,2}},
+% parent={chit/small identifier={II}},
+% unique={chit/small identifier={4}},
+% turn={chit/small identifier={2}},
+% hex={chit/small identifier={0120}},
+% kriegspiel,
+% color=black,
+% fill=friendly,
+% kriegspiel
+% ](2.5,0);
+% \chit[
+% frame={black},
+% symbol={
+% main=reconnaissance,
+% echelon=corps,
+% command=land,
+% faction=friendly,
+% color=black,
+% fill=hostile,
+% },
+% factors={chit/2 factors={4,3}},
+% parent={chit/small identifier={II}},
+% unique={chit/small identifier={4}},
+% turn={chit/small identifier={2}},
+% hex={chit/small identifier={0120}},
+% color=white,
+% fill=unknown!50!black,
+% kriegspiel](5,0);
+% \chit[
+% frame={black},
+% symbol={
+% main={reconnaissance artillery},
+% echelon=corps,
+% command=land,
+% faction=friendly,
+% fill=friendly,
+% },
+% factors={chit/2 factors artillery={4,3,2}},
+% parent={chit/small identifier={II}},
+% unique={chit/small identifier={4}},
+% turn={chit/small identifier={2}},
+% color=white,
+% fill=neutral!50!black,
+% kriegspiel](7.5,0);
+% \end{tikzpicture}
+%
+%
+% These are produced by
+%
+% \begin{verbatim}
+% \begin{tikzpicture}[
+% chit/factor/.append style={font=\sffamily\bfseries\small},
+% /chit/.cd,
+% hex/.style={lower right={#1}},
+% turn/.style={lower left={#1}}]
+% \chit[symbol={main=infantry,echelon=corps,faction=friendly,command=land},
+% factors={chit/2 factors={4,3}},
+% parent={chit/small identifier={II}},
+% unique={chit/small identifier={4}},
+% turn={chit/small identifier={2}},
+% hex={chit/small identifier={0120}},
+% kriegspiel,
+% color=black,
+% fill=hostile](0,0);
+% \chit[symbol={
+% main={[fill=pgfstrokecolor]artillery},%
+% echelon=corps,faction=friendly,command=land},
+% factors={chit/2 factors artillery={4,3,2}},
+% parent={chit/small identifier={II}},
+% unique={chit/small identifier={4}},
+% turn={chit/small identifier={2}},
+% hex={chit/small identifier={0120}},
+% kriegspiel,
+% color=black,
+% fill=friendly,
+% kriegspiel
+% ](2.5,0);
+% \chit[
+% frame={black},
+% symbol={
+% main=reconnaissance, echelon=corps,command=land,faction=friendly,
+% color=black,
+% fill=hostile,
+% },
+% factors={chit/2 factors={4,3}},
+% parent={chit/small identifier={II}},
+% unique={chit/small identifier={4}},
+% turn={chit/small identifier={2}},
+% hex={chit/small identifier={0120}},
+% color=white,
+% fill=unknown!50!black,
+% kriegspiel](5,0);
+% \chit[
+% frame={black},
+% symbol={
+% main={reconnaissance artillery},
+% echelon=corps,command=land,faction=friendly,fill=friendly,
+% },
+% factors={chit/2 factors artillery={4,3,2}},
+% parent={chit/small identifier={II}},
+% unique={chit/small identifier={4}},
+% turn={chit/small identifier={2}},
+% color=white,
+% fill=neutral!50!black,
+% kriegspiel](7.5,0);
+% \end{tikzpicture}
+% \end{verbatim}
+%
% \iffalse
% --------------------------------------------------------------------
%
@@ -1650,7 +1804,7 @@
%
% \makeatletter
% \def\tabledata{}
-% \foreach \c in {air,land,equipment,installation,sea surface,sub surface,space,activity}{%
+% \foreach \c in {air,land,equipment,installation,sea surface,sub surface,space,activity,dismounted}{%
% \protected@xappto\tabledata{\spec{\c}}
% \foreach \f in {friendly,hostile,neutral,unknown}{%
% \protected@xappto\tabledata{