summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarydecorations.markings.code.tex
blob: eecdfb6ad3f2fdf67070e39623fd86662e3f640a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
% Copyright 2008 by Mark Wibrow
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/generic/pgf/licenses/LICENSE for more details.

\usetikzlibrary{decorations}
\usepgflibrary{decorations.markings}

% Upgrade \arrow command
\def\pgf@lib@dec@doarrowhead{%
  \pgfutil@ifnextchar[{\tikz@lib@dec@doarrowhead}{\tikz@lib@dec@doarrowhead[]}%]
}
\def\tikz@lib@dec@doarrowhead[#1]#2{%
  \scope[#1]
    \pgf@lib@dec@arrowhead{1}{#2}%
  \endscope
}
\def\pgf@lib@dec@doarrowheadrev{%
  \pgfutil@ifnextchar[{\tikz@lib@dec@doarrowheadrev}{\tikz@lib@dec@doarrowheadrev[]}%]
}
\def\tikz@lib@dec@doarrowheadrev[#1]#2{%
  \scope[#1]
    \pgf@lib@dec@arrowhead{-1}{#2}%
  \endscope
}

\endinput