From 045d59acad8a1b7f580dde2e97137e83100c5193 Mon Sep 17 00:00:00 2001 From: Hanson Char Date: Sun, 9 Jun 2024 21:42:36 -0700 Subject: [PATCH] With the previous commit, we can now further simplify the usage of having multiple examples with the same options. Signed-off-by: Hanson Char --- .../lua/pgf/gd/force/ControlElectric.lua | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/tex/generic/pgf/graphdrawing/lua/pgf/gd/force/ControlElectric.lua b/tex/generic/pgf/graphdrawing/lua/pgf/gd/force/ControlElectric.lua index d09e5e4aa..3d533d894 100644 --- a/tex/generic/pgf/graphdrawing/lua/pgf/gd/force/ControlElectric.lua +++ b/tex/generic/pgf/graphdrawing/lua/pgf/gd/force/ControlElectric.lua @@ -41,22 +41,18 @@ declare { ]], examples = { options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force}} ]], - { - code = [[ + [[ \tikz \graph [spring electrical layout, horizontal=0 to 1] { 0 [electric charge=1] -- subgraph C_n [n=10] }; - ]] - },{ - code = [[ + ]], + [[ \tikz \graph [spring electrical layout, horizontal=0 to 1] { 0 [electric charge=5] -- subgraph C_n [n=10] }; - ]] - },{ - code = [[ + ]], + [[ \tikz \graph [spring electrical layout, horizontal=0 to 1] { [clique] 1 [electric charge=5], 2, 3, 4 }; - ]] - } + ]] } }