Initial commit, start of notes and generic macros
This commit is contained in:
55
deps/macros.sty
vendored
Normal file
55
deps/macros.sty
vendored
Normal file
@ -0,0 +1,55 @@
|
||||
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
|
||||
\ProvidesPackage{omicron/macros}[2025-05-25 omicron/macros package]
|
||||
|
||||
\RequirePackage{mathtools}
|
||||
\RequirePackage{amssymb}
|
||||
\RequirePackage{amsthm}
|
||||
|
||||
% create \set and \smid macro to create sets and scaling bar for set builder notation.
|
||||
\newcommand{\set}[1]{\left\{ #1 \right\}}
|
||||
\newcommand{\smid}{\,\middle|\,}
|
||||
|
||||
% easier access to blackboard bold
|
||||
\@ifpackageloaded{dsfont}{%
|
||||
\let\bb\mathds
|
||||
}{%
|
||||
\let\bb\mathbb
|
||||
}
|
||||
|
||||
% swap default slanted/curly versions of common relations
|
||||
\let\leqflat\leq
|
||||
\let\leq\leqslant
|
||||
\let\geqflat\geq
|
||||
\let\geq\geqslant
|
||||
\let\precflateq\preceq
|
||||
\let\preceq\preccurlyeq
|
||||
\let\succflateq\succeq
|
||||
\let\succeq\succcurlyeq
|
||||
|
||||
% swap varepsilon and epsilon
|
||||
\let\uglyepsilon\epsilon
|
||||
\let\epsilon\varepsilon
|
||||
\let\varepsilon\uglyepsilon
|
||||
|
||||
% swap varphi and phi
|
||||
\let\uglyphi\phi
|
||||
\let\phi\varphi
|
||||
\let\varphi\uglyphi
|
||||
|
||||
% scaling abs value
|
||||
\newcommand{\abs}[1]{\left|#1\right|}
|
||||
|
||||
% scaling parenthesis
|
||||
\newcommand{\paren}[1]{\left(#1\right)}
|
||||
|
||||
% Probability function
|
||||
\DeclareMathOperator{\probop}{P}
|
||||
\newcommand{\prob}[1]{\probop\paren{#1}}
|
||||
|
||||
% Complement superscript operator
|
||||
\DeclareMathOperator{\complop}{c}
|
||||
\newcommand{\mycomplement}{{\complop}}
|
||||
\let\altcomplement\complement
|
||||
\let\complement\mycomplement
|
||||
|
||||
\endinput
|
62
deps/setup.sty
vendored
Normal file
62
deps/setup.sty
vendored
Normal file
@ -0,0 +1,62 @@
|
||||
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
|
||||
\ProvidesPackage{omicron/setup}[2025-05-25 omicron/setup package]
|
||||
|
||||
% better typesetting
|
||||
\RequirePackage[T1]{fontenc}
|
||||
\RequirePackage{lmodern}
|
||||
\RequirePackage{microtype}
|
||||
\RequirePackage{bbm}
|
||||
\RequirePackage{dsfont}
|
||||
|
||||
% math essentials
|
||||
\RequirePackage{amsmath}
|
||||
\RequirePackage{amssymb}
|
||||
\RequirePackage{amsthm}
|
||||
\RequirePackage{thmtools}
|
||||
\RequirePackage{mathtools}
|
||||
|
||||
% for title page edits
|
||||
\RequirePackage{titling}
|
||||
|
||||
% utility
|
||||
\RequirePackage{enumitem}
|
||||
\RequirePackage{hyperref}
|
||||
\RequirePackage{cleveref}
|
||||
\RequirePackage{todonotes}
|
||||
|
||||
% Helps create better more modern LaTeX
|
||||
\RequirePackage[l2tabu, orthodox]{nag}
|
||||
|
||||
% lorem ipsum
|
||||
\RequirePackage{lipsum}
|
||||
|
||||
% No indent style paragraphs
|
||||
\setlength{\parindent}{0pt}
|
||||
\setlength{\parskip}{0.5\baselineskip plus 2pt minus 1pt}
|
||||
|
||||
% subtitle macro
|
||||
\newcommand{\subtitle}[1]{%
|
||||
\posttitle{%
|
||||
\par\end{center}
|
||||
\begin{center}
|
||||
\parbox{0.7\textwidth}{\centering#1}
|
||||
\end{center}
|
||||
\vskip0.5em}%
|
||||
}
|
||||
|
||||
% Remove the date completely from the title page
|
||||
\predate{}
|
||||
\date{}
|
||||
\postdate{}
|
||||
|
||||
% Essential theorem environments
|
||||
\declaretheorem[style=definition, name=Definition]{definition}
|
||||
\declaretheorem[style=definition, sibling=definition, name=Theorem]{theorem}
|
||||
\declaretheorem[style=definition, sibling=definition, name=Lemma]{lemma}
|
||||
\declaretheorem[style=definition, sibling=definition, name=Observation]{observation}
|
||||
\declaretheorem[style=definition, sibling=definition, name=Rules]{rules}
|
||||
|
||||
% default enumeration style
|
||||
\setlist[enumerate]{label=(\arabic*)}
|
||||
|
||||
\endinput
|
Reference in New Issue
Block a user