Debian Codegraph @

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

raw
1 %%
2 %% This is file `tikz-timing-either.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% tikz-timing.dtx (with options: `tikz-timing-either.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-either.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-either}[%
42 2017/12/20
43 v0.7f
44 tikz-timing library for uncertain transitions]
45 \tikztimingchar{E}{
46 ++(0,0)
47 \code{\setcounter{tikztimingtranspos}{0}}%
48 \code{\setcounter{tikztimingtrans}{1}}%
49 }{
50 \code{\setcounter{tikztimingtranspos}{0}}%
51 \code{\setcounter{tikztimingtrans}{1}}%
52 \tikztiminguse{D}{#1}%
53 \newdraw [\style]
54 }
55 \def\tikztiming@triple@E{}%
56
57 \tikztimingdef{LE@}{%
58 \newdraw [\bgstyle]
59 -- ++(\slope,\height)%
60 -- ++($ (#1,0) - (\slope,0) $)%
61 -- ++(0,-\height)%
62 -- ++($ -1*(#1,0) $)%
63 \newdraw [\style]
64 -- ++(\slope,\height)%
65 -- ++($ (#1,0) - (\slope,0) $)%
66 ++($ -1*(#1,\height) $)%
67 -- ++($ 1*(#1,0) $)%
68 ++(0,.5\height)%
69 \newdraw [\nstyle]
70 \code{\setcounter{tikztimingtranspos}{0}}%
71 \code{\setcounter{tikztimingtrans}{1}}%
72 }%
73
74 \tikztimingdef{HE@}{%
75 \newdraw [\bgstyle]
76 -- ++(\slope,-\height)%
77 -- ++($ (#1,0) - (\slope,0) $)%
78 -- ++(0,\height)%
79 -- ++($ -1*(#1,0) $)%
80 \newdraw [\style]
81 -- ++(\slope,-\height)%
82 -- ++($ (#1,0) - (\slope,0) $)%
83 ++($ -1*(#1,-\height) $)%
84 -- ++($ 1*(#1,0) $)%
85 ++(0,-.5\height)%
86 \newdraw [\nstyle]
87 \code{\setcounter{tikztimingtranspos}{1}}%
88 \code{\setcounter{tikztimingtrans}{-1}}%
89 }%
90
91 \tikztimingdef{TE@}{%
92 \newdraw [\bgstyle]
93 -- ++(\slope,-\height * \value{tikztimingtrans})%
94 -- ++($ (#1,0) - (\slope,0) $)%
95 -- ++(0,\height * \value{tikztimingtrans})%
96 -- ++($ -1*(#1,0) $)%
97 \newdraw [\style]
98 -- ++(\slope,-\height * \value{tikztimingtrans})%
99 -- ++($ (#1,0) - (\slope,0) $)%
100 ++($ -1*(#1,-\height * \value{tikztimingtrans}) $)%
101 -- ++($ 1*(#1,0) $)%
102 ++(0,-1*\value{tikztimingtrans}*.5*\height)%
103 \newdraw [\nstyle]
104 }%
105
106 \tikztimingdef{LEL}{%
107 \newdraw [\style,preaction={\bgstyle}]
108 -- +(\slope,\height)%
109 -- +(#1,\height)%
110 -- +($ (#1,0) + (\slope,0) $)%
111 -- +(0,0)
112 ++(#1,\height/2) coordinate (timing@ref)
113 ++(\slope,-\height/2)%
114 \newdraw [\nstyle]
115 }%
116
117 \tikztimingdef{LEH}{%
118 \newdraw [\style,preaction={\bgstyle}]
119 -- +(\slope,\height)%
120 -- +($ (#1,\height) + (\slope,0) $)%
121 -- +(#1,0)%
122 -- +(0,0)
123 ++(#1,\height/2) coordinate (timing@ref)
124 ++(\slope,\height/2)%
125 \newdraw [\nstyle]
126 }%
127
128 \tikztimingdef{HEH}{%
129 \newdraw [\style,preaction={\bgstyle}]
130 -- +($ (#1,0) + (\slope,0) $)%
131 -- +(#1,-\height)%
132 -- +(\slope,-\height)
133 -- +(0,0)
134 ++(#1,-\height/2) coordinate (timing@ref)
135 ++(\slope,\height/2)%
136 \newdraw [\nstyle]
137 }%
138
139 \tikztimingdef{HEL}{%
140 \newdraw [\style,preaction={\bgstyle}]
141 -- +(#1,0)
142 -- +($ (#1,-\height) + (\slope,0) $)%
143 -- +(\slope,-\height)
144 -- +(0,0)
145 ++(#1,-\height/2) coordinate (timing@ref)
146 ++(\slope,-\height/2)%
147 \newdraw [\nstyle]
148 }%
149
150 \tikztimingdef{HET}{
151 \newdraw [\style,preaction={\bgstyle}]
152 -- +(#1,0)
153 {[\nstyle]
154 -- +($ (#1,-\height) + (\slope,0) $)%
155 }
156 -- +(\slope,-\height)
157 -- +(0,0)
158 {[\nstyle]
159 ++(#1,-\height/2) coordinate (timing@ref)
160 ++(\slope,-\height/2)%
161 }
162 \newdraw [\nstyle]
163 \code{\setcounter{tikztimingtrans}{-1}}%
164 }
165
166 \tikztimingdef{LET}{
167 \newdraw [\style,preaction={\bgstyle}]
168 -- +(\slope,\height)%
169 {[\nstyle]
170 -- +($ (#1,\height) + (\slope,0) $)%
171 }
172 -- +(#1,0)%
173 -- +(0,0)
174 {[\nstyle]
175 ++(#1,\height/2)%
176 coordinate (timing@ref)
177 ++(\slope,\height/2)%
178 }
179 \newdraw [\nstyle]
180 \code{\setcounter{tikztimingtrans}{1}}%
181 }
182
183 \tikztimingdef{HEE}{%
184 \newdraw [\style,preaction={\bgstyle}]
185 -- +(#1,0) coordinate (timing@refb)
186 \tikztiming@setref{timing@ref}{0,-\height/2}
187 -- +($ (#1,-\height) + (\slope,0) $) coordinate (timing@refa)
188 -- +(\slope,-\height)
189 -- +(0,0)
190 \tikztiming@setref{timing@ref}{#1,-\height/2}
191 ++($ (#1,-\height) + (\slope,0) $)%
192 \code{\setcounter{tikztimingtranspos}{1}}%
193 \code{\setcounter{tikztimingtrans}{-1}}%
194 \newdraw [\nstyle]
195 }%
196
197 \tikztimingdef{LEE}{%
198 \newdraw [\style,preaction={\bgstyle}]
199 -- +(#1,0) coordinate (timing@refa)
200 \tikztiming@setref{timing@ref}{0,\height/2}
201 -- +($ (#1,\height) + (\slope,0) $) coordinate (timing@refb)
202 -- +(\slope,\height)
203 -- +(0,0)
204 ++(#1,0) \tikztiming@setref{timing@ref}{0,\height/2}
205 \code{\setcounter{tikztimingtranspos}{0}}%
206 \code{\setcounter{tikztimingtrans}{1}}%
207 \newdraw [\nstyle]
208 }%
209
210 \tikztimingdef{TEE}{%
211 \newdraw [\style,preaction={\bgstyle}]
212 -- +(\slope, -\height * \value{tikztimingtrans})%
213 -- +($ (#1,0) + (\slope, -\height * \value{tikztimingtrans}) $)
214 -- +(#1,0)
215 -- +(0,0)%
216 \code{\setcounter{tikztimingtranspos}{\value{tikztimingtrans}}%
217 \addtocounter{tikztimingtranspos}{+1}}
218 +($ (#1,0) + (\slope/2 + \slope/2 * \value{tikztimingtrans}, -\height/2 * \value{tikztimingtranspos}) $)
219 coordinate (timing@refa)
220 +($ (#1,0) + (\slope/2 - \slope/2 * \value{tikztimingtrans}, \height - \height/2 * \value{tikztimingtranspos}) $)
221 coordinate (timing@refb)
222 ++(#1,0)
223 \tikztiming@setref{timing@ref}{0,-\height/2 * \value{tikztimingtrans}}
224 ++(
225 .5 * \slope + .5 * \value{tikztimingtrans} * \slope,
226 -.5 * \height - .5 * \value{tikztimingtrans} * \height
227 )
228 \code{\setcounter{tikztimingtrans}{-\value{tikztimingtrans}}}
229 \newdraw [\nstyle]
230 }%
231
232 \tikztimingdef{TEH}{%
233 \newdraw [\style,preaction={\bgstyle}]
234 -- ++(\slope,-\height * \value{tikztimingtrans})
235 -- ++($ (#1,0) - (\slope/2 + \slope/2 * \value{tikztimingtrans},0) $)
236 -- ++(\slope * \value{tikztimingtrans},
237 \height * \value{tikztimingtrans})
238 -- ++($ -1*(#1,0) - (\slope/2 + \slope/2 * \value{tikztimingtrans},0) $)
239 ++($ (#1,-\height/2 * \value{tikztimingtrans}) $) coordinate (timing@ref)
240 ++(\slope,\height/2)
241 \newdraw [\nstyle]
242 }
243
244 \tikztimingdef{TEL}{%
245 \newdraw [\style,preaction={\bgstyle}]
246 -- ++(\slope,-\height * \value{tikztimingtrans})
247 -- ++($ (#1,0) - (\slope/2 - \slope/2 * \value{tikztimingtrans},0) $)
248 -- ++(-\slope * \value{tikztimingtrans},
249 \height * \value{tikztimingtrans})
250 -- ++($ -1*(#1,0) - (\slope/2 + -\slope/2 * \value{tikztimingtrans},0) $)
251 ++($ (#1,-\height/2 * \value{tikztimingtrans}) $) coordinate (timing@ref)
252 ++(\slope,-\height/2)
253 \newdraw [\nstyle]
254 }
255
256 \tikztimingdef{TEZ}{%
257 \newdraw [\style,preaction={\bgstyle}]
258 -- ++(\slope,-\height * \value{tikztimingtrans})
259 -- ++($ (#1,0) - (\slope,0) $)
260 -- ++(\zslope,
261 \height/2 * \value{tikztimingtrans})
262 -- ++(-\zslope,
263 \height/2 * \value{tikztimingtrans})
264 -- ++($ -1*(#1,0) $)
265 ++($ (#1,0) + (0,-\height/2 * \value{tikztimingtrans}) $)
266 coordinate (timing@ref)
267 ++(\zslope,0)
268 \newdraw [\nstyle]
269 }
270
271 \tikztimingdef{TED}{%
272 \newdraw [\style,preaction={\bgstyle}]
273 -- ++(\slope,-\height * \value{tikztimingtrans})
274 -- ++($ (#1,0) - (\slope,0) $)
275 -- ++(\dslope/2,
276 \height/2 * \value{tikztimingtrans})
277 -- ++(-\dslope/2,
278 \height/2 * \value{tikztimingtrans})
279 -- ++($ -1*(#1,0) $)
280 ++($ (#1,0) + (0,-\height/2 * \value{tikztimingtrans}) $)
281 coordinate (timing@ref)
282 ++(\dslope/2,0)
283 \newdraw [\nstyle]
284 }
285
286 \tikztimingdef{TET}{%
287 \newdraw [\style,preaction={\bgstyle}]
288 -- +(\slope, -\height * \value{tikztimingtrans})%
289 {[\nstyle]
290 -- +($ (#1,0) + (\slope, -\height * \value{tikztimingtrans}) $)%
291 }
292 -- +(#1,0)%
293 -- +(0,0)%
294 {[\nstyle]
295 ++($ (#1,0) + (0, -\height/2 * \value{tikztimingtrans}) $)%
296 coordinate (timing@ref)
297 ++(\slope, -\height/2 * \value{tikztimingtrans})%
298 }
299 \code{\setcounter{tikztimingtrans}{-\value{tikztimingtrans}}}
300 \newdraw [\nstyle]
301 }%
302
303 \tikztimingdef{EEZ}{%
304 \newdraw [\style,preaction={\bgstyle}]
305 -- (timing@refb)
306 -- ($ (timing@ref) + (#1,+\height/2) $)
307 -- ($ (timing@ref) + (#1,0) + (\zslope,0) $)
308 -- ($ (timing@ref) + (#1,-\height/2) $)
309 -- (timing@refa)
310 ($ (timing@ref) + (#1,0) + (\zslope,0) $)
311 coordinate (timing@ref) at ($ (timing@ref) + (#1,0) $)
312 \newdraw
313 }%
314
315 \tikztimingdef{EED}{%
316 \newdraw [\style,preaction={\bgstyle}]
317 -- (timing@refb)
318 -- ($ (timing@ref) + (#1,+\height/2) $)
319 -- ($ (timing@ref) + (#1,0) + (\dslope/2,0) $)
320 -- ($ (timing@ref) + (#1,-\height/2) $)
321 -- (timing@refa)
322 ($ (timing@ref) + (#1,0) + (\dslope/2,0) $)
323 coordinate (timing@ref) at ($ (timing@ref) + (#1,0) $)
324 \newdraw
325 }%
326
327 \tikztimingdef{HEZ}{%
328 \newdraw [\style,preaction={\bgstyle}]
329 -- +(#1,0)
330 -- +($ (#1,-\height/2) + (\zslope,0) $)%
331 -- +(#1,-\height)
332 -- +(\slope,-\height)
333 -- +(0,0)
334 ++(#1,-\height/2) coordinate (timing@ref)
335 ++(\zslope,0)%
336 \newdraw
337 }%
338
339 \tikztimingdef{LEZ}{%
340 \newdraw [\style,preaction={\bgstyle}]
341 -- +(\slope,\height)
342 -- +(#1,\height)
343 -- +($ (#1,\height/2) + (\zslope,0) $)%
344 -- +(#1,0)
345 -- +(0,0)
346 ++(#1,\height/2) coordinate (timing@ref)
347 ++(\zslope,0)%
348 \newdraw
349 }%
350
351 \tikztimingdef{LED}{%
352 \newdraw [\style,preaction={\bgstyle}]
353 -- +(\slope,\height)
354 -- +(#1,\height)
355 -- +($ (#1,\height/2) + (\dslope/2,0) $)%
356 -- +(#1,0)
357 -- +(0,0)
358 ++(#1,\height/2) coordinate (timing@ref)
359 ++(\dslope/2,0)%
360 \newdraw
361 }%
362
363 \tikztimingdef{HED}{%
364 \newdraw [\style,preaction={\bgstyle}]
365 -- +(#1,0)
366 -- +($ (#1,-\height/2) + (\dslope/2,0) $)%
367 -- +(#1,-\height)
368 -- +(\slope,-\height)
369 -- +(0,0)
370 ++(#1,-\height/2) coordinate (timing@ref)
371 ++(\dslope/2,0)%
372 \newdraw
373 }%
374
375 \tikztimingdef{EZ}{%
376 \newdraw [\style]
377 -- ($ (timing@ref) + (#1,0) $)%
378 }
379
380 \tikztimingdef{EM}{%
381 \newdraw [\style]
382 -- ($ (timing@ref) + (#1,0) $)%
383 \newdraw [\style/base]
384 }
385
386 \tikztimingdef{EL}{%
387 -- ($ (timing@ref) + (#1,-\height/2) $)%
388 }%
389 \tikztimingdef{EH}{%
390 -- ($ (timing@ref) + (#1,+\height/2) $)%
391 }%
392
393 \tikztimingdef{ED@}{%
394 \tikztiming@chard@{#1}%
395 }
396 \tikztimingcpy{E{D@edge@}@}{ED@}
397
398 \tikztimingdef{ED}{%
399 \tikztiming@chard{#1}%
400 }
401 \tikztimingcpy{E{D@edge@}}{ED}
402 \tikztimingdef{EDD}{%
403 \tikztiming@chard@{#1}%
404 }
405 \tikztimingdef{EUU}{%
406 \tikztiming@chard@{#1}%
407 }
408 \tikztimingdef{EDU}{%
409 \tikztiming@chard{#1}%
410 }
411 \tikztimingdef{EUD}{%
412 \tikztiming@chard{#1}%
413 }
414
415 \tikztimingdef{DE@}{%
416 \tikztiming@oldnodecenter@%
417 \newdraw [\bgstyle]
418 -- +(\dslope/2,\height/2)
419 -- ($ (timing@ref) + (#1,\height/2) $)%
420 -- ($ (timing@ref) + (#1,-\height/2) $)%
421 -- ($ (timing@save) + (\dslope/2,-\height/2) $)
422 -- (timing@save)
423 \newdraw [\style]
424 -- +(\dslope/2,\height/2)
425 -- ($ (timing@ref) + (#1,\height/2) $)%
426 ($ (timing@ref) + (#1,-\height/2) $)%
427 -- ($ (timing@save) + (\dslope/2,-\height/2) $)
428 -- (timing@save)
429 ($ (timing@ref) + (#1,0) $)%
430 coordinate (timing@ref)
431 }
432
433 \tikztimingdef{EEE}{%
434 \newdraw [\style,preaction={\bgstyle}]
435 -- (timing@refb)
436 -- ($ (timing@refb) + (#1,0) $)
437 -- ($ (timing@refa) + (#1,0) $)
438 -- (timing@refa)
439 ++(#1,0) coordinate (timing@refa)
440 coordinate (timing@refb) at ($ (timing@refb) + (#1,0) $)
441 coordinate (timing@ref) at ($ (timing@ref) + (#1,0) $)
442 \newdraw [\nstyle]
443 }%
444
445 \tikztimingdef{EET}{%
446 \newdraw [\style,preaction={\bgstyle}]
447 -- (timing@refb)
448 {[\nstyle]
449 -- ($ (timing@ref) + (#1,+\height/2) + (\slope/2 + \slope/2 * \value{tikztimingtrans},0) $)
450 -- ($ (timing@ref) + (#1,-\height/2) + (\slope/2 - \slope/2 * \value{tikztimingtrans},0) $)
451 }
452 -- (timing@refa)
453 {[\nstyle]
454 ($ (timing@ref) + (#1,\height/2 * \value{tikztimingtrans}) + (\slope,0) $)
455 }
456 coordinate (timing@ref) at ($ (timing@ref) + (#1,0) $)
457 \newdraw [\nstyle]
458 }%
459
460 \tikztimingdef{EEL}{%
461 \newdraw [\style,preaction={\bgstyle}]
462 -- (timing@refb)
463 -- ($ (timing@ref) + (#1,+\height/2) $)
464 -- ($ (timing@ref) + (#1,-\height/2) + (\slope,0) $)
465 -- (timing@refa)
466 ($ (timing@ref) + (#1,-\height/2) + (\slope,0) $)
467 coordinate (timing@ref) at ($ (timing@ref) + (#1,0) $)
468 \newdraw [\nstyle]
469 }%
470
471 \tikztimingdef{EEH}{%
472 \newdraw [\style,preaction={\bgstyle}]
473 -- (timing@refb)
474 -- ($ (timing@ref) + (#1,+\height/2) + (\slope,0) $)
475 -- ($ (timing@ref) + (#1,-\height/2) $)
476 -- (timing@refa)
477 ($ (timing@ref) + (#1,+\height/2) + (\slope,0) $)
478 coordinate (timing@ref) at ($ (timing@ref) + (#1,0) $)
479 \newdraw [\nstyle]
480 }%
481
482 \tikztimingdef{EE@}{%
483 \newdraw [\bgstyle]
484 let \p0 = (timing@ref), \p1 = (timing@refa), \p2 = (timing@refb) in
485 -- (\p2)
486 -- ($ (\x0,\y2) + (#1,0) $)
487 -- +(0,\y1-\y2)
488 -- (\p1)
489 \newdraw [\style]
490 let \p0 = (timing@ref), \p1 = (timing@refa), \p2 = (timing@refb) in
491 -- (\p2)
492 -- ($ (\x0,\y2) + (#1,0) $)
493 +(0,\y1-\y2)
494 -- (\p1)
495 ($ (timing@ref) + (#1,0) $) coordinate (timing@ref)
496 \newdraw [\nstyle]
497 }%
498
499 \tikztimingdef{ZE@}{
500 \newdraw [\bgstyle]
501 -- +(\zslope,\height/2)
502 -- +(#1,\height/2)%
503 -- +(#1,-\height/2)%
504 -- +(\zslope,-\height/2)
505 -- +(0,0)
506 \newdraw [\style]
507 -- +(\zslope,\height/2)
508 -- +(#1,\height/2)%
509 +(#1,-\height/2)%
510 -- +(\zslope,-\height/2)
511 -- +(0,0)
512 ++(#1,0) coordinate (timing@ref)
513 }
514
515 \tikztimingdef{ZEH}{%
516 \newdraw [\style,preaction={\bgstyle}]
517 -- +(\zslope, \height/2)
518 -- +($ (#1,0) + (\slope, \height/2) $)
519 -- +(#1,-\height/2)
520 -- +(\zslope, -\height/2)
521 -- +(0,0)
522 ++(#1,0) coordinate (timing@ref)
523 ++(\slope, \height/2)
524 \newdraw [\nstyle]
525 }
526
527 \tikztimingdef{ZEL}{%
528 \newdraw [\style,preaction={\bgstyle}]
529 -- +(\zslope, \height/2)
530 -- +(#1,\height/2)
531 -- +($ (#1,0) + (\slope, -\height/2) $)
532 -- +(\zslope, -\height/2)
533 -- +(0,0)
534 ++(#1,0) coordinate (timing@ref)
535 ++(\slope, -\height/2)
536 \newdraw [\nstyle]
537 }
538
539 \tikztimingdef{ZET}{%
540 \newdraw [\style,preaction={\bgstyle}]
541 -- +(\zslope, \height/2)
542 {[\nstyle]
543 -- +($ (#1, \height/2) + (\slope/2 - \slope/2 * \value{tikztimingtrans}, 0) $)
544 -- +($ (#1,-\height/2) + (\slope/2 + \slope/2 * \value{tikztimingtrans}, 0) $)
545 }
546 -- +(\zslope, -\height/2)
547 -- +(0,0)
548 {[\nstyle]
549 ++(#1,0) coordinate (timing@ref)
550 ++(\slope,-\height/2 * \value{tikztimingtrans})
551 }
552 \code{\setcounter{tikztimingtrans}{-\value{tikztimingtrans}}}
553 \newdraw [\nstyle]
554 }
555
556 \tikztimingdef{DET}{%
557 \tikztiming@oldnodecenter@%
558 \newdraw [\style,preaction={\bgstyle}]
559 -- +(\dslope/2, \height/2)
560 {[\nstyle]
561 -- ($ (timing@ref) + (#1, \height/2) + (\slope/2 - \slope/2 * \value{tikztimingtrans}, 0) $)
562 -- ($ (timing@ref) + (#1,-\height/2) + (\slope/2 + \slope/2 * \value{tikztimingtrans}, 0) $)
563 }
564 -- ($ (timing@save) + (\dslope/2, -\height/2) $)
565 -- (timing@save)
566 {[\nstyle]
567 ($ (timing@ref) + (#1,0) $) coordinate (timing@ref)
568 ++(\slope,-\height/2 * \value{tikztimingtrans})
569 }
570 \code{\setcounter{tikztimingtrans}{-\value{tikztimingtrans}}}
571 \newdraw [\nstyle]
572 }
573
574 \tikztimingdef{ZEZ}{%
575 \newdraw [\style,preaction={\bgstyle}]
576 -- +(\zslope, \height/2)
577 -- +(#1,\height/2)
578 -- +($ (#1,0) + (\zslope, 0) $)
579 -- +(#1,-\height/2)
580 -- +(\zslope, -\height/2)
581 -- +(0,0)
582 ++(#1,0) coordinate (timing@ref)
583 ++(\zslope, 0)
584 \newdraw [\nstyle]
585 }
586
587 \tikztimingdef{ZEE}{%
588 \newdraw [\style,preaction={\bgstyle}]
589 -- +(\zslope, \height/2)
590 -- +($ (#1,0) + (\slope, \height/2) $) coordinate (timing@refb)
591 -- +(#1,-\height/2) coordinate (timing@refa)
592 -- +(\zslope, -\height/2)
593 -- +(0,0)
594 +(#1,0) coordinate (timing@ref)
595 ++(#1,-\height/2)
596 \code{\setcounter{tikztimingtranspos}{0}}%
597 \code{\setcounter{tikztimingtrans}{1}}%
598 }
599
600 \tikztimingdef{DEE}{%
601 \tikztiming@oldnodecenter@
602 \newdraw [\style,preaction={\bgstyle}]
603 -- +(\dslope/2, \height/2)
604 -- ($ (timing@ref) + (#1,0) + (\slope, \height/2) $) coordinate (timing@refb)
605 -- ($ (timing@ref) + (#1,-\height/2) $) coordinate (timing@refa)
606 -- ($ (timing@save) + (\dslope/2, -\height/2) $)
607 -- (timing@save)
608 coordinate (timing@ref) at ($ (timing@ref) + (#1,0) $)
609 (timing@refa)
610 \code{\setcounter{tikztimingtranspos}{0}}%
611 \code{\setcounter{tikztimingtrans}{1}}%
612 }
613
614 \tikztimingdef{DED}{%
615 \tikztiming@oldnodecenter@%
616 \newdraw [\style,preaction={\bgstyle}]
617 -- +(\dslope/2, \height/2)
618 -- ($ (timing@ref) + (#1,\height/2) $)
619 -- ($ (timing@ref) + (#1,0) + (\dslope/2,0) $)
620 -- ($ (timing@ref) + (#1,-\height/2) $)
621 -- ($ (timing@save) + (\dslope/2, -\height/2) $)
622 -- (timing@save)
623 ($ (timing@ref) + (#1,0) $)
624 coordinate (timing@ref)
625 ++(\dslope/2,0)
626 \newdraw [\nstyle]
627 }
628
629 \tikztimingdef{ZED}{%
630 \newdraw [\style,preaction={\bgstyle}]
631 -- +(\zslope, \height/2)
632 -- +(#1,\height/2)
633 -- +($ (#1,0) + (\dslope/2, 0) $)
634 -- +(#1,-\height/2)
635 -- +(\zslope, -\height/2)
636 -- +(0,0)
637 ++(#1,0) coordinate (timing@ref)
638 ++(\dslope/2, 0)
639 \newdraw [\nstyle]
640 }
641
642 \tikztimingdef{DEZ}{%
643 \tikztiming@oldnodecenter@
644 \newdraw [\style,preaction={\bgstyle}]
645 -- +(\dslope/2, \height/2)
646 -- ($ (timing@ref) + (#1,\height/2) $)
647 -- ($ (timing@ref) + (#1,0) + (\zslope, 0) $)
648 -- ($ (timing@ref) + (#1,-\height/2) $)
649 -- ($ (timing@save) + (\dslope/2, -\height/2) $)
650 -- (timing@save)
651 ($ (timing@ref) + (#1,0) $)
652 coordinate (timing@ref)
653 ++(\zslope, 0)
654 \newdraw [\nstyle]
655 }
656
657 \tikztimingdef{DEH}{%
658 \tikztiming@oldnodecenter@%
659 \newdraw [\style,preaction={\bgstyle}]
660 -- +(\dslope/2, \height/2)
661 -- ($ (timing@ref) + (#1,0) + (\slope, \height/2) $)
662 -- ($ (timing@ref) + (#1,-\height/2) $)
663 -- ($ (timing@save) + (\dslope/2, -\height/2) $)
664 -- (timing@save)
665 ($ (timing@ref) + (#1,0) $) coordinate (timing@ref)
666 ++(\slope, \height/2)
667 \newdraw [\nstyle]
668 }
669
670 \tikztimingdef{DEL}{%
671 \tikztiming@oldnodecenter@%
672 \newdraw [\style,preaction={\bgstyle}]
673 -- +(\dslope/2, \height/2)
674 -- ($ (timing@ref) + (#1,\height/2) $)
675 -- ($ (timing@ref) + (#1,0) + (\slope, -\height/2) $)
676 -- ($ (timing@save) + (\dslope/2, -\height/2) $)
677 -- (timing@save)
678 ($ (timing@ref) + (#1,0) $) coordinate (timing@ref)
679 ++(\slope, -\height/2)
680 \newdraw [\nstyle]
681 }
682
683 \tikztimingdef{@E}{%
684 \code{\setcounter{tikztimingtranspos}{0}}%
685 \code{\setcounter{tikztimingtrans}{1}}%
686 \tikztiminguse{@D}{#1}
687 }
688
689 \tikztimingdef{@DE}{%
690 \tikztiming@@chard{#1}%
691 }
692 \tikztimingdef{DDE}{
693 ++(0,-\height/2)
694 \tikztiming@oldnodecenter{%
695 (0,+\height/2)
696 }%
697 \tikztiming@@chard{#1}%
698 }
699
700 \tikztimingdef{@EH}{%
701 \tikztiming@setref{timing/start}{0,\height/2}
702 \newdraw [\bgstyle]
703 -- +(0,\height)
704 -- +($ (#1,\height) + (\slope,0) $)
705 -- +(#1,0)
706 -- +(0,0)
707 \newdraw [\style]
708 +(0,\height)
709 -- +($ (#1,\height) + (\slope,0) $)
710 -- +(#1,0)
711 -- +(0,0)
712 ++(#1,\height/2) coordinate (timing@ref)
713 ++(\slope,\height/2)
714 \newdraw [\nstyle]
715 }
716
717 \tikztimingdef{@ET}{%
718 \tikztiming@setref{timing/start}{0,\height/2}
719 \newdraw [\bgstyle]
720 -- +(0,\height)
721 {[\nstyle]
722 -- ($ (timing@ref) + (#1,\height/2) + (\slope,0) $)
723 }
724 -- ($ (timing@ref) + (#1,-\height/2) $)
725 -- (timing@save)
726 \newdraw [\style]
727 +(0,\height)
728 {[\nstyle]
729 -- ($ (timing@ref) + (#1,\height/2) + (\slope,0) $)
730 }
731 -- ($ (timing@ref) + (#1,-\height/2) $)
732 -- (timing@save)
733 {[\nstyle]
734 ($ (timing@ref) + (#1,0) $) coordinate (timing@ref)
735 ++(\slope,\height/2)
736 }
737 \newdraw [\nstyle]
738 \code{\setcounter{tikztimingtrans}{-\value{tikztimingtrans}}}
739 }
740
741 \tikztimingdef{ET}{%
742 {[\style]
743 -- ($ (timing@ref) + (#1,\height/2 * \value{tikztimingtrans}) $)
744 }
745 }
746
747 \tikztimingdef{@EL}{%
748 \tikztiming@setref{timing/start}{0,\height/2}
749 \newdraw [\bgstyle]
750 -- +(0,\height)
751 -- +(#1,\height)
752 -- +($ (#1,0) + (\slope,0) $)
753 -- +(0,0)
754 \newdraw [\style]
755 +(0,\height)
756 -- +(#1,\height)
757 -- +($ (#1,0) + (\slope,0) $)
758 -- +(0,0)
759 ++(#1,\height/2) coordinate (timing@ref)
760 ++(\slope,-\height/2)
761 \newdraw [\nstyle]
762 }
763
764 \tikztimingdef{@ED}{%
765 \tikztiming@setref{timing/start}{0,\height/2}
766 \newdraw [\bgstyle]
767 -- +(0,\height)
768 -- +(#1,\height)
769 -- +($ (#1,\height/2) + (\dslope/2,0) $)
770 -- +(#1,0)
771 -- +(0,0)
772 \newdraw [\style]
773 +(0,\height)
774 -- +(#1,\height)
775 -- +($ (#1,\height/2) + (\dslope/2,0) $)
776 -- +(#1,0)
777 -- +(0,0)
778 ++(#1,\height/2) coordinate (timing@ref)
779 ++(\dslope/2,0)
780 }
781
782 \tikztimingdef{@EZ}{%
783 \tikztiming@setref{timing/start}{0,\height/2}
784 \newdraw [\bgstyle]
785 -- +(0,\height)
786 -- +(#1,\height)
787 -- +($ (#1,\height/2) + (\zslope,0) $)
788 -- +(#1,0)
789 -- +(0,0)
790 \newdraw [\style]
791 +(0,\height)
792 -- +(#1,\height)
793 -- +($ (#1,\height/2) + (\zslope,0) $)
794 -- +(#1,0)
795 -- +(0,0)
796 ++(#1,\height/2) coordinate (timing@ref)
797 ++(\zslope,0)
798 }
799
800 \tikztimingdef{@EE}{%
801 \tikztiming@setref{timing/start}{0,\height/2}
802 \newdraw [\bgstyle]
803 -- +(0,\height)
804 -- +($ (#1,\height) + (\slope,0) $)
805 -- +(#1,0)
806 -- +(0,0)
807 \newdraw [\style]
808 +(0,\height)
809 -- +($ (#1,\height) + (\slope,0) $) coordinate (timing@refb)
810 -- +(#1,0) coordinate (timing@refa)
811 -- +(0,0)
812 ++(#1,0)
813 \tikztiming@setref{timing@ref}{0,\height/2}
814 \code{\setcounter{tikztimingtranspos}{0}}%
815 \code{\setcounter{tikztimingtrans}{1}}%
816 }
817
818 \def\tikztiming@nocombine@E{}%%
819 \endinput
820 %%
821 %% End of file `tikz-timing-either.sty'.