Merge branch 'algebraic-geometry'

Build branch master (ea81a05) from kesslermaximilian/LatexPackages
This commit is contained in:
Maximilian Keßler 2021-10-27 18:28:50 +00:00
parent 06c4678f4e
commit ad1722c9b4
2 changed files with 29 additions and 7 deletions

View file

@ -1,8 +1,8 @@
{
"build_time": "",
"source files": {
"version": "v2.2.2-20",
"commit": "9b279f65fd45d99ffd45ca6131b07c306e15215e",
"version": "v2.2.2-21",
"commit": "ea81a055fb6aba360804793c64859b683047140e",
"dirty": false
},
"pytex": {
@ -154,9 +154,9 @@
{
"name": "mkessler-mathfig.sty",
"source file": "mathfig.pysty",
"build time": "2021/10/24 08:36",
"source version": "v2.2.2-2",
"source commit hash": "0e520739a3ac07d81f5d9dba14a955a4b05d1851",
"build time": "2021/10/27 18:28",
"source version": "v2.2.2-21",
"source commit hash": "ea81a055fb6aba360804793c64859b683047140e",
"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-2 (commit 0e52073)
% Source code version: v2.2.2-21 (commit ea81a05)
%
% 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
@ -39,7 +39,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mkessler-mathfig}[2021/10/24 - Math figures with TikZ / pgfplots / xy]
\ProvidesPackage{mkessler-mathfig}[2021/10/27 - Math figures with TikZ / pgfplots / xy]
% This is just a collection of the packages I use to typeset mathematical figures
@ -54,6 +54,7 @@
\usetikzlibrary{calc, intersections, through, quotes, angles, babel, positioning, snakes}
\RequirePackage{tikz-cd} %Commutative diagrams
\RequirePackage{xparse}
%%for small diagrams, similar to tikz-cd
@ -63,3 +64,24 @@
% \xyoption{all}
% here, but this messes with the catcode of the @ sign (which no package should do!)
% so that further parts in this package would get broken
\newcommand\pushoutsymbol{\tikz[baseline=0.5,scale=0.2]{
\draw[-] (0,0) --(0,1) -- (1,1);
\draw (1,0) circle (1.5pt);}
}
\newcommand\pullbacksymbol{\tikz[baseline=0.5,scale=0.2]{
\draw[-] (0,0) --(1,0) -- (1,1);
\draw (0,1) circle (1.5pt);}
}
% This is used in a tikzcd
\NewDocumentCommand\pushout{ O{dr} }{
\arrow[phantom, pos=0.45]{#1}{\pushoutsymbol}
}
% This is used in a tikzcd
\NewDocumentCommand\pullback{ O{dr} }{
\arrow[phantom, pos=0.45]{#1}{\pullbacksymbol}
}