Browse Source

Convert cleric to use prelude

Getty Ritter 5 years ago
parent
commit
bbbab508d7
2 changed files with 10 additions and 109 deletions
  1. 9 108
      cleric.tex
  2. 1 1
      prelude.tex

+ 9 - 108
cleric.tex

@@ -1,90 +1,6 @@
 \documentclass[8pt]{extarticle}
-\usepackage{color}
-\usepackage{lmodern}
-\usepackage{amssymb,amsmath}
-\usepackage{ifxetex,ifluatex}
-\usepackage{anyfontsize}
-\usepackage[percent]{overpic}
-\usepackage[margin=0.5in]{geometry}
-\usepackage{multicol}
-\setlength{\columnsep}{0.05cm}
-\usepackage[T1]{fontenc}
-\usepackage[utf8]{inputenc}
-\usepackage{fontspec} % For loading fonts
-\usepackage{titlesec}
-\setmainfont{PT Serif}
-\newfontfamily\headingfont[]{Metamorphous}
-\titleformat*{\section}{\LARGE\headingfont}
-\titleformat*{\subsection}{\Large\headingfont}
-
-\newenvironment{amove}[1]
-{\Checkbox{6pt}\ {\headingfont #1}\begin{quote}
-}
-{\end{quote}
-}
-
-\newenvironment{basicmove}[1]
-{\begin{quote}{\headingfont #1}\begin{quote}
-}
-{\end{quote}\end{quote}
-}
-
-\newenvironment{choices}[1]
-{#1
-
-  \newcommand{\choice}{\Checkbox{6pt} }
-  \begin{quote}
-}
-{\end{quote}\let\choice\undefined
-}
-
-\pagestyle{empty}
-\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
-% use microtype if available
-\IfFileExists{microtype.sty}{%
-\usepackage[]{microtype}
-\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
-}{}
-\PassOptionsToPackage{hyphens}{url} % url is loaded by hyperref
-
-\makeatother
-% Scale images if necessary, so that they will not overflow the page
-% margins by default, and it is still possible to overwrite the defaults
-% using explicit options in \includegraphics[width, height, ...]{}
-\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
-\IfFileExists{parskip.sty}{%
-\usepackage{parskip}
-}{% else
-\setlength{\parindent}{0pt}
-\setlength{\parskip}{6pt plus 2pt minus 1pt}
-}
-\setlength{\emergencystretch}{3em}  % prevent overfull lines
-\providecommand{\tightlist}{%
-  \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
-\setcounter{secnumdepth}{0}
-% Redefines (sub)paragraphs to behave more like sections
-\ifx\paragraph\undefined\else
-\let\oldparagraph\paragraph
-\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
-\fi
-\ifx\subparagraph\undefined\else
-\let\oldsubparagraph\subparagraph
-\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
-\fi
-
-% set default figure placement to htbp
-\makeatletter
-\def\fps@figure{htbp}
-\makeatother
-
-
-\date{}
-
-\usepackage{etoolbox}
-\patchcmd{\quote}{\rightmargin}{\leftmargin 1em \rightmargin}{}{}
-
-\usepackage{tikz}
-\newcommand{\Checkbox}[1]{\tikz{\path[draw=black] (0,0) rectangle (#1,#1);}}
+
+\input{prelude}
 
 % Modify this commands to define Class name, Base HP, Base Load and Damage Dice (only number)
 \newcommand{\Class}{Cleric}
@@ -92,21 +8,13 @@
 \newcommand{\BaseLoad}{10}
 \newcommand{\Damage}{6}
 
-% Don't replace here, replace before every section
-\newcommand{\SectionTitle}{4}
-
-
-
-
 \begin{document}
 \openup -0.3em
 
 \input{figuras/TopBanner}
-%\input{figuras/TopBanner10Plus} %Use this instead when damage dice has 10 or more faces
 
 \begin{multicols}{2}
-\renewcommand{\SectionTitle}{\headingfont Folk}
-\input{figuras/LeftBanner}
+\leftbanner{Folk}
 
 \begin{amove}{Dwarf}
   are one with stone. When you commune you are also granted a special
@@ -126,9 +34,7 @@
 
 \ 
 
-\renewcommand{\SectionTitle}{\headingfont Alignment}
-\input{figuras/LeftBanner}
-
+\leftbanner{Alignment}
 
 \begin{amove}{Good}
   Endanger yourself to heal another.
@@ -145,8 +51,7 @@
 
 \ 
 
-\renewcommand{\SectionTitle}{\headingfont Bonds}
-\input{figuras/LeftBanner}
+\leftbanner{Bonds}
 
 \begin{quote}
 \textbf{V:}\enspace\hrulefill
@@ -175,8 +80,7 @@
 \columnbreak
 
 
-\renewcommand{\SectionTitle}{\headingfont Starting Moves}
-\input{figuras/RightBanner}
+\rightbanner{Starting Moves}
 
 \begin{basicmove}{Deity}
 You serve and worship some deity or power which grants you spells. Give your god a name (maybe Helferth, Sucellus, Zorica or Krugon the Bleak) and choose your deity’s domain:
@@ -255,8 +159,7 @@ You serve and worship some deity or power which grants you spells. Give your god
 \end{multicols}
 \clearpage
 
-\renewcommand{\SectionTitle}{\headingfont Gear}
-\input{figuras/RightBannerEquipment}
+\gearbanner
 
 \begin{multicols}{2}
 
@@ -298,8 +201,7 @@ You serve and worship some deity or power which grants you spells. Give your god
 \end{multicols}
 
 \begin{multicols}{2}
-\renewcommand{\SectionTitle}{\headingfont Advanced Moves (2-5)}
-\input{figuras/LeftBanner}
+\leftbanner{Advanced Moves (2-5)}
 
 When you \textbf{gain a level from 2--5}, choose from these moves.
 
@@ -370,8 +272,7 @@ When you \textbf{gain a level from 2--5}, choose from these moves.
 \vfill\null
 \columnbreak
 
-\renewcommand{\SectionTitle}{\headingfont Advanced Moves (6-10)}
-\input{figuras/RightBanner}
+\rightbanner{Advanced Moves (6-10)}
 
 When you \textbf{gain a level from 6--10}, choose from these moves or
 the level 2--5 moves.

+ 1 - 1
prelude.tex

@@ -112,4 +112,4 @@
   \begin{overpic}[width=7.47986in,height=1.0in]{figuras/templateRuleHeader.png}
   \put (1,2) {\fontsize{32}{40}\selectfont\headingfont \textcolor{white}{#1}}
 \end{overpic}
-}
+}