Skip to content

Commit 045d59a

Browse files
committed
With the previous commit, we can now further
simplify the usage of having multiple examples with the same options. Signed-off-by: Hanson Char <hanson.char@gmail.com>
1 parent cf6c892 commit 045d59a

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

tex/generic/pgf/graphdrawing/lua/pgf/gd/force/ControlElectric.lua

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,18 @@ declare {
4141
]],
4242
examples = {
4343
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force}} ]],
44-
{
45-
code = [[
44+
[[
4645
\tikz \graph [spring electrical layout, horizontal=0 to 1]
4746
{ 0 [electric charge=1] -- subgraph C_n [n=10] };
48-
]]
49-
},{
50-
code = [[
47+
]],
48+
[[
5149
\tikz \graph [spring electrical layout, horizontal=0 to 1]
5250
{ 0 [electric charge=5] -- subgraph C_n [n=10] };
53-
]]
54-
},{
55-
code = [[
51+
]],
52+
[[
5653
\tikz \graph [spring electrical layout, horizontal=0 to 1]
5754
{ [clique] 1 [electric charge=5], 2, 3, 4 };
58-
]]
59-
}
55+
]]
6056
}
6157
}
6258

0 commit comments

Comments
 (0)