-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmymath.sty
88 lines (65 loc) · 2.39 KB
/
mymath.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
\ProvidesPackage{mymath}
\usepackage{mathtools}
\usepackage{amsfonts}
\usepackage{MnSymbol}
\usepackage{xifthen}
\RequirePackage{xparse}
% ---- Quantifiers ----
\newcommand{\Forall}[1]{\ensuremath{\forall {#1} \; \,}}
\newcommand{\Exists}[1]{\ensuremath{\exists #1 \colon \:}}
\newcommand{\ExistsOne}[1]{\ensuremath{\exists! #1 \colon \:}}
% ---- Number sets ----
\newcommand{\Natural}{\mathbb{N}}
\newcommand{\Integer}{\mathbb{Z}}
\newcommand{\Rational}{\mathbb{Q}}
\newcommand{\Real}{\mathbb{R}}
\newcommand{\Complex}{\mathbb{C}}
\newcommand{\ot}{\leftarrow}
\newcommand{\otto}{\leftrightarrow}
\newcommand{\To}{\Rightarrow}
\newcommand{\oT}{\Leftarrow}
\newcommand{\oTTo}{\Leftrightarrow}
\newcommand{\Set}[1]{\{ #1 \}}
\DeclareMathOperator{\Expectation}{\mathbb{E}}
\DeclareMathOperator{\Reg}{Reg}
\DeclareMathOperator{\id}{id}
\DeclareMathOperator{\GCD}{GCD}
% ---- Order of element in group ----
\DeclareMathOperator{\ord}{ord}
% ---- Field characteristic ----
\DeclareMathOperator{\fchar}{char}
% ---- Matrices set on filed #1 with #2 rows and #3 columns ----
\NewDocumentCommand{\Matrices}{o m m}{%
M_{#2 \times #3}\IfNoValueF{#1}{(#1)}}
% ---- Matrix rank ----
\DeclareMathOperator{\rk}{rk}
% ---- Factor ----
\NewDocumentCommand{\Factor}{o m o}{%
\IfNoValueTF{#1}{}{#1 \backslash} #2 \IfNoValueTF{#3}{}{/ {\textstyle #3}}
}
% ---- Linear map kernel and image ----
\DeclareMathOperator{\Ker}{Ker}
\DeclareMathOperator{\Img}{Im}
% ---- Sign operator ----
\DeclareMathOperator{\sgn}{sgn}
\newcommand{\inang}[1]{\langle #1 \rangle}
\renewcommand\qedsymbol{$\blacksquare$}
\NewDocumentCommand{\NSG}{}{\triangleleft}
\NewDocumentCommand{\NGS}{}{\triangleright}
\DeclareMathOperator{\St}{St}
\DeclareMathOperator{\Aut}{Aut}
\DeclareMathOperator{\Inn}{Inn}
\DeclareMathOperator{\tr}{tr}
\NewDocumentCommand{\GenGroup}{m o}{\langle #1
\IfNoValueF{#2}{\mid #2} \rangle}
\NewDocumentCommand{\GenNGroup}{m}{\langle #1 \rangle_\text{норм}}
\NewDocumentCommand{\GenFGroup}{m}{\langle #1 \rangle_\text{своб}}
\NewDocumentCommand{\Cycle}{m}{\arraycolsep=1.5pt (\begin{matrix} #1 \end{matrix})}
\NewDocumentCommand{\Centre}{m}{Z(#1)}
% ---- Russian symbols ----
\RenewDocumentCommand{\epsilon}{}{\varepsilon}
\RenewDocumentCommand{\phi}{}{\varphi}
\RenewDocumentCommand{\kappa}{}{\varkappa}
\RenewDocumentCommand{\emptyset}{}{\varnothing}
\RenewDocumentCommand{\le}{}{\leqslant}
\RenewDocumentCommand{\ge}{}{\geqslant}