summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/wargame/source/package.dtx
blob: 908be36b324dc6bce7a02ed85068df34ba1d891d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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