You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
946 B
45 lines
946 B
% Copyright 2008 by Till Tantau and Mark Wibrow
|
|
%
|
|
% This file may be distributed and/or modified
|
|
%
|
|
% 1. under the LaTeX Project Public License and/or
|
|
% 2. under the GNU Public License.
|
|
%
|
|
% See the file doc/generic/pgf/licenses/LICENSE for more details.
|
|
|
|
\usetikzlibrary{circuits}%
|
|
|
|
|
|
|
|
%
|
|
% Provides a shortcut to the "logic gates inputs" key.
|
|
%
|
|
|
|
\tikzset{
|
|
circuit logic/.style={
|
|
circuit,
|
|
inputs/.style={logic gate inputs={##1}},
|
|
logic gate inverted radius=.25\tikzcircuitssizeunit,
|
|
every circuit logic/.try,
|
|
}
|
|
}%
|
|
|
|
|
|
|
|
%
|
|
% The default symbols (you need to load a sublib to install the actual rendering).
|
|
%
|
|
|
|
\tikzset{
|
|
circuit declare symbol = and gate,
|
|
circuit declare symbol = nand gate,
|
|
circuit declare symbol = or gate,
|
|
circuit declare symbol = nor gate,
|
|
circuit declare symbol = xor gate,
|
|
circuit declare symbol = xnor gate,
|
|
circuit declare symbol = not gate,
|
|
circuit declare symbol = buffer gate
|
|
}%
|
|
|
|
|
|
\endinput
|
|
|