| 1 |
% Copyright 2018 by Till Tantau |
| 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 |
\ProvidesFileRCS{tikzlibraryscopes.code.tex} |
| 11 |
|
| 12 |
% Redefine the after command hook... |
| 13 |
|
| 14 |
\def\tikz@lib@scope@check{% |
| 15 |
\pgfutil@ifnextchar\tikz@intersect@finish{% |
| 16 |
\tikz@intersect@finish\afterassignment\tikz@lib@scope@check\let\tikz@next% |
| 17 |
}{% |
| 18 |
\pgfutil@ifnextchar\par{% |
| 19 |
\afterassignment\tikz@lib@scope@check\let\tikz@next% |
| 20 |
}% |
| 21 |
{\pgfutil@ifnextchar\bgroup{%gotcha |
| 22 |
\afterassignment\tikz@lib@scope@gotcha\let\tikz@next% |
| 23 |
}% |
| 24 |
{}% |
| 25 |
}% |
| 26 |
}% |
| 27 |
}% |
| 28 |
|
| 29 |
\def\tikz@lib@scope@gotcha{% |
| 30 |
\pgfutil@ifnextchar[{%] |
| 31 |
\tikz@lib@scope@action% |
| 32 |
}{% |
| 33 |
% false alarm |
| 34 |
\bgroup% |
| 35 |
}% |
| 36 |
}% |
| 37 |
\def\tikz@lib@scope@action[#1]{% |
| 38 |
\scope[#1]\bgroup\aftergroup\endscope% |
| 39 |
\tikz@lib@scope@check% |
| 40 |
}% |
| 41 |
|
| 42 |
\endinput |