-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheawmath.sty
98 lines (84 loc) · 2.88 KB
/
eawmath.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
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{eawmath}[2021/10/05]
% Packages
\RequirePackage{amsmath}
\RequirePackage{amsfonts}
\RequirePackage{amssymb,enumerate}
\RequirePackage{amsthm,stmaryrd}
\RequirePackage[all]{xy}
\RequirePackage{hyperref}
\RequirePackage{tikz}
\usetikzlibrary{matrix,arrows,decorations.pathmorphing}
%Special Set Symbols
\newcommand{\bbr}{\mathbb{R}}
\newcommand{\bbc}{\mathbb{C}}
\newcommand{\bbz}{\mathbb{Z}}
\newcommand{\bbq}{\mathbb{Q}}
\newcommand{\bbn}{\mathbb{N}}
\renewcommand{\to}{\rightarrow}
\renewcommand*\ker{\operatorname{Ker}}
\newcommand{\aut}[1]{\operatorname{Aut}(#1)}
\newcommand{\sym}[1]{\operatorname{Sym}(#1)}
\newcommand{\inn}[1]{\operatorname{Inn}(#1)}
\newcommand*\comp[1]{\overline{#1}} % Complement
\newcommand*\cross{\times} % Cross Product
\newcommand*\card[1]{\vert{#1}\vert} % Cardinality
\renewcommand*\emptyset{\text{\O}} % Prettier empty set
\renewcommand*\lnot{\sim} % Different Logical Negation Notation
\newcommand*\ifonlyif{\Longleftrightarrow} % Biconditionality
\newcommand*\quotes[1]{``{#1}''} % Quotes
\newcommand*\singlequotes[1]{`{#1}'}
\let\oldforall\forall % Adds space to quantifiers
\renewcommand*\forall{\oldforall\,}
\let\oldexists\exists
\renewcommand*\exists{\oldexists\,}
\newcommand{\divides}{ \mid } % Divides
\newcommand{\ndivides}{ \nmid } % Not Divides
\renewcommand*\mod[1]{ (mod $#1$)} % Modulo
\renewcommand*\gcd[1]{gcd ($#1$)} % Greatest Common Divisor
\newcommand*\lcm[1]{lcm ($#1$)} % Least Common Multiple
\newcommand*{\relates}{\sim} % Relation
\newcommand*\abs[1]{\vert #1 \vert} % Absolute Value
\renewcommand*\choose[2]{\binom{#1}{#2}} % Modernizes Choose
%2x2 multiplication tables with and without index. input 1 is operation, input 2-3 are group elements, and 4-7 are outputs.
\newcounter{multtable}
\newcommand*\multtable[7]{
\begin{tabular}{||c || c | c||}
\hline
$#1$ & $#2$ & $#3$\\
\hline\hline
$#2$ & $#4$ & $#5$\\
\hline
$#3$ & $#6$ & $#7$\\
\hline
\end{tabular}}
\newcounter{multtableindex}
\newcommand*\multtableindexed[7]{\refstepcounter{multtableindex}\multtable{#1_{\themulttableindex}}{#2}{#3}{#4}{#5}{#6}{#7}}
\newcommand{\matrixtwobytwo}[4]{
\left[
\begin{tabular}[]{c c}
$#1$ & $#2$\\
$#3$ & $#4$
\end{tabular}
\right]}
\newcommand{\matrixthreebytwo}[6]{
\left[
\begin{tabular}[]{c c c}
$#1$ & $#2$ & $#3$\\
$#4$ & $#5$ & $#6$
\end{tabular}
\right]}
\newtheorem{case}{Case}
\newtheorem{subcase}{Case}
\numberwithin{subcase}{case}
\theoremstyle{definition}
\newtheorem{prob}{Problem}
% Placeholders with todos
\RequirePackage{todonotes}
\newcommand*\pl[1]{\todo{Fill in}#1}
% Newline
\newcommand{\n}{\newline}
% Academic Class Macros
\newcommand*\mathclass[1]{
\ifnum#1=455
{Introduction to Abstract Algebra\\MATH 455}\else {MATH #1}\fi}