123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- \usepackage[dvipsnames]{xcolor}
- % \usepackage{hyperref}
- \usepackage{lmodern}
- \usepackage{amssymb,amsmath}
- \usepackage{ifxetex,ifluatex}
- \usepackage{anyfontsize}
- \usepackage[percent]{overpic}
- \usepackage[margin=0.4in]{geometry}
- \usepackage{multicol}
- \setlength{\columnsep}{0.05cm}
- \usepackage[T1]{fontenc}
- \usepackage[utf8]{inputenc}
- \usepackage{fontspec} % For loading fonts
- \usepackage{titlesec}
- \makeatletter
- \newcommand{\choicelabel}[1]{
- {\hss\llap{\Checkbox{6pt}}}
- }
- \newcommand{\choicelabeldef}{
- \@gobble{choicelabeldef}
- }
- \newenvironment{choices}
- {
- \itemize
- \let\makelabel\choicelabel
- \let\@itemlabel\choicelabeldef
- }
- {\enditemize
- }
- \makeatother
- \newcommand{\choice}{\Checkbox{6pt} }
- \pagestyle{empty}
- \IfFileExists{upquote.sty}{\usepackage{upquote}}{}
- % use microtype if available
- \IfFileExists{microtype.sty}{%
- \usepackage[]{microtype}
- \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
- }{}
- \PassOptionsToPackage{hyphens}{url} % url is loaded by hyperref
- \makeatother
- % Scale images if necessary, so that they will not overflow the page
- % margins by default, and it is still possible to overwrite the defaults
- % using explicit options in \includegraphics[width, height, ...]{}
- \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
- \IfFileExists{parskip.sty}{%
- \usepackage{parskip}
- }{% else
- \setlength{\parindent}{0pt}
- \setlength{\parskip}{6pt plus 2pt minus 1pt}
- }
- \setlength{\emergencystretch}{3em} % prevent overfull lines
- \providecommand{\tightlist}{%
- \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
- \setcounter{secnumdepth}{0}
- % Redefines (sub)paragraphs to behave more like sections
- \ifx\paragraph\undefined\else
- \let\oldparagraph\paragraph
- \renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
- \fi
- \ifx\subparagraph\undefined\else
- \let\oldsubparagraph\subparagraph
- \renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
- \fi
- % set default figure placement to htbp
- \makeatletter
- \def\fps@figure{htbp}
- \makeatother
- \setlength{\multicolsep}{6.0pt plus 2.0pt minus 1.5pt}% 50% of original values
- \date{}
- \usepackage{etoolbox}
- \patchcmd{\quote}{\rightmargin}{\leftmargin 1em \rightmargin}{}{}
- \usepackage{tikz}
- \newcommand{\Checkbox}[1]{\tikz{\path[draw=black] (0,0) rectangle (#1,#1);}}
- \newcommand{\pbClass}[1]{\newcommand{\Class}{#1}}
- \newcommand{\pbBaseHP}[1]{\newcommand{\BaseHP}{#1}}
- \newcommand{\pbDamage}[1]{\newcommand{\Damage}{#1}}
- \newcommand{\Look}{}
- \newcommand{\Names}{}
- \makeatletter
- \newcommand{\pbLook}[1]{\g@addto@macro\Look{\par#1}}
- \newcommand{\pbNames}[2]{\g@addto@macro\Names{\par\hangindent=0.2in#1: #2}}
- \makeatother
- \newcommand{\leftbanner}[1]{
- \begin{overpic}[width=3.1in,height=0.45in]{assets/short_left.png}
- \put (2,4) {\fontsize{16}{40}\selectfont \textcolor{white}{\headingfont #1}}
- \end{overpic}
- }
- \newcommand{\rightbanner}[1]{
- \begin{overpic}[width=4.4in,height=0.45in]{assets/long_right.png}
- \put (5,4) {\fontsize{16}{40}\selectfont \textcolor{white}{\headingfont #1}}
- \end{overpic}
- }
- \newcommand{\gearbanner}{
- \begin{overpic}[width=7.47986in,height=0.40945in]{assets/templateEquip.png}
- \put (3,2) {\fontsize{16}{40}\selectfont \textcolor{white}{\headingfont Gear}}
- \end{overpic}
- }
- \newcommand{\topbanner}[1]{
- \begin{overpic}[width=7.47986in,height=1.0in]{assets/templateRuleHeader.png}
- \put (1,2) {\fontsize{32}{40}\selectfont\headingfont \textcolor{white}{#1}}
- \end{overpic}
- }
- \newcommand{\widebanner}[1]{
- \begin{overpic}[width=7.47986in,height=1.0in]{assets/templateThinHeader.png}
- \put (1,1) {\fontsize{16}{40}\selectfont\headingfont \textcolor{white}{#1}}
- \end{overpic}
- }
- \newcommand{\charbanner}{
- \begin{overpic}[width=8.008in,height=3.0in]{assets/charsheet_upper.png}
- % names
- \put(1, 30) {\parbox{4.3in}{\fontsize{12}{12}\Names}}
- % look
- \put(59, 30) {\parbox{3in}{\fontsize{12}{12}\Look}}
- % some stats: damage...
- \put (25,4) {\makebox[0pt]{\fontsize{18}{10}\selectfont\headingfont \textcolor{black}{D\Damage{}}}}
- % max HP...
- \put (89,6) {\fontsize{6}{8}\selectfont\headingfont \textcolor{white}{Your max HP is}}
- % and Constitution
- \put (89,4.6) {\fontsize{6}{8}\selectfont\headingfont \textcolor{white}{\BaseHP{} + Constitution}}
- \end{overpic}
- }
- \newcommand{\charlower}{
- \vfill\null
- \begin{overpic}[width=7.47986in,height=1.0in]{assets/charsheet_lower.png}
- \put (10,1) {\fontsize{32}{40}\selectfont\headingfont \textcolor{white}{The \Class}}
- \end{overpic}
- }
- \input{assets/common.tex}
- \openup -0.2em
|