-
Notifications
You must be signed in to change notification settings - Fork 11
/
itdr_charsheet.tex
120 lines (96 loc) · 3.45 KB
/
itdr_charsheet.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
\documentclass[10pt,twoside,openany]{book}
\usepackage[utf8]{inputenc}
\usepackage{amssymb}
\usepackage{forloop}
\usepackage{itdr/core}
\def \game {Into the Dungeon: Revived}
\def \title {{\game} - Character Sheet} % TITLE variable
\def \author {Vladimir Arabadzhi} % AUTHOR variable
\def \keywords {\game;Into the Dungeon;Into the Odd;RPG} % KEYWORDS variable
\ifcsname ifplain\endcsname\else
\expandafter\let\csname ifplain\expandafter\endcsname
\csname iffalse\endcsname
\fi
\newboolean{image} % Image overlay switch (xifthen package)
\ifplain
\setboolean{image}{false}
\else
\setboolean{image}{true}
\fi
% to disable image overlay call pdflatex with
% "\let\ifplain\iftrue\input{itdr_charsheet}"
\newcommand{\itemrule}[1]{\rule{#1}{\arrayrulewidth}}
\newcommand{\itemrulefill}{\hrulefill}
% dotted lines
%\renewcommand{\itemrule}[1]{\makebox[#1]{\dotfill}}
%\renewcommand{\itemrulefill}{\dotfill}
\newcommand{\thinbox}[2][0.75em]{\fbox{\rule{#2}{0pt}\rule[#1]{0pt}{0in}}}
\newcommand{\tablewidth}{\linewidth+0.37em}
\newcommand{\negspace}[1][0pt]{\hspace{-0.48em}\hspace{#1}}
\newcommand{\smartslash}{$/$\hspace{-0.2em}}
\newcommand{\slashspace}{\negspace\itemrule{1.55em}\smartslash\itemrulefill}
\newcommand{\centered}[1]{\begin{center}#1\end{center}\vspace{-1ex}}
\newcounter{loopcounter}
\newcommand{\dup}[2][1]{\forloop{loopcounter}{0}{\value{loopcounter}<#1}{#2}}
\begin{document}
\thispagestyle{empty}
\fancyfont\fontsize{18}{16}\selectfont % Set text font
\newgeometry{margin=1in,bottom=0.75in}
\def\arraystretch{1.5}
\begin{center}
\hspace{0.3em}\textBigTitle{\game}\\
%\vspace{-1ex}\hspace{0.375em}\hrulefill\hspace{-0.025em}\vspace{1ex}
\vspace{1.51\baselineskip}
\end{center}
\noindent\hspace{0.4em}Character Sheet~\itemrulefill
\vspace{1.1ex}
\noindent
\begin{tabularx}{\tablewidth}{llLrL}
~ & \multicolumn{4}{l}{Adventures Survived~\itemrule{9.725em}} \\
~ & STR & \slashspace & HP & \slashspace \\
~ & DEX & \slashspace & Armour & \slashspace \\
\ifthenelse{\boolean{image}}{%
\multirow{-4}{*}{\hspace{1.532in}}\hspace{-0.1em} &
WIL & \slashspace & Money & \negspace\itemrulefill \\
}{%
\multirow{-4}{*}{\thinbox[1.44in]{1.44in}}\hspace{-0.1em} &
WIL & \slashspace & Money & \negspace\itemrulefill \\
}
\end{tabularx}
\vspace{-0.9ex}
\centered{Background and Features}
\noindent
\begin{tabularx}{\tablewidth}{CC}
\dup[3]{\itemrulefill & \itemrulefill \\}
\end{tabularx}\vspace{-3.6ex}
\centered{Equipment and Notes}
\noindent
\begin{tabularx}{\tablewidth}{CC}
\dup[14]{\itemrulefill & \itemrulefill \\}
\end{tabularx}
\ifthenelse{\boolean{image}}{%
\begin{tikzpicture}[remember picture,overlay]
\node[xshift=-0.35em,yshift=0.45em,anchor=north west] at (current page.north west){\includegraphics{charsheet_page1.png}};
\end{tikzpicture}
}{}
\break
% SECOND PAGE
\thispagestyle{empty}
\centered{Cantrips}
\noindent
\begin{tabularx}{\tablewidth}{CC}
\dup[3]{\itemrulefill & \itemrulefill \\}
\end{tabularx}\vspace{-4.2ex}
\centered{Spells}
\vspace{-3ex}
{\large\hfill Signature --- S\hspace{0.4em}~\\Circle\hfill Prepared --- P\hspace{0.4em}}
\noindent
\begin{tabularx}{\tablewidth}{CC}
\dup[22]{\textbigcircle\itemrulefill\hspace{0.1em}\thinbox[0.65em]{0.65em} & \textbigcircle\itemrulefill\hspace{0.1em}\thinbox[0.65em]{0.65em} \\}
\end{tabularx}
\ifthenelse{\boolean{image}}{%
\begin{tikzpicture}[remember picture,overlay]
\node[xshift=-0.35em,yshift=0.45em,anchor=north west] at (current page.north west){\includegraphics{charsheet_page2.png}};
\end{tikzpicture}
}{}
\end{document}