prelude.tex 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. \usepackage{color}
  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.5in]{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. \setmainfont{PT Serif}
  16. \newfontfamily\headingfont[]{Metamorphous}
  17. \titleformat*{\section}{\LARGE\headingfont}
  18. \titleformat*{\subsection}{\Large\headingfont}
  19. \newenvironment{amove}[1]
  20. {\Checkbox{6pt}\ {\headingfont #1}\begin{quote}
  21. }
  22. {\end{quote}
  23. }
  24. \newenvironment{basicmove}[1]
  25. {\begin{quote}{\headingfont #1}\begin{quote}
  26. }
  27. {\end{quote}\end{quote}
  28. }
  29. \newenvironment{choices}[1]
  30. {#1
  31. \begin{quote}
  32. }
  33. {\end{quote}
  34. }
  35. \newcommand{\choice}{\Checkbox{6pt} }
  36. \pagestyle{empty}
  37. \IfFileExists{upquote.sty}{\usepackage{upquote}}{}
  38. % use microtype if available
  39. \IfFileExists{microtype.sty}{%
  40. \usepackage[]{microtype}
  41. \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
  42. }{}
  43. \PassOptionsToPackage{hyphens}{url} % url is loaded by hyperref
  44. \makeatother
  45. % Scale images if necessary, so that they will not overflow the page
  46. % margins by default, and it is still possible to overwrite the defaults
  47. % using explicit options in \includegraphics[width, height, ...]{}
  48. \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
  49. \IfFileExists{parskip.sty}{%
  50. \usepackage{parskip}
  51. }{% else
  52. \setlength{\parindent}{0pt}
  53. \setlength{\parskip}{6pt plus 2pt minus 1pt}
  54. }
  55. \setlength{\emergencystretch}{3em} % prevent overfull lines
  56. \providecommand{\tightlist}{%
  57. \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
  58. \setcounter{secnumdepth}{0}
  59. % Redefines (sub)paragraphs to behave more like sections
  60. \ifx\paragraph\undefined\else
  61. \let\oldparagraph\paragraph
  62. \renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
  63. \fi
  64. \ifx\subparagraph\undefined\else
  65. \let\oldsubparagraph\subparagraph
  66. \renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
  67. \fi
  68. % set default figure placement to htbp
  69. \makeatletter
  70. \def\fps@figure{htbp}
  71. \makeatother
  72. \date{}
  73. \usepackage{etoolbox}
  74. \patchcmd{\quote}{\rightmargin}{\leftmargin 1em \rightmargin}{}{}
  75. \usepackage{tikz}
  76. \newcommand{\Checkbox}[1]{\tikz{\path[draw=black] (0,0) rectangle (#1,#1);}}
  77. % Don't replace here, replace before every section
  78. \newcommand{\SectionTitle}{4}
  79. \newcommand{\leftbanner}[1]{
  80. \begin{overpic}[width=3.71260in,height=0.40945in]{assets/templateL.png}
  81. \put (2,4) {\fontsize{16}{40}\selectfont \textcolor{white}{\headingfont #1}}
  82. \end{overpic}
  83. }
  84. \newcommand{\rightbanner}[1]{
  85. \begin{overpic}[width=3.71260in,height=0.40945in]{assets/templateR.png}
  86. \put (5,4) {\fontsize{16}{40}\selectfont \textcolor{white}{\headingfont #1}}
  87. \end{overpic}
  88. }
  89. \newcommand{\gearbanner}{
  90. \begin{overpic}[width=7.47986in,height=0.40945in]{assets/templateEquip.png}
  91. \put (3,2) {\fontsize{16}{40}\selectfont \textcolor{white}{\headingfont Gear}}
  92. \end{overpic}
  93. }
  94. \newcommand{\topbanner}[1]{
  95. \begin{overpic}[width=7.47986in,height=1.0in]{assets/templateRuleHeader.png}
  96. \put (1,2) {\fontsize{32}{40}\selectfont\headingfont \textcolor{white}{#1}}
  97. \end{overpic}
  98. }
  99. \newcommand{\widebanner}[1]{
  100. \begin{overpic}[width=7.47986in,height=1.0in]{assets/templateThinHeader.png}
  101. \put (1,1) {\fontsize{16}{40}\selectfont\headingfont \textcolor{white}{#1}}
  102. \end{overpic}
  103. }
  104. \newcommand{\charbanner}{
  105. \input{assets/TopBanner}
  106. }