| 1 |
% Copyright 2018 by Till Tantau and Mark Wibrow |
| 2 |
% |
| 3 |
% This file may be distributed and/or modified |
| 4 |
% |
| 5 |
% 1. under the LaTeX Project Public License and/or |
| 6 |
% 2. under the GNU Public License. |
| 7 |
% |
| 8 |
% See the file doc/generic/pgf/licenses/LICENSE for more details. |
| 9 |
|
| 10 |
\usetikzlibrary{circuits}% |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
% |
| 15 |
% Provides a shortcut to the "logic gates inputs" key. |
| 16 |
% |
| 17 |
|
| 18 |
\tikzset{ |
| 19 |
circuit logic/.style={ |
| 20 |
circuit, |
| 21 |
inputs/.style={logic gate inputs={##1}}, |
| 22 |
logic gate inverted radius=.25\tikzcircuitssizeunit, |
| 23 |
every circuit logic/.try, |
| 24 |
} |
| 25 |
}% |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
% |
| 30 |
% The default symbols (you need to load a sublib to install the actual rendering). |
| 31 |
% |
| 32 |
|
| 33 |
\tikzset{ |
| 34 |
circuit declare symbol = and gate, |
| 35 |
circuit declare symbol = nand gate, |
| 36 |
circuit declare symbol = or gate, |
| 37 |
circuit declare symbol = nor gate, |
| 38 |
circuit declare symbol = xor gate, |
| 39 |
circuit declare symbol = xnor gate, |
| 40 |
circuit declare symbol = not gate, |
| 41 |
circuit declare symbol = buffer gate |
| 42 |
}% |
| 43 |
|
| 44 |
|
| 45 |
\endinput |