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

View file

@ -27,7 +27,7 @@
% %
% Build details: % Build details:
% PyTeX version: v1.0.0-18 (commit 126d420) % 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 % 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 % may use it freely for your purposes. The latest version of the package can be
@ -131,6 +131,9 @@
%Algebra %Algebra
\DeclareSimpleMathOperator{Quot} \DeclareSimpleMathOperator{Quot}
\DeclareSimpleMathOperator{rad}
\DeclareSimpleMathOperator{Spec}
\DeclareSimpleMathOperator{Frac}
\DeclareSimpleMathOperator{Gal} \DeclareSimpleMathOperator{Gal}
\DeclareSimpleMathOperator{Ext} \DeclareSimpleMathOperator{Ext}
\DeclareSimpleMathOperator{Tor} \DeclareSimpleMathOperator{Tor}
@ -138,9 +141,9 @@
\DeclareSimpleMathOperator{Sh} \DeclareSimpleMathOperator{Sh}
\DeclareSimpleMathOperator{Proj} \DeclareSimpleMathOperator{Proj}
\DeclareSimpleMathOperator{QCoh} \DeclareSimpleMathOperator{QCoh}
\DeclareSimpleMathOperator{MaxSpec}
\DeclareSimpleMathOperator{Fun} \DeclareSimpleMathOperator{Fun}
\DeclareMathOperator{\Nil}{\mathcal{N}il} \DeclareMathOperator{\Nil}{\mathcal{N}il}
\DeclareMathOperator{\Ouv}{\mathcal{O}uv}
\DeclareMathOperator{\PreSh}{Pre-Sh} \DeclareMathOperator{\PreSh}{Pre-Sh}
\newcommand{\tensor}{\otimes} %Synonym for tensoring \newcommand{\tensor}{\otimes} %Synonym for tensoring
@ -185,10 +188,15 @@
\DeclareCategory{Grp} \DeclareCategory{Grp}
\DeclareCategory{Ab} \DeclareCategory{Ab}
\DeclareCategory{CRing} \DeclareCategory{CRing}
\DeclareCategory{Ring}
\DeclareCategory{Vect} \DeclareCategory{Vect}
\DeclareCategory{Fin} \DeclareCategory{Fin}
\DeclareCategory{Ab} \DeclareCategory{Ab}
\DeclareCategory{Cat} \DeclareCategory{Cat}
\DeclareCategory{Mod}
\DeclareCategory{AffVar}
\DeclareCategory{Alg}
\DeclareCategory{Field}
%Set theory %Set theory
\DeclareSimpleMathOperator{card} \DeclareSimpleMathOperator{card}
@ -233,3 +241,13 @@
\newcommand\ab{\text{ab}} \newcommand\ab{\text{ab}}
\newcommand\abelianization{^{\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
}}