prelude.tex 5.0 KB

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