summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/wargame/source/package.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/wargame/source/package.dtx')
-rw-r--r--macros/latex/contrib/wargame/source/package.dtx48
1 files changed, 48 insertions, 0 deletions
diff --git a/macros/latex/contrib/wargame/source/package.dtx b/macros/latex/contrib/wargame/source/package.dtx
new file mode 100644
index 0000000000..908be36b32
--- /dev/null
+++ b/macros/latex/contrib/wargame/source/package.dtx
@@ -0,0 +1,48 @@
+% \subsection{The \texttt{wargame} package}
+% \label{sec:impl:sty}
+%
+% \iffalse
+%<*package>
+% \fi
+%
+% First, package identification
+%
+% \begin{macrocode}
+\ProvidesPackage{wargame}
+% \end{macrocode}
+%
+% Then needed packages
+%
+% \begin{macrocode}
+\RequirePackage[svgnames]{xcolor}
+\RequirePackage{tikz}
+% \end{macrocode}
+%
+% A switch to include terrain pictures (which take a lot of memory for
+% some reason).
+%
+% \begin{macrocode}
+\@ifundefined{ifhex@terrain@pic}{%
+ \newif\ifhex@terrain@pic
+ \hex@terrain@picfalse}{}
+% \end{macrocode}
+%
+% Options
+%
+% \begin{macrocode}
+\DeclareOption{noterrainpic}{%
+ \hex@terrain@picfalse}
+\DeclareOption{terrainpic}{%
+ \hex@terrain@pictrue}
+\ProcessOptions\relax
+% \end{macrocode}
+%
+% Finally, the used \TikZ{} libraries
+%
+% \begin{macrocode}
+\usetikzlibrary{wargame.hex,wargame.natoapp6c,wargame.chit}
+% \end{macrocode}
+%
+% \iffalse
+%</package>
+% \fi