Debian Codegraph @

texmf-dist/tex/latex/tikz-timing/tikz-timing-interval.sty

raw
1 %%
2 %% This is file `tikz-timing-interval.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% tikz-timing.dtx (with options: `tikz-timing-interval.sty')
8 %%
9 %% IMPORTANT NOTICE:
10 %%
11 %% For the copyright see the source file.
12 %%
13 %% Any modified versions of this file must be renamed
14 %% with new filenames distinct from tikz-timing-interval.sty.
15 %%
16 %% For distribution of the original source see the terms
17 %% for copying and modification in the file tikz-timing.dtx.
18 %%
19 %% This generated file may be distributed as long as the
20 %% original source files, as listed above, are part of the
21 %% same distribution. (The sources need not necessarily be
22 %% in the same archive or directory.)
23 %% Copyright (C) 2009-2012 by Martin Scharrer <[email protected]>
24 %% ----------------------------------------------------------------------
25 %% This work may be distributed and/or modified under the
26 %% conditions of the LaTeX Project Public License, either version 1.3
27 %% of this license or (at your option) any later version.
28 %% The latest version of this license is in
29 %% http://www.latex-project.org/lppl.txt
30 %% and version 1.3 or later is part of all distributions of LaTeX
31 %% version 2005/12/01 or later.
32 %%
33 %% This work has the LPPL maintenance status `maintained'.
34 %%
35 %% The Current Maintainer of this work is Martin Scharrer.
36 %%
37 %% This work consists of the files tikz-timing.dtx and tikz-timing.ins
38 %% and the derived filebase tikz-timing*.sty.
39 %%
40 \NeedsTeXFormat{LaTeX2e}[1999/12/01]
41 \ProvidesPackage{tikz-timing-interval}[%
42 2017/12/20
43 v0.7f
44 tikz-timing library for alternative Z transitions]
45 \let\tikztiming@linterval\relax
46 \let\tikztiming@rinterval\relax
47
48 \tikztimingdef{LZ}{
49 \tikztiming@rinterval
50 {\newdraw [\style]}
51 {-- ++(\zslope,+\height/2.)}
52 -- ++($ (#1,0) - (\zslope,0) $)
53 }
54
55 \tikztimingdef{HZ}{%
56 \tikztiming@rinterval
57 {\newdraw [\style]}
58 {-- ++(\zslope,-\height/2.)}
59 -- ++($ (#1,0) - (\zslope,0) $)
60 }
61
62 \tikztimingdef{TZ}{%
63 \code{\setcounter{tikztimingtrans}{-\value{tikztimingtrans}}}
64 \tikztiming@rinterval
65 {\newdraw [\style]}
66 {-- ++(\zslope,\value{tikztimingtrans}*\height/2.)}
67 -- ++($ (#1,0) - (\zslope,0) $)
68 }
69
70 \tikztimingdef{ZL}{%
71 \tikztiming@linterval
72 {\newdraw}
73 {-- ++(\zslope,-\height/2.)}
74 -- ++($ (#1,0) - (\zslope,0) $)
75 }
76
77 \tikztimingdef{ZH}{%
78 \tikztiming@linterval
79 {\newdraw}
80 {-- ++(\zslope,\height/2.)}
81 -- ++($ (#1,0) - (\zslope,0) $)
82 }
83
84 \tikztimingdef{ZT}{%
85 \code{\setcounter{tikztimingtrans}{-\value{tikztimingtrans}}}
86 \tikztiming@linterval
87 {\newdraw [\style]}
88 {-- ++(\zslope,\value{tikztimingtrans}*\height/2.)}
89 -- ++($ (#1,0) - (\zslope,0) $)
90 }
91
92 \def\tikztiming@onetwo#1#2{#1#2}
93 \def\tikztiming@twoone#1#2{#2#1}
94
95 \let\tikztiming@linterval\tikztiming@onetwo
96 \let\tikztiming@rinterval\tikztiming@onetwo
97
98 \tikzset{timing/interval/.code={\pgfqkeys{/tikz/timing/interval}{#1}}}
99 \tikzset{timing/interval/.cd,
100 lo/.style={/tikz/timing/interval/left open},
101 lc/.style={/tikz/timing/interval/left close},
102 ro/.style={/tikz/timing/interval/right open},
103 rc/.style={/tikz/timing/interval/right close},
104 left close/.code={\let\tikztiming@linterval\tikztiming@onetwo},
105 left open/.code={\let\tikztiming@linterval\tikztiming@twoone},
106 right open/.code={\let\tikztiming@rinterval\tikztiming@onetwo},
107 right close/.code={\let\tikztiming@rinterval\tikztiming@twoone},
108 }
109 \tikzset{
110 timing/interval/normal/.style={/tikz/timing/interval/left close,/tikz/timing/interval/right open},
111 timing/interval/verilog/.style={/tikz/timing/interval/normal},
112 timing/interval/metachar/.style={/tikz/timing/metachar={#1}[2]{[timing/interval={##2}]}},
113 }
114
115 \endinput
116 %%
117 %% End of file `tikz-timing-interval.sty'.