| 1 |
% \iffalse |
| 2 |
% -------------------------------------------------------------------- |
| 3 |
%<*natoapp6c> |
| 4 |
% \fi |
| 5 |
% \subsubsection{Utility macros used in the symbols} |
| 6 |
% |
| 7 |
% Here, we define the main symbols used when making markers. Since |
| 8 |
% some of these symbols share code, we will create some regular \TeX{} |
| 9 |
% macros to hold the path definitions. This is by far the simplest |
| 10 |
% way of storing just the path specifications. |
| 11 |
% |
| 12 |
% \begin{Macro}{\testpath} |
| 13 |
% \begin{macrocode} |
| 14 |
\def\testpath#1{\csname n@toapp@#1\endcsname} |
| 15 |
% \end{macrocode} |
| 16 |
% \end{Macro} |
| 17 |
% |
| 18 |
% Corps support for \spec{friendly}, \spec{hostile}, |
| 19 |
% \spec{neutral}, and \spec{unknown} factions. |
| 20 |
% |
| 21 |
% \begin{Macro}{\n@toapp@corps@sup@friendly, |
| 22 |
% \n@toapp@corps@sup@hostile, |
| 23 |
% \n@toapp@corps@sup@neutral, |
| 24 |
% \n@toapp@corps@sup@unknown} |
| 25 |
% \begin{macrocode} |
| 26 |
\def\n@toapp@corps@sup@friendly{(.75,.5)--(.5,0)--(.75,-.5)} |
| 27 |
% (M.north east)--(M.east-.25,0)--(M.south east)} |
| 28 |
\def\n@toapp@corps@sup@hostile{(.95,.5)--(.45,0)--(.95,-.5)} |
| 29 |
\def\n@toapp@corps@sup@neutral{(.5,.5)--(.35,0)--(.5,-.5)} |
| 30 |
\def\n@toapp@corps@sup@unknown{(.75,.5)--(.5,0)--(.75,-.5)} |
| 31 |
% \end{macrocode} |
| 32 |
% \end{Macro} |
| 33 |
% |
| 34 |
% Corps support, base |
| 35 |
% |
| 36 |
% \begin{Macro}{\n@toapp@corps@support} |
| 37 |
% \begin{macrocode} |
| 38 |
\def\n@toapp@corps@support#1{ |
| 39 |
\ifx\n@to@pp@friendly#1\n@toapp@corps@sup@friendly% |
| 40 |
\else\ifx\n@to@pp@hostile#1\n@toapp@corps@sup@hostile% |
| 41 |
\else\ifx\n@to@pp@neutral#1\n@toapp@corps@sup@neutral% |
| 42 |
\else\ifx\n@to@pp@unknown#1\n@toapp@corps@sup@unknown% |
| 43 |
\fi\fi\fi\fi} |
| 44 |
% \end{macrocode} |
| 45 |
% \end{Macro} |
| 46 |
% |
| 47 |
% \begin{NatoAppSymbol}{natoapp6c/s/TBD} |
| 48 |
% Special placeholder for symbols To Be Done. |
| 49 |
% |
| 50 |
% \begin{macrocode} |
| 51 |
\tikzset{ |
| 52 |
natoapp6c/s/TBD/.pic={\n@to@pp@text@normal{\color{magenta}TBD};} |
| 53 |
} |
| 54 |
% \end{macrocode} |
| 55 |
% \end{NatoAppSymbol} |
| 56 |
% |
| 57 |
% \iffalse |
| 58 |
% </natoapp6c> |
| 59 |
% -------------------------------------------------------------------- |
| 60 |
% \fi |