mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2026-03-31 14:16:07 +01:00
Bierbook and Seshbook tex files recreated from scratch to work directly with pdflatex rather than a roundabout route.
Procedurally generate tables from an external list of names.
This commit is contained in:
@@ -1,578 +1,367 @@
|
||||
%% ----------------------------------------------------------------------------
|
||||
%%
|
||||
%% CUCC Expo Bier Book
|
||||
%%
|
||||
%% ----------------------------------------------------------------------------
|
||||
\documentclass[a4paper,12pt,twoside]{book}
|
||||
|
||||
\documentclass[a5paper,10pt,openany]{bb}
|
||||
\usepackage{bierbook-style}
|
||||
% All required packages should be included in bierbook-style
|
||||
|
||||
\usepackage{pstricks}
|
||||
\usepackage{tabularx}
|
||||
\usepackage{color}
|
||||
\usepackage{calc}
|
||||
\usepackage[left=15mm,right=15mm,top=8mm,bottom=20mm]{geometry}
|
||||
\usepackage{palatino}
|
||||
\usepackage{grid}
|
||||
\usepackage{auto-pst-pdf}
|
||||
|
||||
\setlength{\parskip}{1.5ex}
|
||||
\setlength{\parindent}{0pt}
|
||||
|
||||
\newcommand{\boxes}[1][35]{%
|
||||
\psgrid[gridlabels=0pt,gridlabelcolor=white,subgriddiv=1,xunit=12pt,yunit=14pt](0,0)(0,0)(#1,1)}
|
||||
|
||||
\setlength{\unitlength}{9.5pt}
|
||||
\newlength\boxheight
|
||||
\setlength{\boxheight}{\textheight-4cm}
|
||||
|
||||
\newcommand{\tallyA}{%
|
||||
\medskip
|
||||
\parbox[c][\boxheight]{1.5cm}{
|
||||
\small
|
||||
\setlength{\bigskipamount}{8.25pt}
|
||||
Adam\bigskip\\
|
||||
Aled\bigskip\\
|
||||
Andrea\bigskip\\
|
||||
Andrew\bigskip\\
|
||||
Becka\bigskip\\
|
||||
Chris\bigskip\\
|
||||
David M\bigskip\\
|
||||
David W\bigskip\\
|
||||
Dour\bigskip\\
|
||||
Elaine\bigskip\\
|
||||
Fleur\bigskip\\
|
||||
Gina\bigskip\\
|
||||
Holly\bigskip\\
|
||||
Jess\bigskip\\
|
||||
Joe\bigskip\\
|
||||
Julia\bigskip\\
|
||||
Julian\bigskip\\
|
||||
Juliet
|
||||
}
|
||||
\parbox[c][\boxheight]{\textwidth-5cm}{\graphpaper[1](0,0)(25,36)}
|
||||
\newcommand{\expotitle}{
|
||||
% makes the title page
|
||||
\thispagestyle{empty}
|
||||
\centering
|
||||
\ \vspace{3cm}\\
|
||||
{\Large Cambridge University Caving Club}
|
||||
\bigskip
|
||||
\vspace{5mm}
|
||||
{\Huge \bf Expo \the\year}
|
||||
\vspace{2cm}
|
||||
\textgoth{\fontsize{100}{120}\selectfont Bier Book}
|
||||
\vspace{6 cm}\\
|
||||
{[}Stick obligatory G{\"o}sser label here{]}
|
||||
\vfill
|
||||
\clearpage
|
||||
}
|
||||
|
||||
\newcommand{\tallyB}{%
|
||||
\medskip
|
||||
\parbox[c][\boxheight]{1.5cm}{
|
||||
\small
|
||||
\setlength{\bigskipamount}{8.25pt}
|
||||
Katey\bigskip\\
|
||||
Martin\bigskip\\
|
||||
Matt\bigskip\\
|
||||
Michael\bigskip\\
|
||||
Mike\bigskip\\
|
||||
Nathanael\bigskip\\
|
||||
Neil\bigskip\\
|
||||
Noel\bigskip\\
|
||||
Pete\bigskip\\
|
||||
Rob A\bigskip\\
|
||||
Rob W\bigskip\\
|
||||
Sam\bigskip\\
|
||||
Sophie D\bigskip\\
|
||||
Sophie H\bigskip\\
|
||||
Wookey \bigskip\\
|
||||
\ldots\ldots\ldots\bigskip\\
|
||||
\ldots\ldots\ldots\bigskip\\
|
||||
\ldots\ldots\ldots
|
||||
}
|
||||
\parbox[c][\boxheight]{\textwidth-5cm}{\graphpaper[1](0,0)(25,36)}
|
||||
\newcommand{\expoheading}[1]{
|
||||
% provides the formatting for a title of a section
|
||||
\vspace{10pt}
|
||||
{\LARGE #1}
|
||||
\vspace{20pt}
|
||||
}
|
||||
|
||||
\newcommand{\datetallyfirst}{%
|
||||
\renewcommand{\arraystretch}{1.25}
|
||||
\begin{tabularx}{\textwidth}{lp{2.5cm}lp{2.5cm}lp{2.5cm}}
|
||||
& {\bf 19-25 Jul} && {\bf 26 Jul - 1 Aug} && {\bf 2-8 Aug}\smallskip\\
|
||||
{\bf Adam} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Aled} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Andrea} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Andrew} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Becka} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Chris} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf David M} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf David W} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Dour} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Elaine} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Fleur} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Gina} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Holly} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Jess} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Joe} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Julia} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Julian} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Juliet} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
\newcommand{\drinkstally}[2]{
|
||||
% argument is the title, second is the starting number for the tally
|
||||
% longtable, generated from the list of names
|
||||
% uses drinkstallyline for each line
|
||||
\addcontentsline{toc}{section}{#1}
|
||||
\openin\namesread=names.txt
|
||||
\setcounter{linecount}{0}
|
||||
\begin{longtable}{rc}
|
||||
\multicolumn{2}{l}{\expoheading{#1}} \\
|
||||
&
|
||||
\drinkstallynumbers{#2}
|
||||
\\
|
||||
\endfirsthead
|
||||
&
|
||||
\drinkstallynumbers{#2}
|
||||
\\
|
||||
\endhead
|
||||
&
|
||||
\drinkstallynumbers{#2}
|
||||
\\
|
||||
\endfoot
|
||||
|
||||
|
||||
|
||||
\end{tabularx}
|
||||
\newpage
|
||||
\begin{tabularx}{\textwidth}{lp{2.5cm}lp{2.5cm}lp{2.5cm}}
|
||||
& {\bf 19-25 Jul} && {\bf 26 Jul - 1 Aug} && {\bf 2-8 Aug}\smallskip\\
|
||||
{\bf Katey} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Martin} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Matt} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Michael} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Mike} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Nathanael} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Neil} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Noel} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Pete} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Rob A} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Rob W} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Sam} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Sophie D} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Sophie H} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf Wookey } & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf \ldots\ldots\ldots} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf \ldots\ldots\ldots} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
{\bf \ldots\ldots\ldots} & \boxes[7] && \boxes[7] && \boxes[7]\medskip\\
|
||||
\end{tabularx}
|
||||
\renewcommand{\arraystretch}{1}
|
||||
\whiledo{\value{linecount}<\value{maxlines}}{
|
||||
\stepcounter{linecount}
|
||||
\read\namesread to \currentname
|
||||
\drinkstallyline{\currentname}
|
||||
}
|
||||
|
||||
|
||||
|
||||
\newcommand{\datetallysecond}{%
|
||||
\renewcommand{\arraystretch}{1.25}
|
||||
\begin{tabularx}{\textwidth}{lp{2.5cm}lp{2.5cm}lp{2.5cm}}
|
||||
& {\bf 9-15 Aug} && {\bf 16-22 Aug} && {\bf 23-24 Aug} \smallskip\\
|
||||
{\bf Adam} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Aled} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Andrea} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Andrew} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Becka} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Chris} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf David M} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf David W} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Dour} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Elaine} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Fleur} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Gina} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Holly} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Jess} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Joe} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Julia} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Julian} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Juliet} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
\end{tabularx}
|
||||
\newpage
|
||||
\begin{tabularx}{\textwidth}{lp{2.5cm}lp{2.5cm}lp{2.5cm}}
|
||||
& {\bf 9-15 Aug} && {\bf 16-22 Aug} && {\bf 23-24 Aug}\smallskip\\
|
||||
{\bf Katey} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Martin} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Matt} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Michael} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Mike} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Nathanael} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Neil} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Noel} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Pete} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Rob A} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Rob W} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Sam} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Sophie D} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Sophie H} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf Wookey } & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf \ldots\ldots\ldots} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf \ldots\ldots\ldots} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
{\bf \ldots\ldots\ldots} & \boxes[7] && \boxes[7] && \boxes[2]\medskip\\
|
||||
\end{tabularx}
|
||||
\renewcommand{\arraystretch}{1}
|
||||
\end{longtable}
|
||||
\clearpage
|
||||
}
|
||||
|
||||
\newcommand{\transporttable}{%
|
||||
\begin{tabularx}{\textwidth}{l|l|l|X}
|
||||
{\bf Method}&{\bf Left UK}&{\bf Arrived}
|
||||
&{\bf Notes}\\\hline
|
||||
\rule{0pt}{13cm} &&&
|
||||
\end{tabularx}}
|
||||
\newcommand{\drinkstallyline}[1]{
|
||||
% argument is the name on the line
|
||||
% boxes are a tikz grid
|
||||
\begin{tikzpicture}
|
||||
\pgfmathsetmacro{\wvar}{0.4}
|
||||
\node at (0,0.6*\wvar) [anchor=east] {#1};
|
||||
\node at (0,0) {};
|
||||
\node at (0,2*\wvar) {};
|
||||
\end{tikzpicture}
|
||||
\and
|
||||
\begin{tikzpicture}
|
||||
\pgfmathsetmacro{\wvar}{0.4}
|
||||
\foreach \xvar in {0,1,2,3,4}
|
||||
{
|
||||
\foreach \yvar in {0,1}
|
||||
{
|
||||
\foreach \zvar in {0,5.5,11,16.5,22}
|
||||
{
|
||||
\draw (\xvar*\wvar+\zvar*\wvar,\yvar*\wvar) -- ++ (0,\wvar) -- ++ (\wvar,0) -- ++ (0,-\wvar) -- cycle;
|
||||
}
|
||||
}
|
||||
}
|
||||
\end{tikzpicture}
|
||||
\\
|
||||
}
|
||||
|
||||
\newcounter{drinksnumber}
|
||||
|
||||
\newcommand{\drinkstallynumbers}[1]{
|
||||
% argument is the starting number
|
||||
\setcounter{drinksnumber}{#1}
|
||||
\begin{tikzpicture}
|
||||
\pgfmathsetmacro{\wvar}{0.4}
|
||||
\foreach \xvar in {0,5.5,11,16.5,22,27.5}
|
||||
{
|
||||
\node at (\xvar*\wvar,0) [anchor=center] {\arabic{drinksnumber}};
|
||||
\node at (\xvar*\wvar,0.4) {};
|
||||
\addtocounter{drinksnumber}{10}
|
||||
}
|
||||
\end{tikzpicture}
|
||||
}
|
||||
|
||||
\newcommand{\nightstally}[5]{
|
||||
% arguments are the title, subheading information, and dates for the three weeks
|
||||
% longtable, generated from the list of names
|
||||
% uses nightstallyline for each line
|
||||
% footer of day of the week, possibly also as a second header under the dates
|
||||
\addcontentsline{toc}{section}{#1}
|
||||
\openin\namesread=names.txt
|
||||
\setcounter{linecount}{0}
|
||||
\begin{longtable}{rccc}
|
||||
\multicolumn{4}{l}{\expoheading{#1}} \\
|
||||
\multicolumn{4}{p{14cm}}{#2} \\
|
||||
\tikz{\node at (0,0.5) {}; \node at (0,0) {};} & #3 & #4 & #5 \\
|
||||
\tikz{\node at (0,0.5) {}; \node at (0,0) {};} & \weekdays & \weekdays & \weekdays \\
|
||||
\endfirsthead
|
||||
\tikz{\node at (0,0.5) {}; \node at (0,0) {};} & #3 & #4 & #5 \\
|
||||
\tikz{\node at (0,0.5) {}; \node at (0,0) {};} & \weekdays & \weekdays & \weekdays \\
|
||||
\endhead
|
||||
\tikz{\node at (0,0.5) {}; \node at (0,0) {};} & \weekdays & \weekdays & \weekdays \\
|
||||
\endfoot
|
||||
|
||||
\newcommand{\transporttablelong}{%
|
||||
\begin{tabularx}{\textwidth}{l|l|l|X}
|
||||
{\bf Method}&{\bf Left UK}&{\bf Arrived}
|
||||
&{\bf Notes}\\\hline
|
||||
\rule{0pt}{16cm} &&&
|
||||
\end{tabularx}}
|
||||
\whiledo{\value{linecount}<\value{maxlines}}{
|
||||
\stepcounter{linecount}
|
||||
\read\namesread to \currentname
|
||||
\nightstallyline{\currentname}
|
||||
}
|
||||
|
||||
\end{longtable}
|
||||
\clearpage
|
||||
}
|
||||
|
||||
\newcommand{\karintable}{%
|
||||
\begin{tabularx}{\textwidth}{l|X|X}
|
||||
{\bf Creditor}&{\bf Date}&{\bf Amount}
|
||||
\\\hline
|
||||
\rule{0pt}{13cm} &&
|
||||
\end{tabularx}}
|
||||
\newcommand{\nightstallyline}[1]{
|
||||
% argument is the name on the line
|
||||
% boxes are a tikz grid
|
||||
\begin{tikzpicture}
|
||||
\pgfmathsetmacro{\wvar}{0.5}
|
||||
\node at (0,0.3*\wvar) [anchor=east] {#1};
|
||||
\node at (0,0) {};
|
||||
\node at (0,\wvar) {};
|
||||
\end{tikzpicture}
|
||||
\and
|
||||
\begin{tikzpicture}
|
||||
\pgfmathsetmacro{\wvar}{0.5}
|
||||
\foreach \yvar in {0,1,2,3,4,5,6}
|
||||
{
|
||||
\draw (\yvar*\wvar,0) -- ++ (0,\wvar) -- ++ (\wvar,0) -- ++ (0,-\wvar) -- cycle;
|
||||
}
|
||||
\end{tikzpicture}
|
||||
\and
|
||||
\begin{tikzpicture}
|
||||
\pgfmathsetmacro{\wvar}{0.5}
|
||||
\foreach \yvar in {0,1,2,3,4,5,6}
|
||||
{
|
||||
\draw (\yvar*\wvar,0) -- ++ (0,\wvar) -- ++ (\wvar,0) -- ++ (0,-\wvar) -- cycle;
|
||||
}
|
||||
\end{tikzpicture}
|
||||
\and
|
||||
\begin{tikzpicture}
|
||||
\pgfmathsetmacro{\wvar}{0.5}
|
||||
\foreach \yvar in {0,1,2,3,4,5,6}
|
||||
{
|
||||
\draw (\yvar*\wvar,0) -- ++ (0,\wvar) -- ++ (\wvar,0) -- ++ (0,-\wvar) -- cycle;
|
||||
}
|
||||
\end{tikzpicture}
|
||||
\\
|
||||
}
|
||||
|
||||
\newcommand{\seshtable}{%
|
||||
\begin{tabularx}{\textwidth}{l|l|X|l}
|
||||
{\bf Debtor(s)}&{\bf Creditor}&{\bf Description}&{\bf Cost}
|
||||
\\\hline
|
||||
\rule{0pt}{13cm} &&&
|
||||
\end{tabularx}}
|
||||
\newcommand{\weekdays}{
|
||||
\begin{tikzpicture}
|
||||
\pgfmathsetmacro{\wvar}{0.5}
|
||||
\foreach \yvar/\zvar in {0/S,1/M,2/T,3/W,4/T,5/F,6/S}
|
||||
{
|
||||
\node at (\yvar*\wvar,0) [anchor=center] {\zvar};
|
||||
}
|
||||
\end{tikzpicture}
|
||||
}
|
||||
|
||||
\newcommand{\seshtabletwo}{%
|
||||
\begin{tabularx}{\textwidth}{l|l|X|l}
|
||||
{\bf Debtor(s)}&{\bf Creditor}&{\bf Description}&{\bf Cost}
|
||||
\\\hline
|
||||
\rule{0pt}{16cm} &&&
|
||||
\end{tabularx}}
|
||||
\newcommand{\nightssubtitle}{
|
||||
Please record where you spent each night. / = basecamp, S = stonebridge bivvy, B = bivvying elsewhere.
|
||||
}
|
||||
|
||||
\newcommand{\inaustriatranstable}{%
|
||||
\begin{tabularx}{\textwidth}{l|l|X|l}
|
||||
{\bf Driver}&{\bf Passengers}&{\bf Description}&{\bf Approx Dist}
|
||||
\\\hline
|
||||
\rule{0pt}{13cm} &&&
|
||||
\end{tabularx}}
|
||||
\newcommand{\timesubtitle}{
|
||||
For boasting purposes only.
|
||||
}
|
||||
|
||||
\newcommand{\inaustriatranstabletwo}{%
|
||||
\begin{tabularx}{\textwidth}{l|l|X|l}
|
||||
{\bf Driver}&{\bf Passengers}&{\bf Description}&{\bf Approx Dist}
|
||||
\\\hline
|
||||
\rule{0pt}{16cm} &&&
|
||||
\end{tabularx}}
|
||||
\newcommand{\expoweather}[1]{
|
||||
% argument is the start date of the expo
|
||||
% longtable generated from incremeting the date for 6 weeks
|
||||
% simple box in which to write what happened
|
||||
\begin{longtable}{|l|p{10cm}|}
|
||||
\multicolumn{4}{l}{\expoheading{Expo Transport}} \\
|
||||
\endfirsthead
|
||||
\expoweatherweek{}
|
||||
\expoweatherweek{}
|
||||
\expoweatherweek{}
|
||||
\expoweatherweek{}
|
||||
\expoweatherweek{}
|
||||
\expoweatherweek{}
|
||||
\end{longtable}
|
||||
}
|
||||
|
||||
\newcommand{\expoweatherline}[1]{
|
||||
% argument is the day text
|
||||
\begin{tikzpicture}
|
||||
\pgfmathsetmacro{\wvar}{1.5}
|
||||
\node at (0,0.3*\wvar) [anchor=east] {#1};
|
||||
\node at (0,0) {};
|
||||
\node at (0,\wvar) {};
|
||||
\end{tikzpicture}
|
||||
& \\
|
||||
\midrule
|
||||
}
|
||||
|
||||
\newcommand{\moneytable}{%
|
||||
\begin{tabularx}{\textwidth}{l|l|X|l}
|
||||
{\bf Date}&{\bf Owed by}&{\bf Description}
|
||||
&{\bf Amount}\\\hline
|
||||
&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\
|
||||
&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\
|
||||
&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\
|
||||
&&&\\&&&
|
||||
\end{tabularx}}
|
||||
\newcommand{\expoweatherweek}[1]{
|
||||
% argument is the start of the week
|
||||
\midrule
|
||||
\expoweatherline{Monday}
|
||||
\expoweatherline{Tuesday}
|
||||
\expoweatherline{Wednesday}
|
||||
\expoweatherline{Thursday}
|
||||
\expoweatherline{Friday}
|
||||
\expoweatherline{Saturday}
|
||||
\expoweatherline{Sunday}
|
||||
}
|
||||
|
||||
\newcommand{\moneytabletwo}{%
|
||||
\begin{tabularx}{\textwidth}{l|l|X|l}
|
||||
{\bf Date}&{\bf Owed by}&{\bf Description}
|
||||
&{\bf Amount}\\\hline
|
||||
&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\
|
||||
&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\
|
||||
&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\
|
||||
&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\&&&\\&&&
|
||||
\end{tabularx}}
|
||||
\newcommand{\expotransport}{
|
||||
% longtable to spread over multiple pages
|
||||
% method / departed / arrived / notes
|
||||
\addcontentsline{toc}{chapter}{Expo Transport}
|
||||
\begin{longtable}{p{2cm}|p{2cm}|p{2cm}|p{8cm}}
|
||||
\multicolumn{4}{l}{\expoheading{Expo Transport}} \\
|
||||
Method & Departed & Arrived & Notes \\
|
||||
\midrule
|
||||
\endfirsthead
|
||||
Method & Departed & Arrived & Notes \\
|
||||
\midrule
|
||||
\endhead
|
||||
\vspace{20.3cm} & & & \\
|
||||
\vspace{22cm} & & & \\
|
||||
\end{longtable}
|
||||
}
|
||||
|
||||
\newcommand{\money}[1]{\chapter{Money to be paid to #1} {\small Please enter
|
||||
each transaction only once in this book; either a positive credit to one
|
||||
account, or a negative debit to another. Record the currency for each
|
||||
entry.}\bigskip\\
|
||||
\moneytable\newpage\moneytabletwo}
|
||||
\newcommand{\moneypaid}{
|
||||
% creates a series of pages for the money paid to individuals
|
||||
% each person gets a page as made by moneypaidperson
|
||||
% generated from the names list
|
||||
\addcontentsline{toc}{chapter}{Money paid to ...}
|
||||
|
||||
\openin\namesread=names.txt
|
||||
\setcounter{linecount}{0}
|
||||
|
||||
\whiledo{\value{linecount}<\value{maxlines}}{
|
||||
\stepcounter{linecount}
|
||||
\read\namesread to \currentname
|
||||
\moneypaidperson{\currentname}
|
||||
}
|
||||
}
|
||||
|
||||
\newcommand{\moneypaidperson}[1]{
|
||||
% argument is who the money is to be paid to
|
||||
% longtable to spread over multiple pages
|
||||
% date / owed by / description
|
||||
\addcontentsline{toc}{section}{#1}
|
||||
\begin{longtable}{p{2cm}|p{2cm}|p{10cm}}
|
||||
\multicolumn{3}{l}{\expoheading{Money paid to #1}} \\
|
||||
\multicolumn{3}{p{\textwidth}}{Please include each transaction only once, either as positive credit or a negative debit. \vspace{1cm}} \\
|
||||
Date & Creditor & Notes \\
|
||||
\midrule
|
||||
\endfirsthead
|
||||
Date & Creditor & Notes \\
|
||||
\midrule
|
||||
\endhead
|
||||
\vspace{18.3cm} & & \\
|
||||
\vspace{22cm} & & \\
|
||||
\end{longtable}
|
||||
\clearpage
|
||||
}
|
||||
|
||||
\newcommand{\moneypaidgasthof}{
|
||||
% argument is who the money is to be paid to
|
||||
% longtable to spread over multiple pages
|
||||
% date / owed by / description
|
||||
\addcontentsline{toc}{chapter}{Money paid to Karin}
|
||||
\begin{longtable}{p{2cm}|p{2cm}|p{10cm}}
|
||||
\multicolumn{3}{l}{\expoheading{Money paid to Karin}} \\
|
||||
Date & Creditor & Notes \\
|
||||
\midrule
|
||||
\endfirsthead
|
||||
Date & Creditor & Notes \\
|
||||
\midrule
|
||||
\endhead
|
||||
\vspace{18.3cm} & & \\
|
||||
\vspace{22cm} & & \\
|
||||
\end{longtable}
|
||||
\clearpage
|
||||
}
|
||||
|
||||
\newcommand{\blankpage}[1]{
|
||||
% for creating a double page with nothing but a title
|
||||
% longtable to consistent formatting
|
||||
\addcontentsline{toc}{chapter}{#1}
|
||||
\begin{longtable}{p{\textwidth}}
|
||||
\expoheading{#1} \\
|
||||
\vspace{\textheight} \\
|
||||
\end{longtable}
|
||||
}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\newfont{\gothic}{ygoth scaled \magstep5}
|
||||
\thispagestyle{empty}
|
||||
\begin{center}
|
||||
\ \vspace{3cm}\\
|
||||
{\Large Cambridge University Caving Club}\bigskip\\
|
||||
\vspace{5mm}
|
||||
{\Huge \bf Expo 2014}\\
|
||||
\vspace{2cm}
|
||||
{\Huge \sc \gothic Bier Book}\\
|
||||
\vfill
|
||||
\end{center}
|
||||
\newread\namesread
|
||||
\newcounter{maxlines}
|
||||
\newcounter{linecount}
|
||||
\def\and{&}
|
||||
|
||||
\newpage
|
||||
\openin\namesread=names.txt
|
||||
\loop\unless\ifeof\namesread
|
||||
\read\namesread to \currentname
|
||||
\stepcounter{maxlines}
|
||||
\repeat
|
||||
\addtocounter{maxlines}{-1}
|
||||
|
||||
\ \vspace{12cm}\\
|
||||
Revision 1, 10 July 2014.
|
||||
\newread\datesread
|
||||
\openin\datesread=dates.txt
|
||||
\read\datesread to \firstweek
|
||||
\read\datesread to \secondweek
|
||||
\read\datesread to \thirdweek
|
||||
\read\datesread to \fourthweek
|
||||
\read\datesread to \fifthweek
|
||||
\read\datesread to \sixthweek
|
||||
|
||||
\newpage
|
||||
|
||||
|
||||
\tableofcontents
|
||||
|
||||
\clearpage
|
||||
\thispagestyle{empty}
|
||||
\hfill
|
||||
\expotitle
|
||||
\printtoc
|
||||
\cleardoublepage
|
||||
this page intentionally left blank
|
||||
\clearpage
|
||||
|
||||
\chapter{Bier Tally (1-50)}
|
||||
\tallyA
|
||||
\newpage
|
||||
{\chapterfont Bier Tally (1-50) cont'd}
|
||||
\addcontentsline{toc}{chapter}{Drinks}
|
||||
\drinkstally{Bier 1-50}{0}
|
||||
\drinkstally{Bier 51-100}{50}
|
||||
\drinkstally{Limo 1-50}{0}
|
||||
\drinkstally{Limo 51-100}{50}
|
||||
\drinkstally{Other Drinks (specify)}{0}
|
||||
\drinkstally{Noteable farts}{0}
|
||||
|
||||
\tallyB
|
||||
\addcontentsline{toc}{chapter}{Nights}
|
||||
\nightstally{Nights Weeks 1-3}{\nightssubtitle}{\firstweek}{\secondweek}{\thirdweek}
|
||||
\nightstally{Nights Weeks 4-6}{\nightssubtitle}{\fourthweek}{\fifthweek}{\sixthweek}
|
||||
\nightstally{Time underground Weeks 1-3}{\timesubtitle}{\firstweek}{\secondweek}{\thirdweek}
|
||||
\nightstally{Time underground Weeks 4-6}{\timesubtitle}{\fourthweek}{\fifthweek}{\sixthweek}
|
||||
|
||||
\moneypaid
|
||||
\moneypaidgasthof
|
||||
|
||||
\expotransport
|
||||
%\expoweather{arg1}
|
||||
|
||||
\blankpage{Squashed Flies}
|
||||
\blankpage{Toll road info}
|
||||
\blankpage{In Austria Jollies}
|
||||
\blankpage{Suggestions for next year}
|
||||
\blankpage{Gear left up the hill}
|
||||
\blankpage{Quotes}
|
||||
|
||||
|
||||
\chapter{More Bier (51-100)}
|
||||
\setcounter{gridstart}{50}
|
||||
\tallyA
|
||||
\newpage
|
||||
{\chapterfont More Bier (51-100) cont'd}
|
||||
|
||||
\setcounter{gridstart}{50}
|
||||
\tallyB
|
||||
|
||||
|
||||
\chapter{Even More Bier (101-150)}
|
||||
\setcounter{gridstart}{100}
|
||||
\tallyA
|
||||
\newpage
|
||||
{\chapterfont Even More Bier (101-150) cont'd}
|
||||
|
||||
\setcounter{gridstart}{100}
|
||||
\tallyB
|
||||
|
||||
|
||||
\chapter{Dunkel Bier (1-50)}
|
||||
\setcounter{gridstart}{150}
|
||||
\tallyA
|
||||
\newpage
|
||||
{\chapterfont Dunkel Bier (1-50) cont'd}
|
||||
|
||||
\setcounter{gridstart}{150}
|
||||
\tallyB
|
||||
|
||||
|
||||
\chapter{Limo Tally (1-50)}
|
||||
\setcounter{gridstart}{0}
|
||||
\tallyA
|
||||
\newpage
|
||||
{\chapterfont Limo Tally (1-50) cont'd}
|
||||
|
||||
\setcounter{gridstart}{0}
|
||||
\tallyB
|
||||
|
||||
|
||||
\chapter{More Limo (51-100)}
|
||||
\setcounter{gridstart}{50}
|
||||
\tallyA
|
||||
\newpage
|
||||
{\chapterfont More Limo (51-100) cont'd}
|
||||
|
||||
\setcounter{gridstart}{50}
|
||||
\tallyB
|
||||
|
||||
|
||||
\chapter{Notable Farts}
|
||||
\setcounter{gridstart}{0}
|
||||
\tallyA
|
||||
\newpage
|
||||
{\chapterfont Notable Farts cont'd}
|
||||
|
||||
\setcounter{gridstart}{0}
|
||||
\tallyB
|
||||
|
||||
|
||||
\chapter{Number of Showers}
|
||||
\setcounter{gridstart}{0}
|
||||
\tallyA
|
||||
\newpage
|
||||
{\chapterfont Number of Showers cont'd}
|
||||
|
||||
\setcounter{gridstart}{0}
|
||||
\tallyB
|
||||
|
||||
|
||||
\chapter{Expo Transport}
|
||||
\transporttable
|
||||
\newpage\transporttablelong
|
||||
\newpage\transporttablelong
|
||||
|
||||
|
||||
\chapter{Money paid to Karin}
|
||||
\karintable
|
||||
|
||||
|
||||
\chapter{Nights Tally (weeks 1 to 3)}
|
||||
{\small {\bf /} = Base Camp; {\bf S} = stone bridge; {\bf B} = bivvying elsewhere.}
|
||||
|
||||
\datetallyfirst
|
||||
|
||||
|
||||
\chapter{Nights Tally (weeks 4 and 5)}
|
||||
{\small {\bf /} = Base Camp; {\bf S} = stone bridge; {\bf B} = bivvying elsewhere.}
|
||||
|
||||
\datetallysecond
|
||||
|
||||
|
||||
\chapter{Time Underground Tally (weeks 1 to 3)}
|
||||
\datetallyfirst
|
||||
|
||||
|
||||
\chapter{Time Underground Tally (weeks 4 and 5)}
|
||||
\datetallysecond
|
||||
|
||||
|
||||
\chapter{Expo Weather}
|
||||
|
||||
\begin{tabularx}{\textwidth}{|l|X|}
|
||||
\hline
|
||||
Sat 19\textsuperscript{th} July & \\&\\\hline
|
||||
Sun 20\textsuperscript{th} July & \\&\\\hline
|
||||
Mon 21\textsuperscript{th} July & \\&\\\hline
|
||||
Tue 22\textsuperscript{th} July & \\&\\\hline
|
||||
Wed 23\textsuperscript{th} July & \\&\\\hline
|
||||
Thu 24\textsuperscript{st} July & \\&\\\hline
|
||||
Fri 25\textsuperscript{nd} July & \\&\\\hline\hline
|
||||
Sat 26\textsuperscript{rd} July & \\&\\\hline
|
||||
Sun 27\textsuperscript{th} July & \\&\\\hline
|
||||
Mon 28\textsuperscript{th} July & \\&\\\hline
|
||||
Tue 29\textsuperscript{th} July & \\&\\\hline
|
||||
Wed 30\textsuperscript{th} July & \\&\\\hline
|
||||
Thu 31\textsuperscript{th} July & \\&\\\hline
|
||||
Fri 1\textsuperscript{th} August & \\&\\\hline\hline
|
||||
Sat 2\textsuperscript{th} August & \\&\\\hline
|
||||
Sun 3\textsuperscript{th} August & \\&\\\hline
|
||||
Mon 4\textsuperscript{th} August & \\&\\\hline
|
||||
\end{tabularx}
|
||||
|
||||
\newpage
|
||||
\begin{tabularx}{\textwidth}{|l|X|}
|
||||
\hline
|
||||
Tue 5\textsuperscript{th} August & \\&\\\hline
|
||||
Wed 6\textsuperscript{th} August & \\&\\\hline
|
||||
Thu 7\textsuperscript{th} August & \\&\\\hline
|
||||
Fri 8\textsuperscript{th} August & \\&\\\hline\hline
|
||||
Sat 9\textsuperscript{th} August & \\&\\\hline
|
||||
Sun 10\textsuperscript{th} August & \\&\\\hline
|
||||
Mon 11\textsuperscript{th} August & \\&\\\hline
|
||||
Tue 12\textsuperscript{th} August & \\&\\\hline
|
||||
Wed 13\textsuperscript{st} August & \\&\\\hline
|
||||
Thu 14\textsuperscript{nd} August & \\&\\\hline
|
||||
Fri 15\textsuperscript{rd} August & \\&\\\hline\hline
|
||||
Sat 16\textsuperscript{th} August & \\&\\\hline
|
||||
Sun 17\textsuperscript{th} August & \\&\\\hline
|
||||
Mon 18\textsuperscript{th} August & \\&\\\hline
|
||||
Tue 19\textsuperscript{th} August & \\&\\\hline
|
||||
Wed 20\textsuperscript{th} August & \\&\\\hline
|
||||
Thu 21\textsuperscript{th} August & \\&\\\hline
|
||||
Fri 22\textsuperscript{th} August & \\&\\\hline\hline
|
||||
Sat 23\textsuperscript{st} August & \\&\\\hline
|
||||
Sun 24\textsuperscript{st} August & \\&\\\hline
|
||||
\end{tabularx}
|
||||
|
||||
\chapter{Toll Road Info}
|
||||
|
||||
\chapter{In Austria Jollies}
|
||||
|
||||
Please record details of all excursions over 10km.\\
|
||||
|
||||
\inaustriatranstable
|
||||
|
||||
\inaustriatranstabletwo
|
||||
|
||||
\inaustriatranstabletwo
|
||||
|
||||
\clearpage
|
||||
\thispagestyle{empty}
|
||||
\hfill
|
||||
\clearpage
|
||||
|
||||
\chapter{Squashed Flies Page}
|
||||
|
||||
|
||||
\money{Adam}
|
||||
\money{Aled}
|
||||
\money{Andrea}
|
||||
\money{Andrew}
|
||||
\money{Becka}
|
||||
\money{Chris}
|
||||
\money{David M}
|
||||
\money{David W}
|
||||
\money{Dour}
|
||||
\money{Elaine}
|
||||
\money{Fleur}
|
||||
\money{Gina}
|
||||
\money{Holly}
|
||||
\money{Jess}
|
||||
\money{Joe}
|
||||
\money{Julia}
|
||||
\money{Julian}
|
||||
\money{Juliet}
|
||||
\money{Katey}
|
||||
\money{Martin}
|
||||
\money{Matt}
|
||||
\money{Michael}
|
||||
\money{Mike}
|
||||
\money{Nathanael}
|
||||
\money{Neil}
|
||||
\money{Noel}
|
||||
\money{Pete}
|
||||
\money{Rob A}
|
||||
\money{Rob W}
|
||||
\money{Sam}
|
||||
\money{Sophie D}
|
||||
\money{Sophie H}
|
||||
\money{Wookey }
|
||||
\money{\ldots\ldots\ldots}
|
||||
\money{\ldots\ldots\ldots}
|
||||
\money{\ldots\ldots\ldots}
|
||||
|
||||
|
||||
\chapter{Dinner Choices}
|
||||
\renewcommand{\arraystretch}{1.5}
|
||||
\begin{tabularx}{\textwidth}{|l||X|X|X|c|}
|
||||
\hline
|
||||
{\bf Attendee}&{\bf Starter}&{\bf Main Course}&{\bf Dessert}&{\bf Cost} \\ \hline\hline
|
||||
Adam &&&& \\ \hline
|
||||
Aled &&&& \\ \hline
|
||||
Andrea &&&& \\ \hline
|
||||
Andrew &&&& \\ \hline
|
||||
Becka &&&& \\ \hline
|
||||
Chris &&&& \\ \hline
|
||||
David M &&&& \\ \hline
|
||||
David W &&&& \\ \hline
|
||||
Dour &&&& \\ \hline
|
||||
Elaine &&&& \\ \hline
|
||||
Fleur &&&& \\ \hline
|
||||
Gina &&&& \\ \hline
|
||||
Holly &&&& \\ \hline
|
||||
Jess &&&& \\ \hline
|
||||
Joe &&&& \\ \hline
|
||||
Julia &&&& \\ \hline
|
||||
Julian &&&& \\ \hline
|
||||
Juliet &&&& \\ \hline
|
||||
\end{tabularx}
|
||||
\newpage
|
||||
\vspace{1cm}
|
||||
\begin{tabularx}{\textwidth}{|l||X|X|X|c|}
|
||||
\hline
|
||||
{\bf Attendee}&{\bf Starter}&{\bf Main Course}&{\bf Dessert}&{\bf Cost} \\ \hline\hline
|
||||
Katey &&&& \\ \hline
|
||||
Martin &&&& \\ \hline
|
||||
Matt &&&& \\ \hline
|
||||
Michael &&&& \\ \hline
|
||||
Mike &&&& \\ \hline
|
||||
Nathanael &&&& \\ \hline
|
||||
Neil &&&& \\ \hline
|
||||
Noel &&&& \\ \hline
|
||||
Pete &&&& \\ \hline
|
||||
Rob A &&&& \\ \hline
|
||||
Rob W &&&& \\ \hline
|
||||
Sam &&&& \\ \hline
|
||||
Sophie D &&&& \\ \hline
|
||||
Sophie H &&&& \\ \hline
|
||||
Wookey &&&& \\ \hline
|
||||
&&&& \\ \hline
|
||||
&&&& \\ \hline
|
||||
&&&& \\ \hline
|
||||
\end{tabularx}
|
||||
\renewcommand{\arraystretch}{1}
|
||||
|
||||
|
||||
\chapter{Gear taken up the hill}
|
||||
\newpage\
|
||||
|
||||
\chapter{Stuff left in Austria}
|
||||
\newpage\ \newpage\ \newpage\
|
||||
|
||||
|
||||
\chapter{Expo Suggestions}
|
||||
\newpage\ \newpage\
|
||||
|
||||
\chapter{Quotes}
|
||||
|
||||
\newpage\ \newpage
|
||||
\newpage\ \newpage
|
||||
\newpage\ \newpage
|
||||
\newpage\ \newpage
|
||||
\newpage\ \newpage
|
||||
\newpage\ \newpage
|
||||
\newpage\ \newpage
|
||||
\newpage\ \newpage
|
||||
\newpage\ \newpage
|
||||
\newpage\ \newpage
|
||||
\newpage\ \newpage
|
||||
\newpage\ \newpage
|
||||
\newpage\ \newpage
|
||||
\end{document}
|
||||
\end{document}
|
||||
Reference in New Issue
Block a user