Debian Codegraph @

texmf-dist/doc/latex/milsymb/manual_examples/mef.tex

raw
1
2 \definecolor{salmon}{HTML}{F69289} %custom tank symbol colour
3
4 %custom icons
5 \makeatletter
6 \tikzset{
7 MilSymb custom/marine/.pic={
8 \pic{MilSymb land/main/infantry/\MilSymb@selectedfaction};
9 \clip \clipfriendly;
10 \pic[yshift=-10.75]{MilSymb land/main/amphibious/\MilSymb@selectedfaction};
11 },
12 MilSymb custom/tank/.pic={
13 \filldraw[fill=salmon]circle(0.5 and 0.15);
14 },
15 MilSymb custom/reconnaissance tank/.pic={
16 \pic{MilSymb custom/tank};
17 \pic{MilSymb land/main/reconnaissance/\MilSymb@selectedfaction};
18 },
19 MilSymb custom/amphibious tank/.pic={
20 \pic{MilSymb custom/tank};
21 \clip \clipfriendly;
22 \pic[yshift=-10.75]{MilSymb land/main/amphibious/\MilSymb@selectedfaction};
23 }
24 }
25 \makeatother
26
27 \fontsize{6}{0}\selectfont
28
29 \begin{tikzpicture}
30
31 % grid of symbols
32 \node(H) at (7,0){\includegraphics[width=1.5cm]{manual_examples/772px-1st_Marine_Division_insignia}};
33 \node[right of=H, node distance=1.85cm, align=left](HT){1\textsuperscript{st} Marine Division\\ CAMP PENDLETON};
34 \node[above of=H, star,star points=5, star point ratio=0.5, rotate=180, xshift=-3, fill=yellow, draw] {};
35 \node[above of=H, star,star points=5, star point ratio=0.5, rotate=180, xshift=3, fill=yellow, draw] {};
36 \MilLand[scale=0.75, faction=friendly, echelon=regiment, main=marine](3.5, -2)(C11){1\textsuperscript{st} Marine Rgt. \\ CAMP PENDLETON}
37 \MilLand[scale=0.75, faction=friendly, echelon=regiment, main=marine](7, -2)(C21){5\textsuperscript{th} Marine Rgt. \\ CAMP PENDLETON}
38 \MilLand[scale=0.75, faction=friendly, echelon=regiment, main=marine](10.5, -2)(C31){7\textsuperscript{th} Marine Rgt. \\ CAMP PENDLETON}
39 \MilLand[scale=0.75, faction=friendly, echelon=regiment, main=field artillery](14, -2)(C41){11\textsuperscript{th} Marine Rgt. \\ CAMP PENDLETON}
40 \MilLand[scale=0.75, faction=friendly, echelon=battalion, main=headquarters](0, -3)(C02){Headquarters \\ Battalion}
41 \MilLand[scale=0.75, faction=friendly, echelon=company, main=headquarters](3.75, -3)(C12){~\\ HQ Coy.}
42 \MilLand[scale=0.75, faction=friendly, echelon=company, main=headquarters](7.25, -3)(C22){~\\ HQ Coy.}
43 \MilLand[scale=0.75, faction=friendly, echelon=company, main=headquarters](10.75, -3)(C32){~\\ HQ Coy.}
44 \MilLand[scale=0.75, faction=friendly, echelon=company, main=headquarters](14.25, -3)(C42){~\\ HQ Battery}
45 \MilLand[scale=0.75, faction=friendly, echelon=battalion, main=tank](0, -4)(C03){1\textsuperscript{st} Tank \\ Battalion}
46 \MilLand[scale=0.75, faction=friendly, echelon=battalion, main=marine](3.75, -4)(C13){1\textsuperscript{st} Btn. \\ 1\textsuperscript{st} Marines}
47 \MilLand[scale=0.75, faction=friendly, echelon=battalion, main=marine](7.25, -4)(C23){1\textsuperscript{st} Btn. \\ 5\textsuperscript{th} Marines}
48 \MilLand[scale=0.75, faction=friendly, echelon=battalion, main=marine](10.75, -4)(C33){1\textsuperscript{st} Btn. \\ 7\textsuperscript{th} Marines}
49 \MilLand[scale=0.75, faction=friendly, echelon=battalion, main=field artillery](14.25, -4)(C43){1\textsuperscript{st} Btn. \\ 11\textsuperscript{th} Marines}
50 \MilLand[scale=0.75, faction=friendly, echelon=battalion, main=reconnaissance tank, lower=wheeled](0, -5)(C04){1\textsuperscript{st} Light Armoured \\ Reconnaissance Btn.}
51 \MilLand[scale=0.75, faction=friendly, echelon=battalion, main=marine](3.75, -5)(C14){2\textsuperscript{nd} Btn. \\ 1\textsuperscript{st} Marines}
52 \MilLand[scale=0.75, faction=friendly, echelon=battalion, main=marine](7.25, -5)(C24){2\textsuperscript{nd} Btn. \\ 5\textsuperscript{th} Marines}
53 \MilLand[scale=0.75, faction=friendly, echelon=battalion, main=marine](10.75, -5)(C34){2\textsuperscript{nd} Btn. \\ 7\textsuperscript{th} Marines}
54 \MilLand[scale=0.75, faction=friendly, echelon=battalion, main=field artillery](14.25, -5)(C44){2\textsuperscript{nd} Btn. \\ 11\textsuperscript{th} Marines}
55 \MilLand[scale=0.75, faction=friendly, echelon=battalion, main=reconnaissance tank, lower=wheeled](0, -6)(C05){3\textsuperscript{rd} Light Armoured \\ Reconnaissance Btn.}
56 \MilLand[scale=0.75, faction=friendly, echelon=battalion, main=marine](3.75, -6)(C15){3\textsuperscript{rd} Btn. \\ 1\textsuperscript{st} Marines}
57 \MilLand[scale=0.75, faction=friendly, echelon=battalion, main=marine](7.25, -6)(C25){3\textsuperscript{rd} Btn. \\ 5\textsuperscript{th} Marines}
58 \MilLand[scale=0.75, faction=friendly, echelon=battalion, main=marine](10.75, -6)(C35){3\textsuperscript{rd} Btn. \\ 7\textsuperscript{th} Marines}
59 \MilLand[scale=0.75, faction=friendly, echelon=battalion, main=field artillery](14.25, -6)(C45){3\textsuperscript{rd} Btn. \\ 11\textsuperscript{th} Marines}
60 \MilLand[scale=0.75, faction=friendly, echelon=battalion, main=reconnaissance](0, -7)(C06){1\textsuperscript{st} Reconnaissance \\ Battalion}
61 \MilLand[scale=0.75, faction=friendly, echelon=battalion, main=marine](3.75, -7)(C16){1\textsuperscript{st} Btn. \\ 4\textsuperscript{th} Marines}
62 \MilLand[scale=0.75, faction=friendly, echelon=battalion, main=marine](7.25, -7)(C26){2\textsuperscript{nd} Btn. \\ 4\textsuperscript{th} Marines}
63 \MilLand[scale=0.75, faction=friendly, echelon=battalion, main=marine](10.75, -7)(C36){3\textsuperscript{rd} Btn. \\ 4\textsuperscript{th} Marines}
64 \MilLand[scale=0.75, faction=friendly, echelon=battalion, main=field artillery, upper=multiple rocket launcher, lower=wheeled](14.25, -7)(C46){5\textsuperscript{rd} Btn. 11\textsuperscript{th} Marines}
65 \MilLand[scale=0.75, faction=friendly, echelon=battalion, main=engineer](0, -8)(C07){1\textsuperscript{st} Combat \\ Engineer Battalion}
66 \MilLand[scale=0.75, faction=friendly, echelon=battalion, main=engineer](0, -9)(C08){3\textsuperscript{rd} Combat \\ Engineer Battalion}
67 \MilLand[scale=0.75, faction=friendly, echelon=battalion, main=amphibious tank](0, -10)(C09){3\textsuperscript{rd} Assault \\ Amphibian Battalion}
68
69 %connecting lines
70 \draw [shorten >=0.25cm] (H.south) |- ($(H.south)!0.5!(C11.north)$) -| (C11.north);
71 \draw [shorten >=0.25cm] (H.south) |- ($(H.south)!0.5!(C11.north)$) -| (C21.north);
72 \draw [shorten >=0.25cm] (H.south) |- ($(H.south)!0.5!(C11.north)$) -| (C31.north);
73 \draw [shorten >=0.25cm] (H.south) |- ($(H.south)!0.5!(C11.north)$) -| (C41.north);
74 \draw (H.south) |- ($(H.south)!0.5!(C11.north)$) -| ($(C02.west)+(-0.25, 0)$) -| (C02.west);
75
76 \draw (C11.south west) |- (C12.west);
77 \draw (C11.south west) |- (C13.west);
78 \draw (C11.south west) |- (C14.west);
79 \draw (C11.south west) |- (C15.west);
80 \draw (C11.south west) |- (C16.west);
81
82 \draw (C21.south west) |- (C22.west);
83 \draw (C21.south west) |- (C23.west);
84 \draw (C21.south west) |- (C24.west);
85 \draw (C21.south west) |- (C25.west);
86 \draw (C21.south west) |- (C26.west);
87
88 \draw (C31.south west) |- (C32.west);
89 \draw (C31.south west) |- (C33.west);
90 \draw (C31.south west) |- (C34.west);
91 \draw (C31.south west) |- (C35.west);
92 \draw (C31.south west) |- (C36.west);
93
94 \draw (C41.south west) |- (C42.west);
95 \draw (C41.south west) |- (C43.west);
96 \draw (C41.south west) |- (C44.west);
97 \draw (C41.south west) |- (C45.west);
98 \draw (C41.south west) |- (C46.west);
99
100 \draw (C02.west) -| ($(C02.west)+(-0.25, 0)$) |- (C03.west);
101 \draw (C03.west) -| ($(C02.west)+(-0.25, 0)$) |- (C04.west);
102 \draw (C04.west) -| ($(C02.west)+(-0.25, 0)$) |- (C05.west);
103 \draw (C05.west) -| ($(C02.west)+(-0.25, 0)$) |- (C06.west);
104 \draw (C06.west) -| ($(C02.west)+(-0.25, 0)$) |- (C07.west);
105 \draw (C07.west) -| ($(C02.west)+(-0.25, 0)$) |- (C08.west);
106 \draw (C08.west) -| ($(C02.west)+(-0.25, 0)$) |- (C09.west);
107
108 \end{tikzpicture}