diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/pgf/incoming/KarlheinzOchs/macros.sty')
-rw-r--r-- | Master/texmf-dist/source/latex/pgf/incoming/KarlheinzOchs/macros.sty | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/pgf/incoming/KarlheinzOchs/macros.sty b/Master/texmf-dist/source/latex/pgf/incoming/KarlheinzOchs/macros.sty new file mode 100644 index 00000000000..024b248cc76 --- /dev/null +++ b/Master/texmf-dist/source/latex/pgf/incoming/KarlheinzOchs/macros.sty @@ -0,0 +1,46 @@ +% Some macros for signal flow diagrams. +% +% Author: Dr. Karlheinz Ochs, Ruhr-University of Bochum, Germany +% Version: 0.1 +% Date: 2007/01/05 + +\NeedsTeXFormat{LaTeX2e} +\RequirePackage{tikz} +\RequirePackage{signalflowdiagram} +\ProvidesPackage{macros} + [2007/01/05 v0.1 Some user-defined macros for signal flow diagrams] + +% +% Creates the signal flow diagram of a minimum shift keying coder. +% +% #1 = global label +% #2 = parameter for placement +\newcommand{\mskCoder}[3]{% + % building blocks + \node[modulator] (#1-in) [#2] {}; + \node[multiplier] (mul) [below from=#1-in] {$\mathrm{j}$}; + \node[delay] (del) [right from=#1-in] {$T$}; + \node[node] (#1-out) [right from=del] {}; + % signal paths + \path[c>] (#1-in) -- (del); + \path[c>] (del) -- (#1-out); + \path[c>] (#1-out) |- (mul); + \path[c>] (mul) -- (#1-in); +}% + + +% Creates the signal flow diagram of a pulse shaper. +% +% #1 = global label +% #2 = parameter for placement +\newcommand{\pulseShaper}[4]{% + % building blocks + \node[modulator] (#1-in) [#2] {}; + \node[coordinate] (pam) + [above from = #1-in, + label=above:$\sum\limits_{\nu=-\infty}^{\infty} \delta(t-t_\nu)$] {}; + \node[filter] (#1-out) [right from = #1-in] {$q(t)$}; + % signal paths + \path[r>] (pam) -- (#1-in); + \path[c>] (#1-in) -- (#1-out); +}% |