This repository was archived by the owner on Apr 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpreamble.tex
More file actions
79 lines (61 loc) · 1.7 KB
/
preamble.tex
File metadata and controls
79 lines (61 loc) · 1.7 KB
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
\usepackage[utf8]{inputenc}
\usepackage{pdfpages}
\usepackage[scaled]{helvet}
\renewcommand*\familydefault{\sfdefault}
\usepackage[T1]{fontenc}
\usepackage{etoolbox,xparse,environ}
% margins
\usepackage[margin=2.25cm]{geometry}
% tables, links etc
\usepackage{tabu,longtable}
\usepackage{hyperref}
% drawings
\usepackage{tikz}
\usetikzlibrary{shapes.misc,shadows}
% Chapter titling
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\normalfont\bfseries}{}{0pt}{\Huge}
\titleformat{\section}[display]
{\normalfont\bfseries}{}{0pt}{\Large}
% misc
\usepackage{lipsum}
% programme
\newif\ifshowProgramme
\showProgrammefalse
\DeclareDocumentCommand{\day}{m}{%
\hfill\\\textbf{\LARGE{#1}}\hfill%
}
\NewEnviron{sessions}{%
\begin{longtabu}[t]{@{}lX[5,l,p]@{}}%
\BODY%
\end{longtabu}%
}
% \session{time}{name}[chair]
\DeclareDocumentCommand{\session}{m m o}{%
\begin{tikzpicture}[baseline=(char.base)]%
\node(char)[draw,fill=white,%
shape=rounded rectangle,%
drop shadow={opacity=.1},%
minimum width=1.8cm]%
{#1};%
\end{tikzpicture} & \large{\textbf{#2}} \\%
\IfValueT{#3}{& \textit{Session chair: #3}\\[.5cm]}%
}
% \event{type}{title}[authors]{id}
\DeclareDocumentCommand{\event}{m m o m}{%
& \begin{tabu}[t]{@{}X[p]@{}}{#2}\vspace{.15cm} \\ {\itshape #3}\vspace{.25cm}\end{tabu} \\[.25cm]
%& \begin{tabu}[t]{@{}X[p]@{}}{\itshape #4}\end{tabu} \\[.5cm]
}
% toc
\newif\ifshowToC
\showToCfalse
\NewEnviron{toc}{%
\begin{longtabu}[t]{@{}lX[5,l,p]@{}}%
\BODY%
\end{longtabu}%
}
% \tocpaper[id]{title}{authors}
\DeclareDocumentCommand{\tocpaper}{o m m}{%
#1 & \begin{tabu}[t]{@{}X[p]@{}}{#2}\vspace{.15cm} \\ {\itshape #3}\vspace{.25cm}\end{tabu} \\[.25cm]
}