Repository navigation
Expand file tree
/
Copy pathpreamble.sty
More file actions
95 lines (73 loc) · 2.44 KB
/
Copy pathpreamble.sty
File metadata and controls
95 lines (73 loc) · 2.44 KB
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
\ProvidesPackage{../../../preamble} % wack fix lmao
\renewcommand{\familydefault}{\sfdefault} % yummy sans serif
\usepackage{lmodern}
% Language setting
% Replace `english' with e.g. `spanish' to change the document language
\usepackage[english]{babel}
% Set page size and margins
% Replace `letterpaper' with `a4paper' for UK/EU standard size
\usepackage[letterpaper,top=1in,bottom=1in,left=1in,right=1in,marginparwidth=1.75cm]{geometry}
% Useful packages
\usepackage{amsmath,amsthm,amssymb,color,latexsym}
\usepackage{mathtools}
\usepackage{braket}
\usepackage{wasysym} % for \lightning for contradiction
\usepackage{graphicx}
\usepackage{esint} % for the wacky integrals
\usepackage[colorlinks=true, allcolors=blue]{hyperref}
\usepackage{subfig}
\usepackage{mathtools}
\usepackage{booktabs}
\usepackage[all]{xy}
\usepackage[shortlabels]{enumitem}
\usepackage[table]{xcolor}
\usepackage{geometry}
\usepackage{url}
\usepackage{accents} % also fixes double superscripts
\usepackage{parskip}
% Source - https://tex.stackexchange.com/a/451089
% Posted by Frank Mittelbach, modified by community. See post 'Timeline' for change history
% Retrieved 2026-09-23, License - CC BY-SA 4.0
% FIXES AMSTHM SPACING
\usepackage{etoolbox}
\makeatletter
\patchcmd\deferred@thm@head
{\addvspace{-\parskip}}
{}
{}{\typeout{\string\deferred@thm@head patch failed!}}
\makeatletter
% \setlength{\parindent}{0pt}
\renewcommand\qedsymbol{$\blacksquare$}
\newenvironment{sln}[1][Solution]{
\begin{proof}[\textbf{\textit{#1}}]}{
\end{proof}}
\newenvironment{pf}{
\begin{proof}}{
\end{proof}}
\theoremstyle{plain} % bold title, italic bodies
\newtheorem{thm}{Theorem}
\newtheorem{lm}[thm]{Lemma}
\newtheorem{conj}[thm]{Conjecture}
\newtheorem*{prop}{Proposition}
\newtheorem{cor}{Corollary}[thm] % resets counter per theorem
\newtheorem{claim}{Claim}[thm]
\theoremstyle{definition} % bold title, roman body
\newtheorem{defn}[thm]{Definition}
\newtheorem{ex}{Example}[thm]
\theoremstyle{remark} % italic title, roman body
\newtheorem*{remark}{Remark}
\newtheorem*{notation}{Notation}
\newtheorem*{note}{Note}
\newtheorem*{exercise}{Exercise}
% shortcuts
\newcommand{\ndiv}{\not\hspace{2.5pt}\mid}
\newcommand{\NN}{\mathbb{N}}
\newcommand{\ZZ}{\mathbb{Z}}
\newcommand{\QQ}{\mathbb{Q}}
\newcommand{\RR}{\mathbb{R}}
\newcommand{\CC}{\mathbb{C}}
\newcommand{\FF}{\mathbb{F}} % field
\newcommand{\ps}{\mathcal{P}}
% mathrm operators
\DeclareMathOperator{\opspan}{span}
\DeclareMathOperator{\opchar}{char}