This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
programme.cls
107 lines (89 loc) · 2.55 KB
/
programme.cls
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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{programme}[2019/10/03 programme]
\PassOptionsToClass{pdftex, 12pt, letterpaper, british}{article}
\ProcessOptions\relax
\LoadClass{article}
\RequirePackage[utf8]{inputenc} % Enable UTF-8.
\RequirePackage{titlesec} % Title formatting.
\RequirePackage[british]{babel} % Enforce British English language settings.
\RequirePackage{mathpazo} % Palantino family of fonts.
\RequirePackage[T1]{fontenc} % Enable 8-bit output encoding.
\RequirePackage{enumitem} % Compact enumerate environments.
\setitemize{%
noitemsep,
topsep=0pt,
parsep=10pt,
partopsep=0pt,
leftmargin=0pt,
label={}
}
\RequirePackage{graphicx} % Include figures.
\RequirePackage[scale=0.75]{geometry} % Document geometry configuration
\geometry{%
total={210mm,297mm},
left=5mm,right=5mm,
bindingoffset=5mm, top=0mm,bottom=0mm
}
%% Redefines the spacing before and after section headings.
\titlespacing*{\section}
{0pt}{1.5ex}{1.5ex}
%% Removes section numbering from the section headings.
\titleformat{\section}%
{\bf\large}%
{}{0em} %
{} %
[]
%% The session environment provides the "two column"
%% look, where the first column contains time information,
%% and the second contains the description of the
%% session. The environment takes three arguments: start
%% time, end time, and session title. For example
%% \begin{session}{12:00}{13:00}{Lunch}
%% Lunch will be served.
%% \end{session}
%% renders as
%% 12:00 -- 13:00 Lunch
%% Lunch will be served.
% The widths of the first and second columns.
\newcommand{\fstwidth}{0.2\textwidth}
\newcommand{\sndwidth}{0.7\textwidth}
\newenvironment{session}[3]
{%
\section[#1 -- #2: #3]{
\begin{minipage}{\fstwidth}
#1 -- #2
\end{minipage}
~
\begin{minipage}[t]{\sndwidth}
#3
\end{minipage}
}%
\begin{minipage}{\fstwidth}
~
\end{minipage}
\hspace{1cm}
\begin{minipage}[t]{\sndwidth}}
{\end{minipage}}
%% Change maketitle formatting
\newcommand{\theseminar}{Seminar Series}
\newcommand{\seminar}[1]{\renewcommand{\theseminar}{#1}}
\def\@maketitle{%
\newpage
\null
\begin{center}%
\let \footnote \thanks
{}%
\vskip 1.0em%
{\lineskip .5em%
\huge\bfseries\MakeUppercase{\@title}
}%
\vskip 1em%
\hrule
{\vskip 1em%
\huge\bfseries\theseminar{} }
\end{center}%
\par
\vskip 1.5em}
%% Other useful macros.
\newcommand{\talk}[1]{{\large{\textit{#1}}}}
\endinput