Skip to content

Commit

Permalink
Add missing premable to Sugiyama.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
hansonchar committed Jun 24, 2024
1 parent 823211d commit b7077fb
Showing 1 changed file with 66 additions and 61 deletions.
127 changes: 66 additions & 61 deletions tex/generic/pgf/graphdrawing/lua/pgf/gd/layered/Sugiyama.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,27 +73,27 @@ declare {
"]],
examples = {
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{layered}} ]],
[["
\tikz \graph [layered layout, sibling distance=7mm]
{
a -> {
b,
c -> { d, e, f }
} ->
h ->
a
};
"]],[["
\tikz [rounded corners] \graph [layered layout, sibling distance=7mm]
{
a -> {
b,
c -> { d, e, f }
} ->
h ->
a
};
"]]
[[
\tikz \graph [layered layout, sibling distance=7mm]
{
a -> {
b,
c -> { d, e, f }
} ->
h ->
a
};
]],[[
\tikz [rounded corners] \graph [layered layout, sibling distance=7mm]
{
a -> {
b,
c -> { d, e, f }
} ->
h ->
a
};
]]
}
}

Expand All @@ -110,11 +110,14 @@ declare {
causes an edge to become shorter, a larger |minimum layers| value
causes an edge to be longer.
"]],
examples = [["
\tikz \graph [layered layout] {
a -- {b [> minimum layers=3], c, d} -- e -- a;
};
"]]
examples = {
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{layered}} ]],
[[
\tikz \graph [layered layout] {
a -- {b [> minimum layers=3], c, d} -- e -- a;
};
]]
}
}


Expand All @@ -129,42 +132,44 @@ declare {
a on the same layer of a layered layout (this option is also known
as |same rank|). You use it like this:
"]],
examples = {[["
\tikz \graph [layered layout] {
a -- b -- c -- d -- e;
{ [same layer] a, b };
{ [same layer] d, e };
};
"]],[['
\tikz [rounded corners] \graph [layered layout] {
1972 -> 1976 -> 1978 -> 1980 -> 1982 -> 1984 -> 1986 -> 1988 -> 1990 -> future;
{ [same layer] 1972, Thompson };
{ [same layer] 1976, Mashey, Bourne },
{ [same layer] 1978, Formshell, csh },
{ [same layer] 1980, esh, vsh },
{ [same layer] 1982, ksh, "System-V" },
{ [same layer] 1984, v9sh, tcsh },
{ [same layer] 1986, "ksh-i" },
{ [same layer] 1988, KornShell ,Perl, rc },
{ [same layer] 1990, tcl, Bash },
{ [same layer] "future", POSIX, "ksh-POSIX" },
Thompson -> { Mashey, Bourne, csh -> tcsh},
Bourne -> { ksh, esh, vsh, "System-V", v9sh -> rc, Bash},
{ "ksh-i", KornShell } -> Bash,
{ esh, vsh, Formshell, csh } -> ksh,
{ KornShell, "System-V" } -> POSIX,
ksh -> "ksh-i" -> KornShell -> "ksh-POSIX",
Bourne -> Formshell,
{ [edge={draw=none}]
Bash -> tcl,
KornShell -> Perl
}
examples = {
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{layered}} ]],
[[
\tikz \graph [layered layout] {
a -- b -- c -- d -- e;
{ [same layer] a, b };
{ [same layer] d, e };
};
']]
]],[[
\tikz [rounded corners] \graph [layered layout] {
1972 -> 1976 -> 1978 -> 1980 -> 1982 -> 1984 -> 1986 -> 1988 -> 1990 -> future;
{ [same layer] 1972, Thompson };
{ [same layer] 1976, Mashey, Bourne },
{ [same layer] 1978, Formshell, csh },
{ [same layer] 1980, esh, vsh },
{ [same layer] 1982, ksh, "System-V" },
{ [same layer] 1984, v9sh, tcsh },
{ [same layer] 1986, "ksh-i" },
{ [same layer] 1988, KornShell ,Perl, rc },
{ [same layer] 1990, tcl, Bash },
{ [same layer] "future", POSIX, "ksh-POSIX" },
Thompson -> { Mashey, Bourne, csh -> tcsh},
Bourne -> { ksh, esh, vsh, "System-V", v9sh -> rc, Bash},
{ "ksh-i", KornShell } -> Bash,
{ esh, vsh, Formshell, csh } -> ksh,
{ KornShell, "System-V" } -> POSIX,
ksh -> "ksh-i" -> KornShell -> "ksh-POSIX",
Bourne -> Formshell,
{ [edge={draw=none}]
Bash -> tcl,
KornShell -> Perl
}
};
]]
}
}

Expand Down

0 comments on commit b7077fb

Please sign in to comment.