Skip to content

Commit

Permalink
Fix missing preamble in control/library.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
hansonchar committed Jun 20, 2024
1 parent 54559ad commit 3a0c058
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions tex/generic/pgf/graphdrawing/lua/pgf/gd/control/library.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,14 @@ declare {
This behavior can be changed using this option. When the key is
invoked, nodes are placed \emph{behind} the edges.
"]],
examples = [["
\tikz \graph [simple necklace layout, nodes={draw,fill=white},
nodes behind edges]
{ subgraph K_n [n=7], 1 [regardless at={(0,-1)}] };
"]]
examples = {
options = [[ preamble=\usetikzlibrary{graphs.standard,graphdrawing} \usegdlibrary{circular,trees} ]],
[["
\tikz \graph [simple necklace layout, nodes={draw,fill=white},
nodes behind edges]
{ subgraph K_n [n=7], 1 [regardless at={(0,-1)}] };
"]]
}
}


Expand All @@ -72,11 +75,14 @@ declare {
summary = [["
This is the default placement of edges: Behind the nodes.
"]],
examples = [["
\tikz \graph [simple necklace layout, nodes={draw,fill=white},
edges behind nodes]
{ subgraph K_n [n=7], 1 [regardless at={(0,-1)}] };
"]]
examples = {
options = [[ preamble=\usetikzlibrary{graphs.standard,graphdrawing} \usegdlibrary{circular,trees} ]],
[["
\tikz \graph [simple necklace layout, nodes={draw,fill=white},
edges behind nodes]
{ subgraph K_n [n=7], 1 [regardless at={(0,-1)}] };
"]]
}
}

---
Expand Down Expand Up @@ -118,7 +124,7 @@ declare {
will be as short as possible.
"]],
examples = {
options = [[preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{layered}]],
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{layered} ]],
[["
\tikz \graph [layered layout] {
a -- {b,c,d} -- e -- a;
Expand All @@ -144,7 +150,7 @@ declare {
into account when drawing a graph.
"]],
examples = {
options = [[preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{phylogenetics}]],
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{phylogenetics} ]],
[["
\tikz \graph [phylogenetic tree layout] {
a --[length=2] b --[length=1] {c,d};
Expand Down

0 comments on commit 3a0c058

Please sign in to comment.