| 1 |
%% |
| 2 |
%% This is file `tikz-timing-columntype.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% tikz-timing.dtx (with options: `tikz-timing-columntype.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-columntype.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-columntype}[% |
| 42 |
2017/12/20 |
| 43 |
v0.7f |
| 44 |
tikz-timing library for timing cell types] |
| 45 |
\RequirePackage{array} |
| 46 |
|
| 47 |
\tikzset{timing/columntype/.code 2 args = |
| 48 |
\newcolumntype{#1}{>{\celltiming}#2<{\endcelltiming}}% |
| 49 |
}% |
| 50 |
\RequirePackage{pgfopts} |
| 51 |
\tikzset{timing/columntype/.cd, |
| 52 |
type/.style 2 args={/tikz/timing/columntype={#1}{#2}},% |
| 53 |
notype/.code={}, |
| 54 |
notype/.value forbidden={}, |
| 55 |
} |
| 56 |
|
| 57 |
\ProcessPgfOptions{/tikz/timing/columntype} |
| 58 |
\expandafter\ifx\csname opt@\@currname.\@currext\endcsname\empty |
| 59 |
\tikzset{timing/columntype={T}{l}}% |
| 60 |
\fi |
| 61 |
\def\celltiming#1\ignorespaces{% |
| 62 |
#1% |
| 63 |
\begin{tikzpicture}[timing/picture,baseline={(0,0)}] |
| 64 |
\def\tikztiming@endhook{\end@celltiming} |
| 65 |
\tikztiming@init |
| 66 |
\let\tikztiming@settings\empty |
| 67 |
\@ifnextchar{[}% |
| 68 |
{\tikztiming@celltiming}% |
| 69 |
{\tikztiming@celltiming[]}% |
| 70 |
} |
| 71 |
\let\endcelltiming\relax |
| 72 |
\def\tikztiming@celltiming[#1]{% |
| 73 |
\ifx\relax#1\relax\else |
| 74 |
\tikztiming@testoptarg#1\relax\relax |
| 75 |
\fi |
| 76 |
\ifx\tikztiming@lastchar\empty |
| 77 |
\def\tikztiming@lastchar{@}% |
| 78 |
\fi |
| 79 |
\expandafter\scope\expandafter[\tikztiming@settings]% |
| 80 |
\begingroup |
| 81 |
\let\unskip\relax |
| 82 |
\let\\\relax |
| 83 |
\tikztiming@parser |
| 84 |
} |
| 85 |
\def\end@celltiming{% |
| 86 |
\tikzset{timing/before}% |
| 87 |
\tikztiming@str; |
| 88 |
\expandafter\node |
| 89 |
\expandafter[\tikztiming@settings,shape=tikztiming@shape,anchor=origin] at (0,0) {}; |
| 90 |
\tikzset{timing/after}% |
| 91 |
\endscope |
| 92 |
\end{tikzpicture}% |
| 93 |
} |
| 94 |
\endinput |
| 95 |
%% |
| 96 |
%% End of file `tikz-timing-columntype.sty'. |