From eeb497f8523b7a5caec1f0965802229eacdbaaf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler=20=28via=20gitlab=20runner=29?= Date: Mon, 25 Oct 2021 10:09:05 +0000 Subject: [PATCH] add restriction operator Build branch master (39e907e) from kesslermaximilian/LatexPackages --- build_info.json | 10 +++++----- math/mkessler-mathop.sty | 22 ++++++++++++++++++++-- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/build_info.json b/build_info.json index c4e8fa3..c9be178 100644 --- a/build_info.json +++ b/build_info.json @@ -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 diff --git a/math/mkessler-mathop.sty b/math/mkessler-mathop.sty index f29d92d..dd23da8 100644 --- a/math/mkessler-mathop.sty +++ b/math/mkessler-mathop.sty @@ -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 +}}