-
Notifications
You must be signed in to change notification settings - Fork 0
/
elf.sty
113 lines (106 loc) · 3.09 KB
/
elf.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
\ProvidesPackage{elf}
\pdfoutput=1
%below are my standard includes. I don't like ugly preambles so I made this
%style file instead.
%it also includes a bunch of shortcuts and various configurations
\RequirePackage{amsmath,amssymb}
\let\theorem\relax
\let\endtheorem\relax
\let\corollar\relax
\let\endcorollary\relax
\let\lemma\relax
\let\endlemma\relax
\let\remark\relax
\let\endremark\relax
%\let\proof\relax
%\let\endproof\relax
\RequirePackage{amsthm}
\RequirePackage{float}
\RequirePackage[normalem]{ulem}
\RequirePackage{enumerate}
\RequirePackage{paralist}
\RequirePackage{cancel}
\RequirePackage{tikz}
\RequirePackage{gauss}
\RequirePackage{graphicx}
\RequirePackage{rotating}
\RequirePackage{nicefrac}
\RequirePackage{verbatim}
\RequirePackage{listings}
\RequirePackage{color}
\RequirePackage{caption}
\RequirePackage{subcaption}
\RequirePackage{hyperref}
\RequirePackage{algorithm}
\lstset{% command to set programming language parameter(s)
frame=single,
showstringspaces=false,
showlines=false, %get rid of trailing white lines
emptylines=1, %allow blank line
breaklines=true, %get rid of overflow lines and enter \n
numbers=left, %line number
numberstyle=\scriptsize, %make line numbers small
stepnumber=1, %line number every line
numbersep=5pt,
tabsize=2, %set tabs to two spaces
basicstyle=\small, % print whole listing small
keywordstyle=\bfseries,% green keywords
stringstyle=\ttfamily % typewriter type for strings
}
%shorter bold font
\newcommand{\mbf}[1]{
\mathbf{#1}
}
\newcommand{\tbf}[1]{
\textbf{#1}
}
\newtheorem{lemma}{Lemma}
\newtheorem{prop}{Proposition}
\newtheorem{thm}{Theorem}
\newtheorem{crlry}{Corollary}
\newtheorem{remark}{Remark}
\newcommand{\lemmaautorefname}{Lemma}
\newcommand{\propautorefname}{Proposition}
\newcommand{\thmautorefname}{Theorem}
\newcommand{\crlryautorefname}{Corollary}
%redefine sections for
%autoref
\def\chapterautorefname{Chapter}
\def\sectionautorefname{Section}
\def\subsectionautorefname{Subsection}
\def\subsubsectionautorefname{Subsubsection}
\def\algorithmautorefname{Algorithm}
\def\propositionautorefname{Proposition}
%Math Operators
\DeclareMathOperator{\inv}{inv}
\DeclareMathOperator{\sgn}{sgn}
\DeclareMathOperator{\id}{id}
\DeclareMathOperator{\Ran}{Ran}
\DeclareMathOperator{\Aut}{Aut}
\DeclareMathOperator{\Fun}{Fun}
\DeclareMathOperator{\End}{End}
\DeclareMathOperator{\Sym}{Sym}
\DeclareMathOperator{\lcm}{lcm}
\DeclareMathOperator{\Stab}{Stab}
\DeclareMathOperator{\Fix}{Fix}
\DeclareMathOperator{\tr}{tr}
\DeclareMathOperator{\dist}{dist}
\DeclareMathOperator{\divergence}{div}
\DeclareMathOperator{\im}{im}
\DeclareMathOperator{\ess}{ess}
%Shorter mathbb
\newcommand{\C}{\mathbb{C}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\I}{\mathbb{I}}
\newcommand{\qid}{\mathbf{1}}
\newcommand{\qi}{\mathbf{i}}
\newcommand{\qj}{\mathbf{j}}
\newcommand{\qk}{\mathbf{k}}
\newcommand{\Order}{\mathcal{O}}
\newcommand{\order}{\mathcal{o}}
\renewcommand{\bar}[1]{\overline{#1}}
\renewcommand{\hat}[1]{\widehat{#1}}
\renewcommand{\tilde}[1]{\widetilde{#1}}