From 3a0c0585229f5c9233c7ef274aa035e96b46c25b Mon Sep 17 00:00:00 2001 From: Hanson Char Date: Thu, 20 Jun 2024 14:12:44 -0700 Subject: [PATCH] Fix missing preamble in control/library.lua --- .../lua/pgf/gd/control/library.lua | 30 +++++++++++-------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/tex/generic/pgf/graphdrawing/lua/pgf/gd/control/library.lua b/tex/generic/pgf/graphdrawing/lua/pgf/gd/control/library.lua index c1b63c29b..9805c0847 100644 --- a/tex/generic/pgf/graphdrawing/lua/pgf/gd/control/library.lua +++ b/tex/generic/pgf/graphdrawing/lua/pgf/gd/control/library.lua @@ -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)}] }; + "]] + } } @@ -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)}] }; + "]] + } } --- @@ -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; @@ -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};