From 3d8bd16355da0402c84dc63cb4e3744daaeb1114 Mon Sep 17 00:00:00 2001 From: Leni Aniva Date: Sun, 13 Aug 2023 19:06:50 -0700 Subject: [PATCH] Rename chapter files and add map stub --- v1-a-wish.tex => i1-a-wish.tex | 0 v2-fantasma.tex => i2-fantasma.tex | 0 magica.sty | 9 +++++++ map.tex | 41 ++++++++++++++++++++++++++++++ 4 files changed, 50 insertions(+) rename v1-a-wish.tex => i1-a-wish.tex (100%) rename v2-fantasma.tex => i2-fantasma.tex (100%) create mode 100644 map.tex diff --git a/v1-a-wish.tex b/i1-a-wish.tex similarity index 100% rename from v1-a-wish.tex rename to i1-a-wish.tex diff --git a/v2-fantasma.tex b/i2-fantasma.tex similarity index 100% rename from v2-fantasma.tex rename to i2-fantasma.tex diff --git a/magica.sty b/magica.sty index 6a1d4b0..64cfc97 100644 --- a/magica.sty +++ b/magica.sty @@ -10,6 +10,8 @@ shapes.multipart, % Multi-line nodes arrows.meta, decorations.markings, + % Mapping + decorations.text, } \tikzset{ Char/.style={ @@ -76,3 +78,10 @@ \draw[thin,step=0.5] (-0.5,-1) grid (0.5,1); }, } + +% Map drawing +\tikzset{ + dot/.style={circle,draw,inner sep=1.5,fill=#1}, + dot/.default=black, + largedot/.style={circle,draw,inner sep=4}, +} diff --git a/map.tex b/map.tex new file mode 100644 index 0000000..896136c --- /dev/null +++ b/map.tex @@ -0,0 +1,41 @@ +\documentclass[dvipsnames,final]{beamer} + +\usepackage{magica-common} + +\title{To The Stars Battle Diagrams \\ Map} +\author{Leni Aniva} +\date{13 Aug. 2023} + +\begin{document} + +\frame{\titlepage} + +\begin{frame} + \frametitle{Territory of the Human Civilisation} + + \centering + \begin{tikzpicture}[scale=0.65] + \coordinate (earth) at (0,0); + \node[dot] at (earth) {}; + \node[below right] at (earth) {Earth}; + \draw (earth) circle (5); + + \coordinate (ee) at (2,-1); + \node[dot] at (ee) {}; + \node[below right,scale=0.7] at (ee) {Epsilon Eridani}; + + \foreach \i/\n [evaluate=\i as \a using \i*72] in + {1/Yangtze, 2/Euphrate, 3/Nile, 4/Unknown, 5/Catgirl} { + \draw (earth) -- (\a:5); + \path[postaction={decorate}, + decoration={text along path, + text format delimiters={|}{|}, + text={|\selectfont\scshape| \n}, + text align=center}, + opacity=0.5] + (\a:5.5) arc [start angle=\a,end angle={\a+72},radius=5.5]; + } + \end{tikzpicture} +\end{frame} + +\end{document}