Battle Report Template
Author
Pádraig Mac Carron
Last Updated
3 месяца назад
License
Creative Commons CC BY 4.0
Аннотация
This is a template I've used for my Border Patrol Battle Reports to sort of emulate the classic White Dwarf style.
%%%%%%%%%%%%%%%%%%%%%%%
%READ ME
%Most of what you want to edit are the following 3 files:
% beginning.tex
% battle1.tex
% conclusions.tex
%This main.tex file contains all the custom commands to make the article. Some of these were taken from Fran's post on stackexchange typography. This is fairly heavily edited though.
%Note that to use the differnt fonts this is compiled in XeLaTeX and not pdfLaTeX
%Don't edit this file much except for the bottom part to include the relevant sections
%%%%%%%%%%%%%%%%%%%%%%
\documentclass[11pt]{article}
\usepackage{graphicx}
\usepackage{babel}
\usepackage[utf8]{inputenc}
\usepackage{color}
\definecolor{marron}{RGB}{60,30,10}
\definecolor{darkblue}{RGB}{0,0,80}
\definecolor{lightblue}{RGB}{80,80,80}
\definecolor{darkgreen}{RGB}{00,80,0}
\definecolor{brown}{RGB}{80,60,0}
\definecolor{darkbrown}{RGB}{90,40,20}
\definecolor{darkgray}{RGB}{60,60,0}
\definecolor{darkred}{RGB}{80,0,0}
\definecolor{shadecolor}{rgb}{0.97,0.97,0.97}
\usepackage{xcolor}
\usepackage{wallpaper}
\usepackage{wrapfig,booktabs}
\usepackage{float}
\usepackage{multicol}
\usepackage{fontspec}
\usepackage[table]{xcolor}
\usepackage{caption}
\usepackage{hyperref}
\setlength\columnsep{22pt}
%%%
%This has swordsup and things
\usepackage{fourier}
\definecolor{dark}{rgb}{.1,0,0}
\definecolor{cardbrown}{rgb}{.57,0,0}
\definecolor{gold}{rgb}{0.85,.66,0}
%%%%%%%%%%%%%%%%%%%%%
%Original from:
%https://tex.stackexchange.com/questions/1319/showcase-of-beautiful-typography-done-in-tex-friends/74609#74609
%%%%%%%%%%%%%%%%%%%%%
\usepackage{fancyhdr}
\usepackage{lettrine}
\input Acorn.fd
\newcommand*\initfamily{\usefont{U}{Acorn}{xl}{n}}
\usepackage{geometry}
\geometry{
tmargin=3cm,
bmargin=3cm,
lmargin=2.5cm,
rmargin=2.5cm,
headheight=1.5cm,
headsep=0.8cm,
footskip=0.5cm}
% \usepackage[full]{textcomp}
\renewcommand{\familydefault}{pplj}
% \usepackage[
% final,
% stretch=10,
% protrusion=true,
% tracking=true,
% spacing=on,
% kerning=on,
% expansion=true]{microtype}
\setlength{\parskip}{1.3ex plus 0.2ex minus 0.2ex}
%This gets the leaf symbols
\usepackage{fourier-orns}
\newcommand{\ornamento}{\vspace{2em}\noindent \textcolor{darkgray}{\hrulefill~ \raisebox{-2.5pt}[10pt][10pt]{\leafright \decofourleft \decothreeleft \aldineright \decotwo \floweroneleft \decoone \floweroneright \decotwo \aldineleft\decothreeright \decofourright \leafleft} ~ \hrulefill \\ \vspace{2em}}}
\newcommand{\ornpar}{\noindent \textcolor{darkgray}{ \raisebox{-1.9pt}[10pt][10pt]{\leafright} \hrulefill \raisebox{-1.9pt}[10pt][10pt]{\leafright \decofourleft \decothreeleft \aldineright \decotwo \floweroneleft \decoone}}}
%%%%Bottom
\newcommand{\ornimpar}{\textcolor{darkgray}{\raisebox{-1.9pt}[10pt][10pt]{
%\floweroneright \decotwo \aldineleft
\oldpilcrowthree \decotwo \decofourright \decothreeright %\leafleft
} \hrulefill \raisebox{-1.9pt}[10pt][10pt]{\decothreeleft \decofourleft \decotwo \reflectbox{\oldpilcrowthree} }}}
\makeatletter
\def\headrule{{\color{darkgray}\raisebox{-2.1pt}[10pt][10pt]{\decothreeleft} \hrulefill \raisebox{-2.1pt}[10pt][10pt]{~~~\decofourleft \decotwo\decofourright~~~} \hrulefill \raisebox{-2.1pt}[10pt][10pt]{ \decothreeright}}}
\makeatother
\fancyhf{}
%\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}}
\newcommand{\estcab}[1]{\itshape\textcolor{marron}{\nouppercase #1}}
\fancyhead[LE]{\estcab{Fran Oldstyle}}
\fancyhead[RE]{\estcab{History of taxonomy}}
% \fancyhead[CE,CO]{\estcab{\decoone}}
\fancyhead[LO]{\estcab{\rightmark}} % malo cuando no hay section ~~~ \thesection
\fancyhead[RO]{\estcab{\leftmark}}
% \fancyhead[RO]{\bf\nouppercase{ \leftmark}}
% \fancyfoot[LE]{\bf \thepage ~~ \leafNE}
% \fancyfoot[RO]{ \leafNE ~~ \bf \thepage}
\fancyfoot[LO]{
\ornimpar \\ \large \hfill \sffamily\bf \textcolor{darkgray}{\textxswup ~~~ \thepage}
}
\fancyfoot[RE]{\ornpar \\ \large \sffamily\bf \textcolor{darkgray}{\thepage ~~~ \reflectbox{\textxswup }} \hfill}
\newenvironment{Section}[1]
{\section{\vspace{0ex}#1}}
{\vspace{12pt}\centering ------- \decofourleft\decofourright ------- \par}
\usepackage{lipsum}
\setlength{\parindent}{1em} % Sangría española
\pagestyle{fancy}
\renewcommand{\footnoterule}{\vspace{-0.5em}\noindent\textcolor{marron}{\decosix \raisebox{2.9pt}{\line(1,0){100}} \lefthand} \vspace{.5em} }
\usepackage[hang,splitrule]{footmisc}
\addtolength{\footskip}{0.5cm}
\setlength{\footnotemargin}{0.3cm}
\setlength{\footnotesep}{0.4cm}
% \usepackage{chngcntr}
% \counterwithout{figure}{chapter}
% \counterwithout{table}{chapter}
%From my HeroQuest one, compiler changed to XeLatex to use fontspec
\setromanfont[Color=dark,
ItalicFont={fonts/Aldine721BT Italic},
BoldFont={fonts/Aldine721BT Bold},
BoldItalicFont={aldine-721-bold-italic-bt}]{Aldine 721 BT.ttf}
\setsansfont[Color=dark,ItalicFont={fonts/ZapfChancery_MediumItalyc}]{HeroQuest.ttf}
\setmonofont[Color=dark]{Plantin_MT_Light.ttf}
\renewcommand{\thesection}{\Roman{section}}
\newsavebox\mysavebox
\newenvironment{imgminipage}[2][]{%
\def\imgcmd{\includegraphics[width=\wd\mysavebox,height=\dimexpr\ht\mysavebox+\dp\mysavebox\relax,#1]{#2}}%
\begin{lrbox}{\mysavebox}%
\begin{minipage}%
}{%
\end{minipage}
\end{lrbox}%
\sbox\mysavebox{\fbox{\usebox\mysavebox}}%
\mbox{\rlap{\raisebox{-\dp\mysavebox}{\imgcmd}}\usebox\mysavebox}%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%NOTES:
% Use \textsf{} for HeroQuest style fonts
%
% Use \textsf{ \textit{}} for scrolly text
%
% Use \texttt{} for figure caption fonts
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\input{beginning}
\input{battle1}
\input{conclusions}
\end{document}