| 1 |
% \iffalse |
| 2 |
% -------------------------------------------------------------------- |
| 3 |
%<*natoapp6c> |
| 4 |
% \fi |
| 5 |
%\subsubsection{Text on symbols} |
| 6 |
% |
| 7 |
% \begin{TikzKey}{/tikz/natoapp6c/normal text, |
| 8 |
% /tikz/natoapp6c/squashed text, |
| 9 |
% /tikz/natoapp6c/small text, |
| 10 |
% /tikz/natoapp6c/small squashed text} |
| 11 |
% |
| 12 |
% NATO App6 does not specify any particular font for text symbols |
| 13 |
% (main, modifiers, or amplifiers) but here we choose to use \TeX{} |
| 14 |
% Gyro Heros (a Gothic font, i.e., Helvetica-like). |
| 15 |
% |
| 16 |
% \begin{macrocode} |
| 17 |
\newcommand\n@to@ppfont[2][b]{% |
| 18 |
\fontencoding{T1}\fontfamily{qhv}\fontseries{#1}\fontsize{#2}{0}\selectfont} |
| 19 |
\tikzset{% |
| 20 |
natoapp6c/text/.style={% |
| 21 |
shape=rectangle,% |
| 22 |
draw=none,% |
| 23 |
fill=none,% |
| 24 |
transform shape,% |
| 25 |
anchor=center}, |
| 26 |
natoapp6c/normal text/.style={font=\n@to@ppfont{12}}, |
| 27 |
natoapp6c/squashed text/.style={font=\n@to@ppfont[bc]{12}}, |
| 28 |
natoapp6c/small text/.style={font=\n@to@ppfont{10}}, |
| 29 |
natoapp6c/squashed small text/.style={font=\n@to@ppfont[bc]{10}}, |
| 30 |
} |
| 31 |
% \end{macrocode} |
| 32 |
% \end{TikzKey} |
| 33 |
% |
| 34 |
% \begin{Macro}{\n@to@pp@text@normal, |
| 35 |
% \n@to@pp@text@squashed, |
| 36 |
% \n@to@pp@text@small, |
| 37 |
% \n@to@pp@text@smallsquashed} |
| 38 |
% |
| 39 |
% These macros are short-hands for making a node at $(0,0)$ in the |
| 40 |
% local scope. |
| 41 |
% |
| 42 |
% \begin{macrocode} |
| 43 |
\newcommand\n@to@pp@text@normal[2][] {% |
| 44 |
\node[natoapp6c/text,natoapp6c/normal text,#1]{#2}} |
| 45 |
\newcommand\n@to@pp@text@squashed[2][]{% |
| 46 |
\node[natoapp6c/text,natoapp6c/squashed text,#1]{#2}} |
| 47 |
\newcommand\n@to@pp@text@small[2][] {% |
| 48 |
\node[natoapp6c/text,natoapp6c/small text,#1]{#2}} |
| 49 |
\newcommand\n@to@pp@text@smallsquashed[2][]{% |
| 50 |
\node[natoapp6c/text,natoapp6c/squashed small text,#1]{#2}} |
| 51 |
% \end{macrocode} |
| 52 |
% \end{Macro} |
| 53 |
% |
| 54 |
% \iffalse |
| 55 |
% </natoapp6c> |
| 56 |
% -------------------------------------------------------------------- |
| 57 |
% \fi |