prelude.tex 6.1 KB

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