add fix for equal arrows in tikz-cd
Build branch master (b7ba678) from kesslermaximilian/LatexPackages
This commit is contained in:
parent
5d5c6e83f6
commit
1d299b232b
2 changed files with 34 additions and 8 deletions
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"build_time": "",
|
"build_time": "",
|
||||||
"source files": {
|
"source files": {
|
||||||
"version": "v2.9-14-gc939483",
|
"version": "v2.9-15-gb7ba678",
|
||||||
"commit": "c939483b4283dd03bf86429cc23b66b6084ea090",
|
"commit": "b7ba678943aae7a865556f4295a4509fb3f9bd7f",
|
||||||
"dirty": false
|
"dirty": false
|
||||||
},
|
},
|
||||||
"pytex": {
|
"pytex": {
|
||||||
|
@ -80,12 +80,12 @@
|
||||||
{
|
{
|
||||||
"name": "math/mathfig/mkessler-mathfig.sty",
|
"name": "math/mathfig/mkessler-mathfig.sty",
|
||||||
"source file": "math/mathfig/mathfig.pysty",
|
"source file": "math/mathfig/mathfig.pysty",
|
||||||
"build time": "2022/01/30 23:48",
|
"build time": "2022/06/27 14:01",
|
||||||
"source version": "v2.8.1-9-g4bda829",
|
"source version": "v2.9-15-gb7ba678",
|
||||||
"source commit hash": "4bda829518c07d985656547cf897712db361160e",
|
"source commit hash": "b7ba678943aae7a865556f4295a4509fb3f9bd7f",
|
||||||
"pytex version": "v1.2.0-31-gc9bb0e8",
|
"pytex version": "v1.2.0-31-gc9bb0e8",
|
||||||
"pytex commit hash": "c9bb0e87c91beae3e17a829603e4459cf804ec51",
|
"pytex commit hash": "c9bb0e87c91beae3e17a829603e4459cf804ec51",
|
||||||
"md5sum": "54a8900c6123889fa1823424c074a9ea",
|
"md5sum": "ff0be1fc2a4563885533c7be16a7dab1",
|
||||||
"dirty": false
|
"dirty": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
%
|
%
|
||||||
% Build details:
|
% Build details:
|
||||||
% PyTeX version: v1.2.0-31-gc9bb0e8 (commit c9bb0e8)
|
% PyTeX version: v1.2.0-31-gc9bb0e8 (commit c9bb0e8)
|
||||||
% Source code version: v2.8.1-9-g4bda829 (commit 4bda829)
|
% Source code version: v2.9-15-gb7ba678 (commit b7ba678)
|
||||||
%
|
%
|
||||||
% This LaTeX package is free software and is dual-licensed
|
% This LaTeX package is free software and is dual-licensed
|
||||||
% under the LPPLv1.3c and the GPLv3 licenses.
|
% under the LPPLv1.3c and the GPLv3 licenses.
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
\NeedsTeXFormat{LaTeX2e}
|
\NeedsTeXFormat{LaTeX2e}
|
||||||
\ProvidesPackage{mkessler-mathfig}[2022/01/30 - Math figures with TikZ / pgfplots / xy]
|
\ProvidesPackage{mkessler-mathfig}[2022/06/27 - Math figures with TikZ / pgfplots / xy]
|
||||||
|
|
||||||
|
|
||||||
% This is just a collection of the packages I use to typeset mathematical figures
|
% This is just a collection of the packages I use to typeset mathematical figures
|
||||||
|
@ -93,3 +93,29 @@
|
||||||
\NewDocumentCommand\pullback{ O{dr} }{
|
\NewDocumentCommand\pullback{ O{dr} }{
|
||||||
\arrow[phantom, pos=0.45]{#1}{\pullbacksymbol}
|
\arrow[phantom, pos=0.45]{#1}{\pullbacksymbol}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
%% Fix for equal arrows in tikz, see
|
||||||
|
% https://tex.stackexchange.com/questions/443017/equal-arrows-without-transparent-ends-possible-in-tikzcd
|
||||||
|
|
||||||
|
\usetikzlibrary{decorations.markings}
|
||||||
|
\tikzset {
|
||||||
|
double line with arrow/.style args=
|
||||||
|
{ #1, #2 }
|
||||||
|
{ decorate, decoration =
|
||||||
|
{
|
||||||
|
markings,
|
||||||
|
mark = at position 0 with
|
||||||
|
{
|
||||||
|
\coordinate (ta-base-1) at (0,1pt);
|
||||||
|
\coordinate (ta-base-2) at (0,-1pt);
|
||||||
|
},
|
||||||
|
mark = at position 1 with
|
||||||
|
{
|
||||||
|
\draw[#1] (ta-base-1) -- (0,1pt);
|
||||||
|
\draw[#2] (ta-base-2) -- (0,-1pt);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
\tikzset{Equal/.style={-,double line with arrow={-,-}}}
|
||||||
|
|
Loading…
Reference in a new issue