-
Notifications
You must be signed in to change notification settings - Fork 0
/
OzanerTeX.sty
68 lines (54 loc) · 1.66 KB
/
OzanerTeX.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
%%% OzanerTeX Package Declaration
\ProvidesPackage{OzanerTeX}
%%% Packages
\usepackage{geometry}
\usepackage{titling}
\usepackage{hyperref}
\usepackage{amssymb}
\usepackage{physics}
\usepackage{xparse}
\usepackage{mathtools}
% \usepackage[makeroom]{cancel}
%%% Preformatting
% Set page margins to 1.5in.
\newgeometry{margin=1in}
% Set default starting height of first page.
\setlength{\droptitle}{-7em}
\posttitle{\par\end{center}\vspace{-1em}}
\postauthor{\end{tabular}\par\end{center}\vspace{-1.5em}}
% Hyperreference style settings
\hypersetup{
colorlinks=true,
linkcolor=blue,
filecolor=magenta,
urlcolor=cyan,
}
%%% Text
% Stylized 'Ozaner'
\newcommand{\Ozaner}{Oz$\forall$n$\in$$\mathbb R$}
% Stylized 'Ozaner' in bold
\newcommand{\Ozanerbf}{\textbf{Oz$\boldsymbol\forall$n$\boldsymbol\in$$\boldsymbol{\mathbb R}$}}
%%% Calculus
% Square Bracket Evaluation: [f(x)]^a_b
\newcommand*\evalb[3]{\displaystyle\left[#1\right]_{#2}^{#3}}
% Differential: \int f(x)\diff x
\newcommand{\diff}{\mathop{}\!\dd}
%%% Set Theory
\newcommand{\pset}[1]{\mathcal P(#1)} % Powerset
\renewcommand{\H}{\mathbb H} % Quaternions
\newcommand{\C}{\mathbb C} % Complex
\newcommand{\R}{\mathbb R} % Reals
\newcommand{\Q}{\mathbb Q} % Rationals
\newcommand{\Z}{\mathbb Z} % Integers
\newcommand{\N}{\mathbb N} % Naturals
%%% Optimization commands
\DeclareMathOperator*{\argmax}{argmax}
\DeclareMathOperator*{\argmin}{argmin}
%%% Probability
\newcommand{\E}[1]{\mathbf{E}\left[#1\right]} % Expectation
\newcommand{\KL}[2]{D_\text{KL}(#1\;\|\;#2)} % KL-Divergence
% \NewDocumentCommand{\E}{o m}{
% \IfNoValueOrEmptyTF{#1}
% {\mathbb R\left[#2\right]}
% {\mathbb E_{#1}\left[#2\right]}
% }