Add diagram stub

This commit is contained in:
Leni Aniva 2023-07-06 17:49:34 -07:00
parent b10e10e0c6
commit 358c3e5b53
8 changed files with 3794 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.* .*
!.gitignore !.gitignore
!.latexmkrc
/build /build

4
.latexmkrc Normal file
View File

@ -0,0 +1,4 @@
$bibtex_use = 2;
$clean_ext = "nav snm";
$pdflatex = 'lualatex --shell-escape -file-line-error %O %S';
$out_dir = 'build';

7
README.md Normal file
View File

@ -0,0 +1,7 @@
# To The Stars Battle Diagrams and Annotations
This project's goal is to provide visualisations and summaries of battles and
plots in the AO3 novel *To The Stars*.
The battle symbology is derived from NATO Joint Military Symbols and is
augmented to ensure full compatibility.

27
magica-common.sty Normal file
View File

@ -0,0 +1,27 @@
\usepackage[T1]{fontenc}
\RequirePackage{fontspec}
\RequirePackage{calc}
\usepackage{lmodern}
% Theme from Gemini
\newfontfamily\Raleway[Ligatures=TeX]{Raleway}
\newfontfamily\Lato[Ligatures=TeX]{Lato}
\colorlet{CCore}{ForestGreen!50!black}
\setbeamercolor{titlelike}{fg=CCore}
\setbeamercolor{frametitle}{fg=CCore}
\setbeamercolor{section in head/foot}{bg=CCore}
\setbeamercolor{author in head/foot}{bg=CCore}
\setbeamercolor{date in head/foot}{fg=CCore}
\setbeamertemplate{itemize item}{\color{CCore}$\blacktriangleright$}
\setbeamerfont{headline}{family=\Raleway}
\setbeamerfont{headline title}{size=\Huge,series=\bfseries}
\setbeamerfont{headline author}{size=\Large}
\setbeamerfont{headline institute}{size=\normalsize}
\setbeamerfont{block title}{family=\Raleway,size=\large,series=\bfseries}
\setbeamerfont{heading}{family=\Lato,series=\bfseries}
\setbeamerfont{caption}{size=\small}
\setbeamerfont{footline}{family=\Raleway,size=\normalsize}
\usepackage{magica}

32
magica.sty Normal file
View File

@ -0,0 +1,32 @@
\ProvidesPackage{magica}[2023/07/06 Magica]
\usepackage[dvipsnames]{xcolor}
\usepackage{amssymb}
\usepackage{xparse}
\usepackage{milsymb}
\usetikzlibrary{
calc,
positioning,
shapes.misc, % Rounded rectangles, etc.
shapes.multipart, % Multi-line nodes
arrows.meta,
decorations.markings,
}
\tikzset{
Char/.style={
draw,rounded corners=3pt,line width=0.5mm,
minimum size=15pt,
fill=#1
},
MilSymb land/magica/demon/.pic={
\node [fill=MilSymb@fill, \MilSymb@line] {\bigstar};
},
/MilSymb/.cd,
main/demon/.style={/MilSymb/.cd, SymbC=land/magica/demon},
}
\NewDocumentCommand\Magica{ d() g}{
\node[Char=Dandelion] (c) at (#1) {};
\node[right=5pt] at (c) {#2};
}

3674
milsymb.sty Normal file

File diff suppressed because it is too large Load Diff

30
reference.tex Normal file
View File

@ -0,0 +1,30 @@
\documentclass[12pt,article]{article}
\usepackage{magica}
\title{To The Stars Battle Diagrams \\ References }
\author{Leni Aniva}
\date{04 July 2023}
\begin{document}
\maketitle
\section{Introduction}
The battle diagrams are based on NATO's Joint Military Symbols with several
extensions.
\begin{figure}
\centering
\begin{tikzpicture}
\Magica(0,0) {Tomoe M.};
\Magica(4,0) {Sakura Y.};
\MilLand[faction=hostile,
main=demon,
altitude={low}{},
echelon=battalion] (8,0) {Battalion of demons flying at low altitude};
\end{tikzpicture}
\caption{Symbols for Tomoe Mami and Sakura Kyouko}
\end{figure}
\end{document}

19
v2-fantasma.tex Normal file
View File

@ -0,0 +1,19 @@
\documentclass[dvipsnames,final]{beamer}
\usepackage{magica-common}
\title{To The Stars Battle Diagrams \\ Vol 2. Fantasma}
\author{Leni Aniva}
\date{04 July 2023}
\begin{document}
\frame{\titlepage}
\begin{frame}
\begin{tikzpicture}
\MilLand[faction=hostile, echelon=team, main=infantry, scale=2](0,0)
\end{tikzpicture}
\end{frame}
\end{document}