forked from kojino/cs281-scribe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pagesetup.sty
76 lines (68 loc) · 2.22 KB
/
pagesetup.sty
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
\usepackage{amsfonts,graphicx}
\usepackage{amsfonts,latexsym,amsthm,amssymb,amsmath,euscript}
\usepackage{mathrsfs,manfnt,enumitem,stmaryrd}
\usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
% since we're using the custom \lecture definition, we want to recenter around that
\setcounter{tocdepth}{1}
\newcounter{lecnum}
\renewcommand{\thesubsection}{\thelecnum.\arabic{subsection}}
\renewcommand{\theequation}{\thelecnum.\arabic{equation}}
\renewcommand{\thefigure}{\thelecnum.\arabic{figure}}
\renewcommand{\thetable}{\thelecnum.\arabic{table}}
% the following macro is used to generate the header.
\newcommand{\lecture}[5]{
\addcontentsline{toc}{section}{#5}
\thispagestyle{plain}
\newpage
\setcounter{lecnum}{#1}
\noindent
\begin{center}
\framebox{
\vbox{\vspace{2mm}
\hbox to 6.28in { {\bf CS281: Advanced ML
\hfill #2, 2017} }
\vspace{4mm}
\hbox to 6.28in { {\Large \hfill Lecture #1: #5 \hfill} }
\vspace{2mm}
\hbox to 6.28in { {\it Lecturer: #3 \hfill Scribes: #4} }
\vspace{2mm}}
}
\end{center}
\markboth{Lecture #1: #5}{Lecture #1: #5}
}
%Use this command for a figure; it puts a figure in wherever you want it.
%usage: \fig{NUMBER}{SPACE-IN-INCHES}{CAPTION}
\newcommand{\fig}[3]{
\vspace{#2}
\begin{center}
Figure \thelecnum.#1:~#3
\end{center}
}
\usepackage{amsfonts,latexsym,amsthm,amssymb,amsmath,euscript}
\usepackage{mathrsfs,manfnt,enumitem,stmaryrd}
\usepackage{graphics}
\usepackage{placeins}
\usepackage{tikz}
\usetikzlibrary{calc, arrows.meta, positioning}
% Use these for theorems, lemmas, proofs, etc.
\newtheorem{proposition}{Proposition}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{postulate}[theorem]{Postulate}
\theoremstyle{definition}
\newtheorem{example}[theorem]{Example}
\theoremstyle{remark}
\newtheorem*{remark}{Remark}
\newtheorem*{notation}{Notation}
\newtheorem*{note}{Note}
%
% Put custom commands for lectures here
%
\newcommand{\E}{\mathbb{E}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\cov}{\text{cov}}
\renewcommand{\v}[1]{\boldsymbol{#1}}
\newcommand{\on}{\operatorname}
\newcommand{\N}{\mathcal{N}}
% \newcommand{\exp}{\on{exp}}