summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/wargame/source/natoapp6c/util.dtx
blob: 18c7689878c4ee6ca824d57cca81c4bc3064bcb1 (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
49
50
51
52
53
54
55
56
57
58
59
60
% \iffalse
% --------------------------------------------------------------------
%<*natoapp6c>
% \fi
% \subsubsection{Utility macros used in the symbols}
%
% Here, we define the main symbols used when making markers.  Since
% some of these symbols share code, we will create some regular \TeX{}
% macros to hold the path definitions.  This is by far the simplest
% way of storing just the path specifications.
%
% \begin{Macro}{\testpath}
%    \begin{macrocode}
\def\testpath#1{\csname n@toapp@#1\endcsname}
%    \end{macrocode}
% \end{Macro}
%
% Corps support for \spec{friendly}, \spec{hostile},
% \spec{neutral}, and \spec{unknown} factions.
%
% \begin{Macro}{\n@toapp@corps@sup@friendly,
%              \n@toapp@corps@sup@hostile,
%              \n@toapp@corps@sup@neutral,
%              \n@toapp@corps@sup@unknown}
%    \begin{macrocode}
\def\n@toapp@corps@sup@friendly{(.75,.5)--(.5,0)--(.75,-.5)}
% (M.north east)--(M.east-.25,0)--(M.south east)}
\def\n@toapp@corps@sup@hostile{(.95,.5)--(.45,0)--(.95,-.5)}
\def\n@toapp@corps@sup@neutral{(.5,.5)--(.35,0)--(.5,-.5)}
\def\n@toapp@corps@sup@unknown{(.75,.5)--(.5,0)--(.75,-.5)}
%    \end{macrocode}
% \end{Macro}
%
% Corps support, base
%
% \begin{Macro}{\n@toapp@corps@support}
%    \begin{macrocode}
\def\n@toapp@corps@support#1{
  \ifx\n@to@pp@friendly#1\n@toapp@corps@sup@friendly%  
  \else\ifx\n@to@pp@hostile#1\n@toapp@corps@sup@hostile%
  \else\ifx\n@to@pp@neutral#1\n@toapp@corps@sup@neutral%
  \else\ifx\n@to@pp@unknown#1\n@toapp@corps@sup@unknown%
  \fi\fi\fi\fi}
%    \end{macrocode}
% \end{Macro}
%
% \begin{NatoAppSymbol}{natoapp6c/s/TBD}
%   Special placeholder for symbols To Be Done.
%
%    \begin{macrocode}
\tikzset{
  natoapp6c/s/TBD/.pic={\n@to@pp@text@normal{\color{magenta}TBD};}
}
%    \end{macrocode}
% \end{NatoAppSymbol}
%
% \iffalse
% </natoapp6c>
% --------------------------------------------------------------------
% \fi