-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmathsoc.cls
96 lines (74 loc) · 2.41 KB
/
mathsoc.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
% mathsoc.cls
% Provides overall stationary and universal commands for
% documents written by the Mathematics Society of the
% University of Waterloo.
% 2016-Nov-19 Tristan Potter tristan.potter (at) uwaterloo.ca
% --- Class structure: identification part
% ---
\ProvidesClass{mathsoc}[2016/11/19 version 1.00 MathSoc document]
\NeedsTeXFormat{LaTeX2e}
% --- Class structure: initialization
% ---
% We don't have anything to do
% --- Class structure: declaration of options part
% ---
% This class extends the article class
% Read all the documentclass options; pass them to article,
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
% --- Class structure: execution of options part % ---
\ProcessOptions \relax
% --- Class structure: declaration of options part % ---
\LoadClass{article}
\RequirePackage{tocloft}
\RequirePackage{hyperref}
\RequirePackage{titlesec}
% we are heathens and don't use A4 paper
\RequirePackage[papersize={8.5in,11in},margin=1in]{geometry}
\RequirePackage{pdfpages}
\RequirePackage{graphicx}
\RequirePackage[utf8]{inputenc}
%% MATH
\RequirePackage{amsmath}
\RequirePackage{amsfonts}
\RequirePackage{amssymb}
\RequirePackage{fancyhdr}
\RequirePackage{enumitem}
\RequirePackage{longtable}
\RequirePackage{booktabs}
%% Font things
\RequirePackage[T1]{fontenc}
\RequirePackage{anyfontsize}
\RequirePackage{lmodern} \normalfont %to load T1lmr.fd
\RequirePackage[normalem]{ulem}
\hypersetup{%
colorlinks=false,
linktoc=all
}
% Tranditional Tex commands
\DeclareFontShape{T1}{lmr}{bx}{sc} {<-> ssub * cmr/bx/sc }{}
\titleformat*{\section}{\Large \bfseries \scshape}
\titleformat*{\subsection}{\Large \bfseries \scshape}
\titleformat*{\subsubsection}{\large \bfseries \scshape}
\makeatletter\renewcommand{\@pnumwidth}{9em}\makeatother
\renewcommand{\cftsecnumwidth}{2em}
\renewcommand{\cftsubsecfont}{\rmfamily}
\renewcommand{\cftsubsecnumwidth}{3em}
\renewcommand{\cftsubsubsecfont}{\rmfamily}
\renewcommand{\cftsubsubsecindent}{2.5em}
\renewcommand{\cftsubsubsecnumwidth}{3.4em}
\renewcommand{\familydefault}{\rmdefault}
% Formatting TOC
\setcounter{tocdepth}{2}
% Header stuff
\pagestyle{fancy}
\fancyhead{}
\newcommand{\logo}{../logo.pdf}
\newcommand{\defvar}[2]{\def#1##1{\gdef#2{##1}}#1{}}
% Macros
\newcommand{\HRule}{\rule{\linewidth}{0.4mm}}
\newcommand{\hlabel}{\phantomsection\label}
\newcommand{\mathsoctitle}{\input{../title}}
%% Header stuff
\lhead{}
\chead{}
\rhead{The Mathematics Society}