Debian Codegraph @

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

raw
1 %%
2 %% This is file `tikz-timing-ifsym.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% tikz-timing.dtx (with options: `tikz-timing-ifsym.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-ifsym.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-ifsym}[%
42 2017/12/20
43 v0.7f
44 tikz-timing library for ifsym compatible macros]
45 \tikzset{%
46 timing/ifsym/macro/.style={/tikz/timing/ifsym,/utils/exec={\pgfmathparse{.6*\f@size}\let\ysize\pgfmathresult},/tikz/y=\ysize},
47 timing/ifsym/.style={%
48 /tikz,timing/slope=0,x=\f@size,y=\f@size,line width=0.1ex,
49 timing/metachar={|}{G},
50 timing/x/.style={},
51 timing/metachar={M}[1]{#1X},
52 timing/metachar={m}[1]{#1x},
53 /utils/exec={%
54 \def\tikztimingsetdslope##1{%
55 \pgfmathparse{max(0.0,##1)}%
56 \let\tikztiming@dslope\pgfmathresult
57 \edef\timingdslope{\tikztiming@dslope*\noexpand\timingwidth}%
58 }
59 \tikztiming@defcode{<}{%
60 \@ifnextchar{<}%
61 {\tikztiming@ifsym@longslope{X}{D}}%
62 {\tikztiming@parser [timing/dslope=1] 0Xd;}%
63 }%
64 \tikztiming@defcode{>}{%
65 \@ifnextchar{>}%
66 {\tikztiming@ifsym@longslope{D}{X}}%
67 {\tikztiming@parser [timing/dslope=1] 0Dx;}%
68 }%
69 \def\tikztiming@ifsym@longslope##1##2##3{
70 \tikztiming@parser [timing/dslope=2.] 0##1 ##2;%
71 }%
72 }},
73 }
74 \tikzset{%
75 timing/ifsym/.cd,
76 provide/.code={\let\tikztiming@ifsym@def\providecommand},
77 renew/.code={\let\tikztiming@ifsym@def\renewcommand},
78 new/.code={\let\tikztiming@ifsym@def\newcommand},
79 off/.code={\let\tikztiming@ifsym@def\@gobbletwo},
80 }
81 \tikzset{timing/ifsym/provide}%
82 \RequirePackage{pgfopts}
83 \ProcessPgfOptions{/tikz/timing/ifsym}
84 \tikztiming@ifsym@def{\RaisingEdge}{\hbox{\texttiming[timing/ifsym/macro]{.4L .4H}}}
85 \tikztiming@ifsym@def{\FallingEdge}{\hbox{\texttiming[timing/ifsym/macro]{.4H .4L}}}
86 \tikztiming@ifsym@def{\ShortPulseHigh}{\hbox{\texttiming[timing/ifsym/macro]{.4L .2H .4L}}}
87 \tikztiming@ifsym@def{\ShortPulseLow}{\hbox{\texttiming[timing/ifsym/macro]{.4H .2L .4H}}}
88 \tikztiming@ifsym@def{\PulseHigh}{\hbox{\texttiming[timing/ifsym/macro]{.4L .6H .4L}}}
89 \tikztiming@ifsym@def{\PulseLow}{\hbox{\texttiming[timing/ifsym/macro]{.4H .6L .4H}}}
90 \tikztiming@ifsym@def{\LongPulseHigh}{\hbox{\texttiming[timing/ifsym/macro]{.4L H .4L}}}
91 \tikztiming@ifsym@def{\LongPulseLow}{\hbox{\texttiming[timing/ifsym/macro]{.4H L .4H}}}
92 \tikztiming@ifsym@def{\textifsym}{\texttiming[timing/ifsym]}
93 \let\tikztiming@ifsym@def\@undefined
94 \endinput
95 %%
96 %% End of file `tikz-timing-ifsym.sty'.