prelude.tex 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. \usepackage[dvipsnames]{xcolor}
  2. \usepackage{hyperref}
  3. \usepackage{lmodern}
  4. \usepackage{amssymb,amsmath}
  5. \usepackage{ifxetex,ifluatex}
  6. \usepackage{anyfontsize}
  7. \usepackage[percent]{overpic}
  8. \usepackage[margin=0.4in]{geometry}
  9. \usepackage{multicol}
  10. \setlength{\columnsep}{0.05cm}
  11. \usepackage[T1]{fontenc}
  12. \usepackage[utf8]{inputenc}
  13. \usepackage{fontspec} % For loading fonts
  14. \usepackage{titlesec}
  15. % \usepackage{minipage}
  16. \setmainfont{PT Serif}
  17. \newfontfamily\headingfont[]{Metamorphous}
  18. \titleformat*{\section}{\LARGE\headingfont}
  19. \titleformat*{\subsection}{\Large\headingfont}
  20. \newenvironment{amove}[1]
  21. {\Checkbox{6pt}\ {\color{MoveBlue}$\diamond$\headingfont #1}\begin{quote}
  22. }
  23. {\end{quote}
  24. }
  25. \newenvironment{optfeature}[2][]
  26. {\Checkbox{6pt}\ {\headingfont #2}\hfill\textit{#1}\phantom{asdf}\begin{quote}
  27. }
  28. {\end{quote}
  29. }
  30. \newenvironment{aspell}[2]
  31. {\Checkbox{6pt}\ {\headingfont\ \spell{#1}}\hfill\textit{#2}\phantom{asdf}\begin{quote}
  32. }
  33. {\end{quote}
  34. }
  35. \newenvironment{fragment}[1]
  36. {\begin{quote}{\headingfont #1}\begin{quote}
  37. }
  38. {\end{quote}\end{quote}
  39. }
  40. \newcommand{\subheader}[1]{\large\headingfont #1}
  41. \newenvironment{basicmove}[1]
  42. {\begin{quote}{\color{MoveBlue}$\diamond$\headingfont #1}\begin{quote}
  43. }
  44. {\end{quote}\end{quote}
  45. }
  46. \makeatletter
  47. \newcommand{\choicelabel}[1]{
  48. {\hss\llap{\Checkbox{6pt}}}
  49. }
  50. \newcommand{\choicelabeldef}{
  51. \@gobble{choicelabeldef}
  52. }
  53. \newenvironment{choices}
  54. {
  55. \itemize
  56. \let\makelabel\choicelabel
  57. \let\@itemlabel\choicelabeldef
  58. }
  59. {\enditemize
  60. }
  61. \makeatother
  62. \newcommand{\choice}{\Checkbox{6pt} }
  63. \pagestyle{empty}
  64. \IfFileExists{upquote.sty}{\usepackage{upquote}}{}
  65. % use microtype if available
  66. \IfFileExists{microtype.sty}{%
  67. \usepackage[]{microtype}
  68. \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
  69. }{}
  70. \PassOptionsToPackage{hyphens}{url} % url is loaded by hyperref
  71. \makeatother
  72. % Scale images if necessary, so that they will not overflow the page
  73. % margins by default, and it is still possible to overwrite the defaults
  74. % using explicit options in \includegraphics[width, height, ...]{}
  75. \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
  76. \IfFileExists{parskip.sty}{%
  77. \usepackage{parskip}
  78. }{% else
  79. \setlength{\parindent}{0pt}
  80. \setlength{\parskip}{6pt plus 2pt minus 1pt}
  81. }
  82. \setlength{\emergencystretch}{3em} % prevent overfull lines
  83. \providecommand{\tightlist}{%
  84. \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
  85. \setcounter{secnumdepth}{0}
  86. % Redefines (sub)paragraphs to behave more like sections
  87. \ifx\paragraph\undefined\else
  88. \let\oldparagraph\paragraph
  89. \renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
  90. \fi
  91. \ifx\subparagraph\undefined\else
  92. \let\oldsubparagraph\subparagraph
  93. \renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
  94. \fi
  95. % set default figure placement to htbp
  96. \makeatletter
  97. \def\fps@figure{htbp}
  98. \makeatother
  99. \setlength{\multicolsep}{6.0pt plus 2.0pt minus 1.5pt}% 50% of original values
  100. \date{}
  101. \usepackage{etoolbox}
  102. \patchcmd{\quote}{\rightmargin}{\leftmargin 1em \rightmargin}{}{}
  103. \usepackage{tikz}
  104. \newcommand{\Checkbox}[1]{\tikz{\path[draw=black] (0,0) rectangle (#1,#1);}}
  105. % Don't replace here, replace before every section
  106. \newcommand{\SectionTitle}{4}
  107. \newcommand{\leftbanner}[1]{
  108. \begin{overpic}[width=3.1in,height=0.45in]{assets/short_left.png}
  109. \put (2,4) {\fontsize{16}{40}\selectfont \textcolor{white}{\headingfont #1}}
  110. \end{overpic}
  111. }
  112. % \newcommand{\leftbanner}[1]{
  113. % \begin{overpic}[width=3.71260in,height=0.40945in]{assets/templateL.png}
  114. % \put (2,4) {\fontsize{16}{40}\selectfont \textcolor{white}{\headingfont #1}}
  115. % \end{overpic}
  116. % }
  117. % \newcommand{\rightbanner}[1]{
  118. % \begin{overpic}[width=3.71260in,height=0.40945in]{assets/templateR.png}
  119. % \put (5,4) {\fontsize{16}{40}\selectfont \textcolor{white}{\headingfont #1}}
  120. % \end{overpic}
  121. % }
  122. \newcommand{\rightbanner}[1]{
  123. \begin{overpic}[width=4.4in,height=0.45in]{assets/long_right.png}
  124. \put (5,4) {\fontsize{16}{40}\selectfont \textcolor{white}{\headingfont #1}}
  125. \end{overpic}
  126. }
  127. \newcommand{\gearbanner}{
  128. \begin{overpic}[width=7.47986in,height=0.40945in]{assets/templateEquip.png}
  129. \put (3,2) {\fontsize{16}{40}\selectfont \textcolor{white}{\headingfont Gear}}
  130. \end{overpic}
  131. }
  132. \newcommand{\topbanner}[1]{
  133. \begin{overpic}[width=7.47986in,height=1.0in]{assets/templateRuleHeader.png}
  134. \put (1,2) {\fontsize{32}{40}\selectfont\headingfont \textcolor{white}{#1}}
  135. \end{overpic}
  136. }
  137. \newcommand{\widebanner}[1]{
  138. \begin{overpic}[width=7.47986in,height=1.0in]{assets/templateThinHeader.png}
  139. \put (1,1) {\fontsize{16}{40}\selectfont\headingfont \textcolor{white}{#1}}
  140. \end{overpic}
  141. }
  142. \newcommand{\charbanner}{
  143. \input{assets/TopBanner}
  144. }
  145. \newcommand{\charlower}{
  146. \vfill\null
  147. \begin{overpic}[width=7.47986in,height=1.0in]{assets/charsheet_lower.png}
  148. \put (10,1) {\fontsize{32}{40}\selectfont\headingfont \textcolor{white}{The \Class}}
  149. \end{overpic}
  150. }
  151. \definecolor{CondRed}{RGB}{153,51,51}
  152. \definecolor{MoveBlue}{RGB}{51,102,153}
  153. \definecolor{SpellPurp}{RGB}{153,51,102}
  154. \definecolor{TagGreen}{RGB}{51,153,102}
  155. \newcommand{\condition}[1]{\textbf{\color{CondRed} #1}}
  156. \newcommand{\move}[1]{{\color{MoveBlue}$\diamond$#1}}
  157. \newcommand{\spell}[1]{{\color{SpellPurp}$\star$#1}}
  158. \newcommand{\itag}[1]{\textit{\color{TagGreen}#1}}
  159. \newcommand{\ntag}[2]{\textit{\color{TagGreen}#1 #2}}
  160. % specific tags
  161. \newcommand{\weight}[1]{\ntag{#1}{weight}}
  162. \newcommand{\damage}[1]{\ntag{#1}{damage}}
  163. \newcommand{\armor}[1]{\ntag{#1}{armor}}
  164. \newcommand{\armorForward}[1]{\ntag{#1}{armor} forward}
  165. \newcommand{\uses}[1]{\ntag{#1}{uses}}
  166. \newcommand{\ammo}[1]{\ntag{#1}{ammo}}
  167. \newcommand{\hexes}[1]{\textit{#1 hexes}}
  168. \newcommand{\forward}[1]{#1 forward}
  169. \newcommand{\ongoing}[1]{#1 ongoing}
  170. \newcommand{\yourLoad}[1]{Your Load is \textbf{#1+STR}}
  171. \newcommand{\onSuccess}{\textbf{On a 10+}}
  172. \newcommand{\onPlainSuccess}{\textbf{On a 10--11}}
  173. \newcommand{\onMassiveSuccess}{\textbf{On a 12+}}
  174. \newcommand{\onPartial}{\textbf{On a 7--9}}
  175. \newcommand{\onHit}{\textbf{On a 7+}}
  176. \newcommand{\onMiss}{\textbf{On a miss}}
  177. \newcommand{\moveReplaces}[1]{\textbf{Replaces}: \move{#1}}
  178. \newcommand{\moveRequires}[1]{\textbf{Requires}: \move{#1}}
  179. \newcommand{\moveRequiresLst}[1]{\textbf{Requires}: #1}
  180. \newcommand{\onMassiveSuccessFor}[1]{%
  181. When you use \move{#1} and \textbf{roll a 12+}}
  182. \newcommand{\onPlainSuccessFor}[1]{%
  183. When you use \move{#1} and \textbf{roll a 10--11}}
  184. \newcommand{\onPartialFor}[1]{%
  185. When you use \move{#1} and \textbf{roll a 7+}}
  186. \newcommand{\advancesigil}{$\triangleright$}
  187. \newcommand{\firstAdvances}{\advancesigil When you \textbf{gain a
  188. level from 2--5}, choose from these moves.}
  189. \newcommand{\secondAdvances}{\advancesigil When you \textbf{gain a
  190. level from 6--10}, choose from these moves or the level 2--5
  191. moves.}
  192. \newcommand{\blank}{\underline{\phantom{mountain}}}
  193. \newcommand{\directive}[1]{\textbf{#1}}