From b7257321118e898625742b2fd90a278cf1ab4c26 Mon Sep 17 00:00:00 2001 From: Hanson Char Date: Sat, 22 Jun 2024 15:00:36 -0700 Subject: [PATCH] Tidy up formatting of Components.lua and control/library.lua --- .../lua/pgf/gd/control/Components.lua | 28 +++++++++---------- .../lua/pgf/gd/control/library.lua | 8 +++--- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/tex/generic/pgf/graphdrawing/lua/pgf/gd/control/Components.lua b/tex/generic/pgf/graphdrawing/lua/pgf/gd/control/Components.lua index b0c5bf2da..33e5f5bbb 100644 --- a/tex/generic/pgf/graphdrawing/lua/pgf/gd/control/Components.lua +++ b/tex/generic/pgf/graphdrawing/lua/pgf/gd/control/Components.lua @@ -108,20 +108,20 @@ declare { rather it works as if this option were always set. "]], examples = { - options = [[preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{circular}]], - [[" - \tikz \graph [simple necklace layout] - { - a -- b -- c -- d -- a, - 1 -- 2 -- 3 -- 1 - }; - "]],[[" - \tikz \graph [simple necklace layout, componentwise] - { - a -- b -- c -- d -- a, - 1 -- 2 -- 3 -- 1 - }; - "]] + options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{circular} ]], + [[ + \tikz \graph [simple necklace layout] + { + a -- b -- c -- d -- a, + 1 -- 2 -- 3 -- 1 + }; + ]],[[ + \tikz \graph [simple necklace layout, componentwise] + { + a -- b -- c -- d -- a, + 1 -- 2 -- 3 -- 1 + }; + ]] } } 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 9805c0847..56e29202d 100644 --- a/tex/generic/pgf/graphdrawing/lua/pgf/gd/control/library.lua +++ b/tex/generic/pgf/graphdrawing/lua/pgf/gd/control/library.lua @@ -55,11 +55,11 @@ declare { "]], 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)}] }; - "]] + ]] } } @@ -77,11 +77,11 @@ declare { "]], 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)}] }; - "]] + ]] } }