diff options
Diffstat (limited to 'macros/latex/contrib/wargame/source/hex/core.dtx')
-rw-r--r-- | macros/latex/contrib/wargame/source/hex/core.dtx | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/macros/latex/contrib/wargame/source/hex/core.dtx b/macros/latex/contrib/wargame/source/hex/core.dtx new file mode 100644 index 0000000000..1847ad42c8 --- /dev/null +++ b/macros/latex/contrib/wargame/source/hex/core.dtx @@ -0,0 +1,94 @@ +% \iffalse +% ==================================================================== +% \fi +% +% \subsection{The \texttt{wargame.hex} \TikZ{} library} +% \label{sec:impl:hex} +% +% \iffalse +%<*hex> +% \fi +% +% Used \TikZ{} libraries +% +% \begin{macrocode} +\RequirePackage{alphalph} +\usetikzlibrary{calc} +\usetikzlibrary{arrows.meta} +\usetikzlibrary{arrows} +\usetikzlibrary{shapes.geometric} +\usetikzlibrary{shapes.symbols} +\usetikzlibrary{shapes.arrows} +\usetikzlibrary{decorations} +\usetikzlibrary{decorations.pathmorphing} +\usetikzlibrary{decorations.pathreplacing} +\usetikzlibrary{decorations.markings} +\usetikzlibrary{wargame.util} +% \end{macrocode} +% +% +% \begin{Macro}{\@ifempty} +% +% This is a utility macro we will use below. +% +% \begin{macrocode} +\def\@ifempty#1{\def\temp{#1}\ifx\temp\@empty} +% \end{macrocode} +% \end{Macro} +% +% \iffalse +% -------------------------------------------------------------------- +% \fi +% +% \subsubsection{Debugging} +% +% The counter \cs{hexdbglvl} sets the debug level, and the macro +% \cs{hex@dbg} prints out (conditionally) debug messages. +% +% \begin{Macro}{\hexdbglvl,\hex@dbg} +% \begin{macrocode} +\newcount\hexdbglvl\hexdbglvl=\wargamedbglvl +\def\hex@dbg#1#2{% + \ifnum#1>\hexdbglvl\relax\else\message{^^J#2}\fi} +% \end{macrocode} +% \end{Macro} +% +% \iffalse +% -------------------------------------------------------------------- +% \fi +% \subsubsection{Suppress terrain pictures} +% +% \begin{macrocode} +\@ifundefined{ifhex@terrain@pic}{% + \newif\ifhex@terrain@pic + \hex@terrain@pictrue}{} +% \end{macrocode} +% +% \iffalse +% -------------------------------------------------------------------- +% \fi +% +% \input{hex/coord.dtx} +% \input{hex/shape.dtx} +% \input{hex/terrain.dtx} +% \input{hex/terrain/beach.dtx} +% \input{hex/terrain/light_woods.dtx} +% \input{hex/terrain/woods.dtx} +% \input{hex/terrain/swamp.dtx} +% \input{hex/terrain/rough.dtx} +% \input{hex/terrain/mountains.dtx} +% \input{hex/terrain/village.dtx} +% \input{hex/terrain/town.dtx} +% \input{hex/terrain/city.dtx} +% \input{hex/terrain/mountain.dtx} +% \input{hex/terrain/tree.dtx} +% \input{hex/ridges.dtx} +% \input{hex/towns.dtx} +% \input{hex/labels.dtx} +% \input{hex/extra.dtx} +% \input{hex/paths.dtx} +% \input{hex/board.dtx} +% \iffalse +%</hex> +% \fi +%
\ No newline at end of file |