-
Notifications
You must be signed in to change notification settings - Fork 11
/
itdr_timesheet.tex
65 lines (53 loc) · 2.03 KB
/
itdr_timesheet.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
\documentclass[10pt,twoside,openany]{book}
\usepackage[utf8]{inputenc}
\usepackage{amssymb}
\usepackage{forloop}
\usepackage{itdr/core}
\def \game {Into the Dungeon: Revived}
\def \title {{\game} - Time 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}
\newcommand{\timedots}{\hrulefill\hfill\hrulefill\hfill\hrulefill\hfill\hrulefill\hfill\hrulefill\hfill\hrulefill\hfill\hrulefill\hfill\hrulefill\hfill\hrulefill\hfill$\rfloor$}
% dotted lines
%\renewcommand{\itemrule}[1]{\makebox[#1]{\dotfill}}
%\renewcommand{\itemrulefill}{\dotfill}
\newcommand{\tablewidth}{\linewidth+0.37em}
\newcounter{loopcounter}
\newcommand{\dup}[2][1]{\forloop{loopcounter}{0}{\value{loopcounter}<#1}{#2}}
\begin{document}
\thispagestyle{empty}
\fancyfont\fontsize{18}{15}\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}Time Sheet~\itemrulefill
\vspace{0.3ex}
\noindent
\begin{tabularx}{\tablewidth}{lRRRRRR}
~ & 10m & 20m & 30m & 40m & 50m & 60m\\
\dup[24]{\itemrule{1em}h & \multicolumn{6}{l}{\hspace{-0.37em}\includegraphics[width=\tablewidth-2.38em]{timeline.pdf}}\\}
\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{timesheet.png}};
\end{tikzpicture}
}{}
\end{document}