diff options
author | Norbert Preining <norbert@preining.info> | 2022-09-25 03:00:53 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-09-25 03:00:53 +0000 |
commit | ce8083552e0d948bf495e72d5c4d2680b505c90b (patch) | |
tree | 6c741e76b2a9e41d5c1b57a15ffa28d74c5317d8 /macros/latex/contrib/wargame/source/tests/map.dtx | |
parent | 41d1be12f4963b0f5bf9903116883f1458b58960 (diff) |
CTAN sync 202209250300
Diffstat (limited to 'macros/latex/contrib/wargame/source/tests/map.dtx')
-rw-r--r-- | macros/latex/contrib/wargame/source/tests/map.dtx | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/macros/latex/contrib/wargame/source/tests/map.dtx b/macros/latex/contrib/wargame/source/tests/map.dtx new file mode 100644 index 0000000000..e685aa6179 --- /dev/null +++ b/macros/latex/contrib/wargame/source/tests/map.dtx @@ -0,0 +1,57 @@ +% \section{A test map} +% +% \iffalse +%<*testmap> +% \fi +% \begin{Macro}{\testmap} +% +% A map for testing stuff +% +% \begin{macrocode} +\def\testmap{ + \hex[] (r=0,c=0) + \hex[] (r=0,c=1) + \hex[] (r=0,c=2) + \hex[] (r=0,c=3) + \hex[] (r=1,c=0) + \hex[town={pic=hex/town/city,name=London,font=\noexpand\bfseries}] (r=1,c=1) + \hex[terrain={woods}] (r=1,c=2) + \hex[] (r=1,c=3) + \hex[] (r=2,c=0) + \hex[] (r=2,c=1) + \hex[town={name=Oxford,red}] (r=2,c=2) + \hex[] (r=2,c=3) + \hex[] (r=3,c=0) + \hex[town={name=Cambridge}] (r=3,c=1) + \hex[] (r=3,c=2) + \hex[] (r=3,c=3) + \river + (hex cs:r=0,c=0,v=north west)-- + (hex cs:r=0,c=0,v=north east)-- + (hex cs:r=1,c=1,v=north west)-- + (hex cs:r=2,c=1,v=west)-- + (hex cs:r=2,c=1,v=north west)-- + (hex cs:r=2,c=1,v=north east)-- + (hex cs:r=3,c=1,v=east)-- + (hex cs:r=2,c=2,v=north east)-- + (hex cs:r=3,c=3,v=north west); + \river + (hex cs:r=2,c=0,v=east)-- + (hex cs:r=2,c=0,v=north east); + \border[dashed,line width=3pt,red] + (hex cs:r=0,c=3,v=west)-- + (hex cs:r=0,c=3,v=north west)-- + (hex cs:r=1,c=3,v=west)-- + (hex cs:r=1,c=3,v=north west)-- + (hex cs:r=1,c=3,v=north east); + \road (hex cs:r=0,c=0,e=S)--(hex cs:r=0,c=0)--(hex cs:r=1,c=1); + \road (hex cs:r=1,c=1)--(hex cs:r=0,c=2)--(hex cs:r=1,c=3); + \road (hex cs:r=1,c=1)--(hex cs:r=2,c=1)--(hex cs:r=2,c=2); + \road (hex cs:r=1,c=3)--(hex cs:r=1,c=4); + \railroad (hex cs:r=2,c=2)--(hex cs:r=3,c=2)--(hex cs:r=4,c=3); +} +% \end{macrocode} +% \end{Macro} +% \iffalse +%</testmap> +% \fi |