Skip to content

Commit

Permalink
With the previous commit, we can now further
Browse files Browse the repository at this point in the history
simplify the usage of having multiple examples
with the same options.

Signed-off-by: Hanson Char <[email protected]>
  • Loading branch information
hansonchar committed Jun 10, 2024
1 parent cf6c892 commit 045d59a
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions tex/generic/pgf/graphdrawing/lua/pgf/gd/force/ControlElectric.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
]]
}
]]
}
}

Expand Down

0 comments on commit 045d59a

Please sign in to comment.