summaryrefslogtreecommitdiff
path: root/graphics/pgf/base/tex/tikzlibrarycircuits.logic.code.tex
blob: 390d022a8a3b2166f68d8b3f4a3927013731753c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
% Copyright 2018 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