load missing decorations library for tikz-cd
This commit is contained in:
parent
e9f75cd220
commit
8c5b9ad7a4
1 changed files with 21 additions and 19 deletions
|
@ -8,7 +8,7 @@ __HEADER__(Math figures with TikZ / pgfplots / xy)
|
||||||
\pgfplotsset{compat=1.7}
|
\pgfplotsset{compat=1.7}
|
||||||
|
|
||||||
\RequirePackage{tikz} % Plots / drawings
|
\RequirePackage{tikz} % Plots / drawings
|
||||||
\usetikzlibrary{calc, intersections, through, quotes, angles, babel, positioning, snakes}
|
\usetikzlibrary{calc, intersections, through, quotes, angles, babel, positioning, snakes, decorations.markings}
|
||||||
|
|
||||||
\RequirePackage{tikz-cd} %Commutative diagrams
|
\RequirePackage{tikz-cd} %Commutative diagrams
|
||||||
\RequirePackage{xparse}
|
\RequirePackage{xparse}
|
||||||
|
@ -47,24 +47,26 @@ __HEADER__(Math figures with TikZ / pgfplots / xy)
|
||||||
%% Fix for equal arrows in tikz, see
|
%% Fix for equal arrows in tikz, see
|
||||||
% https://tex.stackexchange.com/questions/443017/equal-arrows-without-transparent-ends-possible-in-tikzcd
|
% https://tex.stackexchange.com/questions/443017/equal-arrows-without-transparent-ends-possible-in-tikzcd
|
||||||
|
|
||||||
\usetikzlibrary{decorations.markings}
|
|
||||||
\tikzset {
|
\tikzset {
|
||||||
double line with arrow/.style args=
|
double line with arrow/.style args =
|
||||||
{ #1, #2 }
|
{#1,#2}%
|
||||||
{ decorate, decoration =
|
{
|
||||||
{
|
decorate, decoration =
|
||||||
markings,
|
{
|
||||||
mark = at position 0 with
|
markings,
|
||||||
{
|
mark = at position 0 with
|
||||||
\coordinate (ta-base-1) at (0,1pt);
|
{
|
||||||
\coordinate (ta-base-2) at (0,-1pt);
|
\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);
|
mark = at position 1 with
|
||||||
\draw[#2] (ta-base-2) -- (0,-1pt);
|
{
|
||||||
}
|
\draw[#1] (ta-base-1) -- (0,1pt);
|
||||||
}
|
\draw[#2] (ta-base-2) -- (0,-1pt);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
\tikzset{Equal/.style={-,double line with arrow={-,-}}}
|
\tikzset{Equal/.style={-,double line with arrow={-,-}}}
|
||||||
|
|
Loading…
Reference in a new issue