45 lines
823 B
TeX
45 lines
823 B
TeX
|
\usetikzlibrary{arrows.meta}
|
||
|
\usetikzlibrary{shapes.geometric}
|
||
|
\usetikzlibrary{patterns}
|
||
|
|
||
|
% We put nodes in a separate layer, so we can
|
||
|
% slightly overlap with paths for a perfect fit
|
||
|
\pgfdeclarelayer{nodes}
|
||
|
\pgfdeclarelayer{path}
|
||
|
\pgfsetlayers{main,nodes}
|
||
|
|
||
|
% Layer settings
|
||
|
\tikzset{
|
||
|
% Layer hack, lets us write
|
||
|
% later = * in scopes.
|
||
|
layer/.style = {
|
||
|
execute at begin scope={\pgfonlayer{#1}},
|
||
|
execute at end scope={\endpgfonlayer}
|
||
|
},
|
||
|
%
|
||
|
% Arrowhead tweaks
|
||
|
>={Latex[ width=2mm, length=2mm ]},
|
||
|
label/.style = {
|
||
|
circle,
|
||
|
% For automatic red background in solutions
|
||
|
fill = \ORMCbgcolor,
|
||
|
draw = none
|
||
|
},
|
||
|
%
|
||
|
% Nodes
|
||
|
main/.style = {
|
||
|
draw,
|
||
|
circle,
|
||
|
fill = white
|
||
|
},
|
||
|
accept/.style = {
|
||
|
draw,
|
||
|
circle,
|
||
|
fill = white,
|
||
|
double,
|
||
|
},
|
||
|
hatch/.style = {
|
||
|
pattern=north west lines,
|
||
|
pattern color=gray
|
||
|
}
|
||
|
}
|