-
Notifications
You must be signed in to change notification settings - Fork 0
/
texing361.sty
94 lines (78 loc) · 2.62 KB
/
texing361.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
%%Identification
%%The package identifies itself and the LaTeX version needed
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{texing361}[CS 361 LaTeX Helper Package]
% Formatting
\RequirePackage{lineno}
\RequirePackage{verbatim}
\RequirePackage{enumerate}
\RequirePackage[english]{babel}
\RequirePackage[utf8]{inputenc}
\RequirePackage[margin=1in]{geometry}
\RequirePackage[shortlabels]{enumitem}
\RequirePackage[titletoc, title]{appendix}
\RequirePackage{fancyhdr, clrscode, tabularx, color}
% Redefinition of the footer and header for "plain" page style to add header, footer, and page number on the first page
\fancypagestyle{plain}{
\fancyhf{}
\lhead{University of Illinois, Urbana-Champaign}
\rhead{CS 361}
\rfoot{Page \thepage}
}
% Header and Footer
\pagestyle{fancy}
\fancyhf{}
\rhead{CS 361}
\lhead{University of Illinois, Urbana-Champaign}
\rfoot{Page \thepage}
% Placeholder
\RequirePackage{blindtext}
% MATH Packages
\RequirePackage{amsmath, amsfonts, amssymb, mathtools, amsthm, array}
% Images
% https://www.overleaf.com/learn/latex/Inserting_Images
% https://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions
\RequirePackage{graphicx, float}
% Tables
\RequirePackage{multirow, array}
% Algorithms
% https://www.overleaf.com/learn/latex/algorithms
% https://en.wikibooks.org/wiki/LaTeX/Algorithms
\usepackage[ruled, vlined]{algorithm2e}
\usepackage{algorithmic}
% Code syntax highlighting
% https://www.overleaf.com/learn/latex/Code_Highlighting_with_minted
\usepackage{minted}
\usemintedstyle{borland}
% Theorem Environments
\newtheorem{theorem}{Theorem}
\newtheorem{corollary}{Corollary}[theorem]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{claim}[theorem]{Claim}
\newtheorem{remark}[theorem]{Remark}
% Linear Algebra Notations
\newcommand{\avec}[1]{\vec{#1}}
\newcommand{\bvec}[1]{\mathbf{#1}}
\newcommand{\mat}[1]{\mathbf{#1}}
% det is already defined
% Ker is already defined
\DeclareMathOperator{\eig}{Eig}
\DeclareMathOperator{\tr}{tr}
\DeclareMathOperator{\diag}{diag}
\newcommand{\norm}[1]{\left\|#1\right\|}
\newcommand{\vecdot}[2]{\left\langle#1,#2\right\rangle}
% Logic Notations
\newcommand{\union}{\cup}
\newcommand{\intersect}{\cap}
% Statistics/Probability Notations
\newcommand{\set}[1]{\left\{#1\right\}}
\newcommand{\pdf}[2]{f_{#1}\left(#2\right)}
\newcommand{\cdf}[2]{F_{#1}\left(#2\right)}
\newcommand{\E}[1]{\mathbb{E}\left[#1\right]}
\newcommand{\V}[1]{\text{Var}\left[#1\right]}
\newcommand{\Cov}[1]{\text{Cov}\left[#1\right]}
% Arguments
\newcommand{\argmin}[2]{\underset{#1}{\text{arg\,min}}\; #2}
\newcommand{\argmax}[2]{\underset{#1}{\text{arg\,max}}\; #2}
% Misc
\newcommand{\parn}[1]{\left(#1\right)}