summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tikz-timing/tikz-timing-either.sty
blob: 11d3f6c8ede22d6273da7d5c2e79f195cae407eb (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
%%
%% This is file `tikz-timing-either.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% tikz-timing.dtx  (with options: `lib-either')
%% 
%% Copyright (C) 2009 by Martin Scharrer <martin@scharrer-online.de>
%% 
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% 
%%    http://www.latex-project.org/lppl.txt
%% 
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2008/05/04 or later.
%% 
%% This work has the LPPL maintenance status `maintained'.
%% 
%% The Current Maintainer of this work is Martin Scharrer.
%% 
%% This work consists of the files tikz-timing.dtx, tikz-timing.ins
%% and the derived file tikz-timing.sty.
%% 
\RequirePackage{svn-prov}[2009/05/03]
\ProvidesPackageSVN[tikz-timing-either]
  {$Id: tikz-timing.dtx 1158 2009-07-28 09:14:00Z martin $}
  [v0.6a
   TikZ-Timing Library for uncertain transitions]
\DefineFileInfoSVN


\tikztimingecopy{E}{D}
\tikztimingchar{E}{
  ++(0,0)
  \code{\setcounter{tikztimingtranspos}{0}}%
  \code{\setcounter{tikztimingtrans}{1}}%
}{
  \code{\setcounter{tikztimingtranspos}{0}}%
  \code{\setcounter{tikztimingtrans}{1}}%
  \tikztiminguse{D}{#1}%
}
\tikztimingdef{LE}{%
  -- ++(#1,0)%
  \code{\setcounter{tikztimingtranspos}{0}}%
  \code{\setcounter{tikztimingtrans}{1}}%
     ++($ -1*(#1,0) $)%
  -- ++(\slope,\height)%
  -- ++($ (#1,0) - (\slope,0) $)%
     ++(0,-\height)%
}%
\tikztimingdef{HE}{%
  -- ++(#1,0)%
  \code{\setcounter{tikztimingtranspos}{1}}%
  \code{\setcounter{tikztimingtrans}{-1}}%
     ++($ -1*(#1,0) $)%
  -- ++(\slope,-\height)%
  -- ++($ (#1,0) - (\slope,0) $)%
}%
\tikztimingdef{EE}{%
     ++(0,      \height * \value{tikztimingtranspos})%
     ++(#1,0)%
  -- ++($ -1*(#1,0) $)%
  -- ++(\slope, \height * \value{tikztimingtrans})%
  -- ++(-\slope,0)%
  -- ++(#1,0)%
     ++(0, -\height + \height * \value{tikztimingtranspos})%
}%
\tikztimingdef{EH}{%
     ++(0,+\height)%
  -- ++(\slope,0)%
     ++(-\slope,-\height)%
  -- ++(\slope/2.,+\height/2.)%
  \newdraw [\style]%
  -- ++(\slope/2.,+\height/2.)%
  -- ++($ (#1,0) - (\slope,0) $)%
}%
\tikztimingdef{EL}{%
  -- ++(\slope,0)%
     ++(-\slope,\height)%
  -- ++(\slope/2.,-\height/2.)%
  \newdraw [\style]%
  -- ++(\slope/2.,-\height/2.)%
  -- ++($ (#1,0) - (\slope,0) $)%
}%
\tikztimingdef{ZE}{%
  \code{\setcounter{tikztimingtranspos}{1}}%
  \code{\setcounter{tikztimingtrans}{-1}}%
  \tikztiminguse{ZD}{#1}%
}
\tikztimingdef{XE}{%
  \code{\setcounter{tikztimingtranspos}{1}}%
  \code{\setcounter{tikztimingtrans}{-1}}%
  \tikztiminguse{XD}{#1}%
}
\tikztimingdef{ME}{%
  \code{\setcounter{tikztimingtranspos}{1}}%
  \code{\setcounter{tikztimingtrans}{-1}}%
  \tikztiminguse{MD}{#1}%
}
\def\tikztiming@nocombine@E{}%%
\def\tikztiming@nocombine@e{}%%
\endinput
%%
%% End of file `tikz-timing-either.sty'.