-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathnotes.tex
68 lines (54 loc) · 1.22 KB
/
notes.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
66
67
68
\documentclass{article}
% Gives us lovely headers
\usepackage{fancyhdr}
% Gives us bigger margins on the right (and smaller on the left) for the margin
% paragraphs
\usepackage[left=2cm,
top=1.5cm,
right=5cm,
bottom=2cm,
marginparwidth=4cm,
marginparsep=3mm]{geometry}
% Lets us set the author and title of the compiled pdf file
\usepackage[pdftex]{hyperref}
% Import the packages for the notes
\input{packages.tex}
\input{meta.tex}
% Meta
\author{\Author}
\title{\Title}
% Means that I don't have to type \marginpar{\raggedright \scriptsize every
% time I want a margin paragraph
\makeatletter
\renewcommand{\@marginparreset}{%
\reset@font\scriptsize
\raggedright
\@setminipage
}
\makeatother
\begin{document}
% Set the headers
\rhead{\title}
\chead{}
% Make the title page(s) centered
\newgeometry{left=2cm,
top=1.5cm,
right=2cm,
bottom=2cm,
marginparwidth=0cm,
marginparsep=0mm}
\maketitle
% Get the course info
\courseinfo
\newpage
% Enable multicol
\multicolstrue
% Save pages in large documents by having a multicolumn table of contents!
\begin{mymulticols}
\tableofcontents
\end{mymulticols}
\newpage
% Restore the extra margin geometry
\restoregeometry
\input{content.tex}
\end{document}