This commit is contained in:
Maximilian Keßler 2021-05-07 12:17:03 +02:00
parent 69bb00171e
commit c96b9a969e
3 changed files with 69 additions and 50 deletions

View file

@ -6,7 +6,6 @@
\DeclareOption*{\PackageWarning{fancythm}{Unknown '\CurrentOption'}}
\ProcessOptions\relax
%Theorem-environments
\RequirePackage{amsthm}
\RequirePackage{mdframed}

View file

@ -1,5 +1,6 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mymath}[2021/03/31 - Math package by Maximilian Kessler (private use)]
\ProvidesPackage{mymath}[2021/03/31 - Math package by Maximilian Keßler (private use)]
%%%%%%Provides the basic math packages used for my lecture-note write-ups
%The language to pass to babel
\newif\ifenglish\englishtrue
@ -81,7 +82,8 @@
\RequirePackage{comment}
\RequirePackage{soul}
\RequirePackage{subfig}
\usepackage{mathrsfs}
\RequirePackage{mathrsfs}
\RequirePackage{bbm}
\ifbeamer
\else \RequirePackage[shortlabels]{enumitem}\fi
\RequirePackage[colorlinks=true]{hyperref} % Hyperlinks

View file

@ -1,5 +1,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{operators}[2021-04-26 - Operators package]
\ProvidesPackage{operators}[2021-04-27 - Operator Package]
%%%%%%%%%%%%%%%%%%mmmm
%Provides some commonly used Operators used in the write-ups of my lecture notes
\newif\ifenglish\englishtrue
\DeclareOption{german}{\englishfalse}
@ -7,67 +9,83 @@
\DeclareOption*{\PackageWarning{operators}{Unknown '\CurrentOption'}}
\ProcessOptions\relax
%Packages
\RequirePackage{amsmath}
% One with double line
\newcommand*{\IONE}{\ensuremath{\mathds{1}}}
\newcommand*{\One}{\ensuremath{\mathbbm{1}}}
%%%%%%%%%%% Operators
%Basic commands
\renewcommand\subset\subseteq
\renewcommand\supset\supseteq
\DeclareMathOperator{\id}{id}
\DeclareMathOperator{\Int}{Int}
\DeclareMathOperator{\Sym}{Sym}
\DeclareMathOperator{\supp}{supp}
\DeclareMathOperator{\Gr}{Gr}
\DeclareMathOperator{\odd}{odd}
\DeclareMathOperator{\sgn}{sgn}
\DeclareMathOperator{\im}{im}
\DeclareMathOperator{\rank}{rank}
\DeclareMathOperator{\conv}{conv}
\DeclareMathOperator{\coker}{coker}
\DeclareMathOperator{\dz}{dz}
\DeclareMathOperator{\ex}{ex}
\DeclareMathOperator{\dt}{dt}
\DeclareMathOperator{\Ext}{Ext}
\DeclareMathOperator{\Tor}{Tor}
\DeclareMathOperator{\Mspec}{MaxSpec}
\DeclareMathOperator{\Proj}{Proj}
\DeclareMathOperator{\QCoh}{QCoh}
\renewcommand\Im\im
\DeclareMathOperator{\Hom}{Hom}
\DeclareMathOperator{\Mor}{Mor}
\DeclareMathOperator{\End}{End}
\DeclareMathOperator{\Gal}{Gal}
\DeclareMathOperator{\MaxSpec}{MaxSpec}
\DeclareMathOperator{\Presh}{Pre-Sh}
\DeclareMathOperator{\Fun}{Fun}
\DeclareMathOperator{\Mat}{Mat}
\DeclareMathOperator{\Sh}{Sh}
\DeclareMathOperator{\dif}{diff}
\DeclareMathOperator{\opp}{opp}
%\DeclareMathOperator\ggT\relax
\DeclareMathOperator{\ggT}{\ifenglish gcd \else ggT\fi}
\let\kgV\relax\DeclareMathOperator{\kgV}{kgV}
\DeclareMathOperator{\op}{op}
\DeclareMathOperator{\dist}{dist}
\DeclareMathOperator{\Bild}{Bild}
\DeclareMathOperator{\rhs}{RHS}
\DeclareMathOperator{\diam}{diam}
\DeclareMathOperator{\dx}{dx}
\DeclareMathOperator{\dy}{dy}
\let\ggT\relax\DeclareMathOperator{\ggT}{\ifenglish gcd \else ggT\fi}
\let\kgV\relax\DeclareMathOperator{\kgV}{\ifenglish lcm \elese kgV\fi}
\DeclareMathOperator{\rhs}{RHS} %Right hand side
%Complex numbers
\DeclareMathOperator{\Impart}{Im}
\renewcommand\Im\Impart
\DeclareMathOperator{\Repart}{Re}
\renewcommand\Re\Repart
\renewcommand{\subset}{\subseteq}
\DeclareMathOperator{\Ob}{Ob}
%Linear Algebra
\DeclareMathOperator{\Sym}{Sym}
\DeclareMathOperator{\supp}{supp}
\DeclareMathOperator{\sgn}{sgn}
\DeclareMathOperator{\coker}{coker}
\DeclareMathOperator{\rank}{rank}
\DeclareMathOperator{\Mat}{Mat}
%Algebra
\DeclareMathOperator{\Gal}{Gal}
\DeclareMathOperator{\Ext}{Ext}
\DeclareMathOperator{\Tor}{Tor}
\DeclareMathOperator{\Mspec}{MaxSpec}
\DeclareMathOperator{\Sh}{Sh}
\DeclareMathOperator{\Proj}{Proj}
\DeclareMathOperator{\QCoh}{QCoh}
\DeclareMathOperator{\MaxSpec}{MaxSpec}
\DeclareMathOperator{\Presh}{Pre-Sh}
\DeclareMathOperator{\Fun}{Fun}
\newcommand{\tensor}{\otimes}
%Category Theory
\DeclareMathOperator{\Ob}{Ob}
\newcommand{\cat}[1]{ \mathscr{#1} }
\DeclareMathOperator{\Hom}{Hom}
\DeclareMathOperator{\Mor}{Mor}
\DeclareMathOperator{\End}{End}
\DeclareMathOperator{\opposite}{opp}
\newcommand\opp{^{\opposite}}
%Analysis
\DeclareMathOperator{\dx}{dx}
\DeclareMathOperator{\dy}{dy}
\DeclareMathOperator{\dz}{dz}
\DeclareMathOperator{\dt}{dt}
%Sets
\DeclareMathOperator{\conv}{conv}
\DeclareMathOperator{\dist}{dist}
\DeclareMathOperator{\diam}{diam}
%%Stochastic (Algorithmische Mathematik II)
\DeclareMathOperator\Bin{Bin}
\DeclareMathOperator\Ber{Ber}
\DeclareMathOperator\Geo{Geo}
\DeclareMathOperator\Poi{Poi}
\DeclareMathOperator{\Var}{Var}
%Topology
\DeclareMathOperator\pr{pr}
\DeclareMathOperator\Set{{\textbf{Set}}}
\DeclareMathOperator\Top{{\textbf{Top}}}
\DeclareMathOperator\CHaus{{\textbf{CHaus}}}
\def\op{^{\textbf{op}}}
% Characteristic function
\newcommand*{\cfun}{\ensuremath{\mathbbm{1}}}
%Synonyms for operators
\newcommand{\tensor}{\otimes}
% Nice command for | in set description (must be between \left and \right )
\newcommand{\cat}[1]{ \mathscr{#1} }