add restriction operator

Build branch master (39e907e) from kesslermaximilian/LatexPackages
This commit is contained in:
Maximilian Keßler 2021-10-25 10:09:05 +00:00
parent baf2f5ee91
commit eeb497f852
2 changed files with 25 additions and 7 deletions

View File

@ -1,8 +1,8 @@
{
"build_time": "",
"source files": {
"version": "v2.2.2-12",
"commit": "54afb2f0258f3dfbedcadb8e5a22e7b09c9b8cd0",
"version": "v2.2.2-14",
"commit": "39e907ed2c6191cfc503ee088b7dea3a49400109",
"dirty": false
},
"pytex": {
@ -144,9 +144,9 @@
{
"name": "mkessler-mathop.sty",
"source file": "mathop.pysty",
"build time": "2021/10/25 07:10",
"source version": "v2.2.2-12",
"source commit hash": "54afb2f0258f3dfbedcadb8e5a22e7b09c9b8cd0",
"build time": "2021/10/25 10:09",
"source version": "v2.2.2-14",
"source commit hash": "39e907ed2c6191cfc503ee088b7dea3a49400109",
"pytex version": "v1.0.0-18",
"pytex commit hash": "126d420b7a6ed2d4b2a42d534ab2e12344869643",
"dirty": false

View File

@ -27,7 +27,7 @@
%
% Build details:
% PyTeX version: v1.0.0-18 (commit 126d420)
% Source code version: v2.2.2-12 (commit 54afb2f)
% Source code version: v2.2.2-14 (commit 39e907e)
%
% This LaTeX package is free software and distributed under the MIT License. You
% may use it freely for your purposes. The latest version of the package can be
@ -131,6 +131,9 @@
%Algebra
\DeclareSimpleMathOperator{Quot}
\DeclareSimpleMathOperator{rad}
\DeclareSimpleMathOperator{Spec}
\DeclareSimpleMathOperator{Frac}
\DeclareSimpleMathOperator{Gal}
\DeclareSimpleMathOperator{Ext}
\DeclareSimpleMathOperator{Tor}
@ -138,9 +141,9 @@
\DeclareSimpleMathOperator{Sh}
\DeclareSimpleMathOperator{Proj}
\DeclareSimpleMathOperator{QCoh}
\DeclareSimpleMathOperator{MaxSpec}
\DeclareSimpleMathOperator{Fun}
\DeclareMathOperator{\Nil}{\mathcal{N}il}
\DeclareMathOperator{\Ouv}{\mathcal{O}uv}
\DeclareMathOperator{\PreSh}{Pre-Sh}
\newcommand{\tensor}{\otimes} %Synonym for tensoring
@ -185,10 +188,15 @@
\DeclareCategory{Grp}
\DeclareCategory{Ab}
\DeclareCategory{CRing}
\DeclareCategory{Ring}
\DeclareCategory{Vect}
\DeclareCategory{Fin}
\DeclareCategory{Ab}
\DeclareCategory{Cat}
\DeclareCategory{Mod}
\DeclareCategory{AffVar}
\DeclareCategory{Alg}
\DeclareCategory{Field}
%Set theory
\DeclareSimpleMathOperator{card}
@ -233,3 +241,13 @@
\newcommand\ab{\text{ab}}
\newcommand\abelianization{^{\ab}}
%Taken from user egreg on
% https://tex.stackexchange.com/a/22255
\newcommand\restriction[2]{{% we make the whole thing an ordinary symbol
\left.\kern-\nulldelimiterspace % automatically resize the bar with \right
#1 % the function
\vphantom{\big|} % pretend it's a little taller at normal size
\right|_{#2} % this is the delimiter
}}