summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/wargame/source/chit/core.dtx
blob: 7a0189074ebf41756ed6b684e11c9ae16f882fde (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
% \iffalse
% ====================================================================
% \fi
% 
% \subsection{The \texttt{wargame.chit} \TikZ{} library}
% \label{sec:impl:natoapp6c}
%
%   We define the library for making chits.  We load the hex \TikZ{}
%   \spec{wargame.natoapp6c} library and the \textsf{amsmath} and
%   \textsf{amstext} packages as we need those.
%
% \iffalse
%<*chit>
% \fi
%
%    \begin{macrocode}
\RequirePackage{amsmath}
\RequirePackage{amstext}
\usetikzlibrary{wargame.util,wargame.natoapp6c,math}
%    \end{macrocode}
%    
% \iffalse
% --------------------------------------------------------------------
% \fi
% 
% \subsubsection{Debugging}
%
% \begin{Macro}{\chitdbglvl,\chit@dbg}
%   
%   Some macros for debugging.  Similar to what we have in
%   \spec{wargame.hex} (see \sectionname~\ref{sec:impl:hex}.
%  
%    \begin{macrocode}
\newcount\chitdbglvl\chitdbglvl=\wargamedbglvl
\def\chit@dbg#1#2{%
  \ifnum#1>\chitdbglvl\relax\else\message{^^J#2}\fi}
%    \end{macrocode}
% \end{Macro}
%
% \input{chit/shape.dtx}
% \input{chit/elements.dtx}
% \input{chit/misc.dtx}
% 
% \iffalse
%</chit>
% --------------------------------------------------------------------
% \fi