Debian Codegraph @

texmf-dist/tex/generic/advice/advice-tikz.code.tex

raw
1 %%
2 %% This is file `advice-tikz.code.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% advice.dtx (with options: `tikz')
8 %%
9 %% This file is a part of Advice, a TeX package implementing a generic
10 %% framework for extending the functionality of selected commands and
11 %% environments, available at https://ctan.org/pkg/advice and
12 %% https://github.com/sasozivanovic/advice.
13 %%
14 %% Copyright (c) 2023- Saso Zivanovic <[email protected]>
15 %% (Sa\v{s}o \v{Z}ivanovi\'{c})
16 %%
17 %% This work may be distributed and/or modified under the conditions of the
18 %% LaTeX Project Public License, either version 1.3c of this license or (at
19 %% your option) any later version. The latest version of this license is in
20 %% https://www.latex-project.org/lppl.txt and version 1.3c or later is part of
21 %% all distributions of LaTeX version 2008 or later.
22 %%
23 %% This work has the LPPL maintenance status `maintained'.
24 %% The Current Maintainer of this work is Saso Zivanovic.
25 %%
26 %% The files belonging to this work and covered by LPPL are listed in
27 %% (<texmf>/doc/generic/advice/)FILES.
28 \edef\adviceresetatcatcode{\catcode`\noexpand\@\the\catcode`\@\relax}%
29 \catcode`\@=11
30 \def\AdviceCollectTikZArguments{%
31 \toks0={}%
32 \advice@tikz@anim
33 }
34 \def\advice@tikz@anim{%
35 \pgfutil@ifnextchar[{\advice@tikz@opt}{%
36 \pgfutil@ifnextchar:{\advice@tikz@anim@a}{%
37 \advice@tikz@code}}%]
38 }
39 \def\advice@tikz@anim@a#1=#2{%
40 \toksapp0{#1={#2}}%
41 \advice@tikz@anim
42 }
43 \def\advice@tikz@opt[#1]{%
44 \toksapp0{[#1]}%
45 \advice@tikz@code
46 }
47 \def\advice@tikz@code{%
48 \pgfutil@ifnextchar\bgroup\advice@tikz@braced\advice@tikz@single
49 }
50 \long\def\advice@tikz@braced#1{\toksapp0{{#1}}\advice@tikz@done}
51 \def\advice@tikz@single#1;{\toksapp0{#1;}\advice@tikz@done}
52 \def\advice@tikz@done{%
53 \expandafter\AdviceInnerHandler\expandafter{\the\toks0}%
54 }
55 \adviceresetatcatcode
56 \endinput
57 %%
58 %% End of file `advice-tikz.code.tex'.