| 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 |
\usepgflibrary{shapes.callouts}% |
| 11 |
|
| 12 |
\pgfkeys{/tikz/callout absolute pointer/.code={% |
| 13 |
\tikz@scan@one@point\tikz@lib@callout@checkforplus#1\relax% |
| 14 |
}% |
| 15 |
}% |
| 16 |
|
| 17 |
\def\tikz@lib@callout@checkforplus#1{% |
| 18 |
\pgfutil@ifnextchar+{\def\tikz@lib@callout@originalpoint{#1}\tikz@lib@callout@scan@relative}% |
| 19 |
{\pgf@lib@callout@makeabsolutepointer{#1}}}% |
| 20 |
|
| 21 |
\def\tikz@lib@callout@scan@relative+{% |
| 22 |
\pgfutil@ifnextchar+{\tikz@lib@callout@scan@plusplus}{\tikz@lib@callout@scan@plus}}% |
| 23 |
\def\tikz@lib@callout@scan@plusplus+{\tikz@scan@one@point\tikz@lib@callout@add}% |
| 24 |
\def\tikz@lib@callout@scan@plus{\tikz@scan@one@point\tikz@lib@callout@add}% |
| 25 |
\def\tikz@lib@callout@add#1{% |
| 26 |
\expandafter\pgf@lib@callout@makeabsolutepointer\expandafter{% |
| 27 |
\expandafter\pgfpointadd\expandafter{\tikz@lib@callout@originalpoint}{#1}}% |
| 28 |
}% |
| 29 |
|
| 30 |
\pgfkeys{/tikz/callout relative pointer/.code={% |
| 31 |
\tikz@scan@one@point\pgf@lib@callout@makerelativepointer#1\relax% |
| 32 |
}% |
| 33 |
}% |
| 34 |
|
| 35 |
\endinput |