latex-packages/operators.sty

126 lines
3.3 KiB
Text
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
%%%%%%%%%%% 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}
2021-08-26 09:18:18 +02:00
\DeclareMathOperator{\Span}{Span}
2021-05-07 12:17:03 +02:00
\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
2021-06-13 14:57:44 +02:00
\DeclareMathOperator{\lhs}{LHS} %Left hand side
2021-05-07 12:17:03 +02:00
%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}
2021-06-13 14:57:44 +02:00
\DeclareMathOperator{\ev}{ev}
2021-05-07 12:17:03 +02:00
%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}
%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)
2021-06-13 14:57:44 +02:00
\newcommand\distribution[1]{\operatorname{#1}}
\newcommand\DeclareDistribution[1]{\expandafter\def\csname #1\endcsname{\distribution{#1}}}
\DeclareDistribution{Bin}
\DeclareDistribution{Ber}
\DeclareDistribution{Geo}
\DeclareDistribution{Poi}
\DeclareDistribution{Unif}
2021-05-07 12:17:03 +02:00
\DeclareMathOperator{\Var}{Var}
2021-06-13 14:57:44 +02:00
\DeclareMathOperator{\Cov}{Cov}
2021-04-27 00:20:45 +02:00
2021-05-07 12:17:03 +02:00
%Topology
\DeclareMathOperator\pr{pr}
2021-05-21 22:19:12 +02:00
\def\twedge{\vee}
\def\tsmash{\wedge}
2021-06-13 14:57:44 +02:00
%Category Theory
\DeclareMathOperator{\Ob}{Ob}
\newcommand{\cat}[1]{ \mathscr{#1} }
\DeclareMathOperator{\Hom}{Hom}
\DeclareMathOperator{\Mor}{Mor}
\DeclareMathOperator{\End}{End}
\DeclareMathOperator{\opposite}{\textbf{opp}}
\newcommand\opp{^{\opposite}}
\newcommand\op{^{\opposite}}
2021-05-21 22:19:12 +02:00
%Categories
\newcommand\category[1]{\operatorname{\textbf{#1}}}
\newcommand\DeclareCategory[1]{\expandafter\def\csname #1\endcsname{\category{#1}}}
\DeclareCategory{Top}
2021-06-13 14:57:44 +02:00
\DeclareCategory{hTop}
2021-05-21 22:19:12 +02:00
\DeclareCategory{Set}
\DeclareCategory{CHaus}
\DeclareCategory{Grp}
\DeclareCategory{Ab}
2021-06-13 14:57:44 +02:00
\DeclareCategory{CRing}
2021-05-21 22:19:12 +02:00
\DeclareCategory{Vect}
\DeclareCategory{Fin}
\DeclareCategory{Ab}
2021-06-13 14:57:44 +02:00
\DeclareCategory{Cat}
\DeclareMathOperator{\colim}{colim}
2021-05-07 12:17:03 +02:00
2021-05-14 21:08:28 +02:00
2021-05-07 12:17:03 +02:00
% Characteristic function
\newcommand*{\cfun}{\ensuremath{\mathbbm{1}}}
2021-05-12 20:15:34 +02:00
\newcommand*{\One}{\ensuremath{\mathbbm{1}}}
2021-06-13 14:57:44 +02:00
%Set theory
\DeclareMathOperator\card{card}
\DeclareMathOperator\Cd{Cd}
\DeclareMathOperator\Ord{Ord}
\DeclareMathOperator\otp{otp}
\DeclareMathOperator\Card{Card}
2021-08-28 20:57:47 +02:00
\def\daniel{Daniel Harrer}