| 1 |
% Copyright 2018 by Mark Wibrow |
| 2 |
% |
| 3 |
% This file may be distributed and/or modified |
| 4 |
% |
| 5 |
% 1. under the LaTeX Project Public License and/or |
| 6 |
% 2. under the GNU Public License. |
| 7 |
% |
| 8 |
% See the file doc/generic/pgf/licenses/LICENSE for more details. |
| 9 |
|
| 10 |
\usetikzlibrary{decorations}% |
| 11 |
\usepgflibrary{decorations.markings}% |
| 12 |
|
| 13 |
% Upgrade \arrow command |
| 14 |
\def\pgf@lib@dec@doarrowhead{% |
| 15 |
\pgfutil@ifnextchar[{\tikz@lib@dec@doarrowhead}{\tikz@lib@dec@doarrowhead[]}%] |
| 16 |
}% |
| 17 |
\def\tikz@lib@dec@doarrowhead[#1]#2{% |
| 18 |
\scope[#1] |
| 19 |
\pgf@lib@dec@arrowhead{1}{#2}% |
| 20 |
\endscope |
| 21 |
}% |
| 22 |
\def\pgf@lib@dec@doarrowheadrev{% |
| 23 |
\pgfutil@ifnextchar[{\tikz@lib@dec@doarrowheadrev}{\tikz@lib@dec@doarrowheadrev[]}%] |
| 24 |
}% |
| 25 |
\def\tikz@lib@dec@doarrowheadrev[#1]#2{% |
| 26 |
\scope[#1] |
| 27 |
\pgf@lib@dec@arrowhead{-1}{#2}% |
| 28 |
\endscope |
| 29 |
}% |
| 30 |
|
| 31 |
\endinput |