blob: 808e34578d68f08583a1b0cc1cb2bb49a3b229d8 (
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
32
33
34
35
36
37
38
39
40
41
42
|
% Copyright 2006 by Till Tantau
%
% 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.
\ProvidesFileRCS[v\pgfversion] $Header: /cvsroot/pgf/pgf/generic/pgf/frontendlayer/tikz/libraries/tikzlibraryscopes.code.tex,v 1.2 2008/06/27 17:00:24 vibrovski Exp $
% Redefine the after command hook...
\def\tikz@lib@scope@check{%
\pgfutil@ifnextchar\tikz@intersect@finish{%
\tikz@intersect@finish\afterassignment\tikz@lib@scope@check\let\tikz@next%
}{%
\pgfutil@ifnextchar\par{%
\afterassignment\tikz@lib@scope@check\let\tikz@next%
}%
{\pgfutil@ifnextchar\bgroup{%gotcha
\afterassignment\tikz@lib@scope@gotcha\let\tikz@next%
}%
{}%
}%
}%
}
\def\tikz@lib@scope@gotcha{%
\pgfutil@ifnextchar[{%]
\tikz@lib@scope@action%
}{%
% false alarm
\bgroup%
}%
}
\def\tikz@lib@scope@action[#1]{%
\scope[#1]\bgroup\aftergroup\endscope%
\tikz@lib@scope@check%
}
\endinput
|