summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-07-21 20:18:00 +0000
committerKarl Berry <karl@freefriends.org>2018-07-21 20:18:00 +0000
commit693e9b84c86263c17dec3df20ba5a70cf64d8a97 (patch)
treeb9bfa6525785d6141fb2f3cd171a1102d6da0267 /Master/texmf-dist/tex/latex
parent58c3ccb13744cf5db852f434570b36b1d3f25cff (diff)
tikz-nef (21jul18)
git-svn-id: svn://tug.org/texlive/trunk@48240 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/tikz-nef/tikzlibrarynef.code.tex42
1 files changed, 42 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/tikz-nef/tikzlibrarynef.code.tex b/Master/texmf-dist/tex/latex/tikz-nef/tikzlibrarynef.code.tex
new file mode 100644
index 00000000000..7b86c940ee8
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/tikz-nef/tikzlibrarynef.code.tex
@@ -0,0 +1,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