prelude.tex 6.6 KB

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