latex-packages/operators.sty

92 lines
2.5 KiB
Plaintext
Raw Normal View History

2021-04-27 00:20:45 +02:00
\NeedsTeXFormat{LaTeX2e}
2021-05-07 12:17:03 +02:00
\ProvidesPackage{operators}[2021-04-27 - Operator Package]
%%%%%%%%%%%%%%%%%%mmmm
%Provides some commonly used Operators used in the write-ups of my lecture notes
2021-04-27 00:20:45 +02:00
\newif\ifenglish\englishtrue
\DeclareOption{german}{\englishfalse}
\DeclareOption{english}{\englishtrue}
\DeclareOption*{\PackageWarning{operators}{Unknown '\CurrentOption'}}
\ProcessOptions\relax
2021-05-07 12:17:03 +02:00
%Packages
\RequirePackage{amsmath}
2021-04-27 00:20:45 +02:00
2021-05-07 12:17:03 +02:00
\newcommand*{\One}{\ensuremath{\mathbbm{1}}}
2021-04-27 00:20:45 +02:00
2021-05-07 12:17:03 +02:00
%%%%%%%%%%% Operators
%Basic commands
\renewcommand\subset\subseteq
\renewcommand\supset\supseteq
2021-04-27 00:20:45 +02:00
\DeclareMathOperator{\id}{id}
2021-05-07 12:17:03 +02:00
\DeclareMathOperator{\im}{im}
\DeclareMathOperator{\Bild}{Bild}
\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
%Linear Algebra
2021-04-27 00:20:45 +02:00
\DeclareMathOperator{\Sym}{Sym}
\DeclareMathOperator{\supp}{supp}
\DeclareMathOperator{\sgn}{sgn}
\DeclareMathOperator{\coker}{coker}
2021-05-07 12:17:03 +02:00
\DeclareMathOperator{\rank}{rank}
\DeclareMathOperator{\Mat}{Mat}
%Algebra
\DeclareMathOperator{\Gal}{Gal}
2021-04-27 00:20:45 +02:00
\DeclareMathOperator{\Ext}{Ext}
\DeclareMathOperator{\Tor}{Tor}
\DeclareMathOperator{\Mspec}{MaxSpec}
2021-05-07 12:17:03 +02:00
\DeclareMathOperator{\Sh}{Sh}
2021-04-27 00:20:45 +02:00
\DeclareMathOperator{\Proj}{Proj}
\DeclareMathOperator{\QCoh}{QCoh}
\DeclareMathOperator{\MaxSpec}{MaxSpec}
\DeclareMathOperator{\Presh}{Pre-Sh}
2021-04-27 16:00:40 +02:00
\DeclareMathOperator{\Fun}{Fun}
2021-05-07 12:17:03 +02:00
\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
2021-04-27 00:20:45 +02:00
\DeclareMathOperator{\dx}{dx}
\DeclareMathOperator{\dy}{dy}
2021-05-07 12:17:03 +02:00
\DeclareMathOperator{\dz}{dz}
\DeclareMathOperator{\dt}{dt}
2021-04-27 00:20:45 +02:00
2021-05-07 12:17:03 +02:00
%Sets
\DeclareMathOperator{\conv}{conv}
\DeclareMathOperator{\dist}{dist}
\DeclareMathOperator{\diam}{diam}
2021-04-27 00:20:45 +02:00
%%Stochastic (Algorithmische Mathematik II)
\DeclareMathOperator\Bin{Bin}
\DeclareMathOperator\Ber{Ber}
\DeclareMathOperator\Geo{Geo}
\DeclareMathOperator\Poi{Poi}
2021-05-07 12:17:03 +02:00
\DeclareMathOperator{\Var}{Var}
2021-04-27 00:20:45 +02:00
2021-05-07 12:17:03 +02:00
%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}}}
2021-04-27 00:20:45 +02:00