summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tikz-nef/tikzlibrarynef.code.tex
blob: 7b86c940ee80516be5c86e548d7512b1a52fbad6 (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
\def\fileversion{v0.1}
\def\filedate{2017/03/29}

\usetikzlibrary{arrows.meta}
\usetikzlibrary{shadows}
\usetikzlibrary{shapes.geometric}

\pgfdeclareshape{rectification}{
    \inheritsavedanchors[from=circle]
    \inheritanchorborder[from=circle]
    \inheritanchor[from=circle]{center}
    \inheritanchor[from=circle]{north}
    \inheritanchor[from=circle]{south}
    \inheritanchor[from=circle]{west}
    \inheritanchor[from=circle]{east}
    \backgroundpath{
        \pgfsetarrows{-}
        \pgfpathcircle{\pgfpoint{0}{0}}{\radius} \pgfusepath{stroke,clip}
        \pgfpathmoveto{\pgfpoint{-\radius}{-0.25 * \radius}}
        \pgfpathlineto{\pgfpoint{0}{-0.25 * \radius}}
        \pgfpathlineto{\pgfpoint{\radius}{\radius - 0.25 * \radius}}
    }
}

\tikzset{
    nef/.style={
        minimum width=1.5em, minimum height=1.5em,
        every path/.style={>=Latex},
        graphs/every graph/.style={grow right sep=15mm, branch down sep=15mm, nodes={anchor=center}, edge quotes={above, node font=\footnotesize}},
    },
    ext/.style={draw=none},
    net/.style={draw, rounded corners=0.5em},
    ens/.style={draw, circle, inner sep=0.25ex},
    pnode/.style={draw, circle, fill=black, minimum width=0.75em, minimum height=0.75em},
    rect/.style={draw, shape=rectification, inner sep=0.25ex},
    ea/.style={draw, fill=white, circle, inner sep=0.05em, double copy shadow={opacity=0.6, shadow yshift=-0.3ex, shadow xshift=0.3ex}},
    recurrent/.style={loop above, min distance=2em, in=120, out=60},
    inhibit/.style={-Circle},
    modulatory/.style={-{Arc Barb[reversed]}}
}

\endinput