diff options
author | Karl Berry <karl@freefriends.org> | 2009-12-11 01:03:36 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-12-11 01:03:36 +0000 |
commit | dc9526cb9ac65af66d74d5b44c78647df15e5b13 (patch) | |
tree | ebcff6b7777c4f463e59ea5dc1ec7481f202cf92 /Master/texmf-dist/tex/latex/tikz-timing/tikz-timing-overlays.sty | |
parent | 74b4962e535420c873e7047cf77c79a8277743f1 (diff) |
tikz-timing 0.7 (9dec09)
git-svn-id: svn://tug.org/texlive/trunk@16348 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tikz-timing/tikz-timing-overlays.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/tikz-timing/tikz-timing-overlays.sty | 79 |
1 files changed, 53 insertions, 26 deletions
diff --git a/Master/texmf-dist/tex/latex/tikz-timing/tikz-timing-overlays.sty b/Master/texmf-dist/tex/latex/tikz-timing/tikz-timing-overlays.sty index 4a7de0dc35b..a312ca31e04 100644 --- a/Master/texmf-dist/tex/latex/tikz-timing/tikz-timing-overlays.sty +++ b/Master/texmf-dist/tex/latex/tikz-timing/tikz-timing-overlays.sty @@ -4,7 +4,7 @@ %% %% The original source files were: %% -%% tikz-timing.dtx (with options: `lib-overlays') +%% tikz-timing.dtx (with options: `lib,lib-overlays') %% %% Copyright (C) 2009 by Martin Scharrer <martin@scharrer-online.de> %% @@ -27,36 +27,63 @@ %% \RequirePackage{svn-prov}[2009/05/03] \ProvidesPackageSVN[tikz-timing-overlays] - {$Id: tikz-timing.dtx 1158 2009-07-28 09:14:00Z martin $} - [v0.6a - TikZ-Timing Library for timing overlays] + {$Id: tikz-timing.dtx 1580 2009-12-09 11:14:01Z martin $} + [v0.7 + TikZ-Timing Library for + timing overlays] +\GetFileInfoSVN*% +\RequirePackage{tikz-timing}[\filedate]% \DefineFileInfoSVN -\tikztiming@defcode{O}{% - \@ifnextchar\relax - {\tikztiming@\relax}% - {\tikztiming@overlay}% -} -\def\tikztiming@overlay#1#2{% - \ifx\relax#1\relax - \tikztiming@output@flush - \def\next{\tikztiming@\relax}% +\tikztiming@defcode{O}#1{% + \ifx\relax#1\empty + \def\tikztiming@next{\tikztiming@parser#1}% \else - \ifx\relax#2\relax - \def\next{\tikztiming@#1\relax}% - \else - \tikztiming@output@flush - \let\tikztiming@overlay@lastchar\lastchar - \tikztiming@addtostr{ node [timing/save] (timing@overlay@start) {} }% - \tikztiming@#1\relax - \tikztiming@output@flush - \let\lastchar\tikztiming@overlay@lastchar - \tikztiming@addtostr{ (timing@overlay@start) }% - \def\next{\tikztiming@#2}% - \fi + \let\tikztiming@overlay@lastchar\tikztiming@lastchar + \let\tikztiming@overlay@width\tikztimingwidth + \tikztiming@output@addcode{\tikztiming@overlay@begin}% + \begingroup + \def\tikztiming@parser@end{% + \def\tikztiming@output@nextchar{@}% + \tikztiming@output@flush + } + \begingroup + \tikztiming@parser #1\relax + \endgroup + \endgroup + \tikztiming@output@addcode{\tikztiming@overlay@end}% + \global\let\tikztiming@lastchar\tikztiming@overlay@lastchar + \global\let\tikztimingwidth\tikztiming@overlay@width + \def\tikztiming@next{\expandafter\tikztiming@parser\@firstofone}% \fi - \next + \tikztiming@next } +\let\tikztiming@overlay@save\empty +\let\pgf@sh@nt@tikztiming@overlay@node\empty +\def\tikztiming@overlay@begin{ + [/utils/exec={% + \xdef\tikztiming@overlay@save{% + \noexpand\global\noexpand\c@tikztimingtrans\the\c@tikztimingtrans\relax% + \noexpand\global\noexpand\c@tikztimingtranspos\the\c@tikztimingtranspos\relax% + \noexpand\gdef\noexpand\pgf@sh@nt@tikztiming@overlay@node + {\csname pgf@sh@nt@tikztiming@overlay@node\endcsname}% + \noexpand\gdef\noexpand\pgf@sh@nt@timing@refa + {\csname pgf@sh@nt@timing@refa\endcsname}% + \noexpand\gdef\noexpand\pgf@sh@nt@timing@refb + {\csname pgf@sh@nt@timing@refb\endcsname}% + \noexpand\gdef\noexpand\pgf@sh@nt@timing@ref + {\csname pgf@sh@nt@timing@ref\endcsname}% + \noexpand\gdef\noexpand\tikztiming@overlay@save{% + \expandafter\unexpanded\expandafter{\tikztiming@overlay@save}% + }% + }% + }]% + node [timing/save] (tikztiming@overlay@node) {} + }% +\def\tikztiming@overlay@end{% + \tikztiming@newdraw (tikztiming@overlay@node) + [/utils/exec={\tikztiming@overlay@save}] +}% \endinput %% %% End of file `tikz-timing-overlays.sty'. |