Skip to content

Commit

Permalink
Fix missing {} in specifying preamble in options
Browse files Browse the repository at this point in the history
  • Loading branch information
hansonchar committed Jun 23, 2024
1 parent 828992e commit 203ed48
Show file tree
Hide file tree
Showing 25 changed files with 59 additions and 57 deletions.
2 changes: 1 addition & 1 deletion doc/generic/pgf/lib/examplewithoptionfinder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ end
local test_case1 =
[=[
example {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{layered} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{layered}} ]],
code = [[
\begin{tikzpicture}
\draw [help lines] (0,0) grid (2,2);
Expand Down
10 changes: 5 additions & 5 deletions tex/generic/pgf/graphdrawing/lua/pgf/gd/circular/doc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ satisfy the second condition.
]]

example {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{circular} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{circular}} ]],
code = [[
\tikz \graph [simple necklace layout,
node sep=0pt, node distance=0pt,
Expand All @@ -106,7 +106,7 @@ example {
}

example {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{circular} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{circular}} ]],
code = [[
\begin{tikzpicture}[radius=1.25cm]
\graph [simple necklace layout,
Expand All @@ -121,7 +121,7 @@ example {
}

example {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{circular} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{circular}} ]],
code = [[
\tikz \graph [simple necklace layout,
node sep=0pt, node distance=1cm,
Expand All @@ -132,7 +132,7 @@ example {
}

example {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{circular} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{circular}} ]],
code = [[
\tikz \graph [simple necklace layout,
node sep=2pt, node distance=0pt,
Expand All @@ -143,7 +143,7 @@ example {
}

example {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{circular} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{circular}} ]],
code = [[
\tikz \graph [simple necklace layout,
node sep=0pt, node distance=0pt,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ declare {
component is used.
"]],
examples = {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{trees} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{trees}} ]],
[[
\tikz \graph [binary tree layout, nodes={draw}]
{ a, b -- c[align here], d -- e[second, align here] -- f };
Expand Down Expand Up @@ -204,7 +204,7 @@ declare {
aligned such that their top nodes are in a line.
"]],
examples = {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{trees} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{trees}} ]],
[[
\tikz \graph [tree layout, nodes={draw, align=center},
components go right top aligned]
Expand All @@ -229,7 +229,7 @@ declare {
boxed being top-aligned.
"]],
examples = {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{trees} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{trees}} ]],
[[
\tikz \graph [tree layout, nodes={draw, align=center},
components go right absolute top aligned]
Expand Down Expand Up @@ -305,7 +305,7 @@ declare {
summary = "See the other |components go ...| keys.",

examples = {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{trees} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{trees}} ]],
[[
\tikz \graph [tree layout, nodes={draw, align=center},
components go left top aligned]
Expand Down Expand Up @@ -394,7 +394,7 @@ declare {
summary = "See the other |components go ...| keys.",

examples = {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{trees} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{trees}} ]],
[[
\tikz \graph [tree layout, nodes={draw, align=center},
components go down left aligned]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ declare {
options to orient individual components.
"]],
examples = {
options = [[preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{trees}]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{trees}} ]],
[["
\tikz \graph [tree layout, nodes={inner sep=1pt,draw,circle},
component direction=left]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ declare {
\end{itemize}
"]],
examples = {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{trees} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{trees}} ]],
[[
\tikz \graph [tree layout, nodes={inner sep=1pt,draw,circle},
component order=by first specified node]
Expand Down Expand Up @@ -97,7 +97,7 @@ declare {
A shorthand for |component order=decreasing node number|.
"]],
examples = {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{trees} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{trees}} ]],
[[
\tikz \graph [tree layout, nodes={inner sep=1pt,draw,circle},
large components first]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ declare {
rather it works as if this option were always set.
"]],
examples = {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{circular} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{circular}} ]],
[[
\tikz \graph [simple necklace layout]
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ declare {
"]],

examples = {
options = [[preamble=\usetikzlibrary{graphs,graphdrawing}]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing}} ]],
[["
\tikz \graph [no layout, nodes={draw, minimum size=20pt}] {
a [x=0, y=0] -- b [x=15pt, y=10pt] -- c[x=40pt]
Expand Down
10 changes: 5 additions & 5 deletions tex/generic/pgf/graphdrawing/lua/pgf/gd/control/Orientation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ declare {
|right|. Also, you can specify |-| for ``right'' and \verb!|! for ``down''.
"]],
examples = {
options = [[preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force}]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force}} ]],
[["
\tikz \graph [spring layout]
{
Expand Down Expand Up @@ -119,7 +119,7 @@ declare {
|orient| for details.
"]],
examples = {
options = [[preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force}]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force}} ]],
[["
\tikz \graph [spring layout] {
a [orient=|, orient tail=f] -- { b, c, d, e -- {f, g, h} };
Expand Down Expand Up @@ -149,7 +149,7 @@ declare {
|orient| for details.
"]],
examples = {
options = [[preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force}]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force}} ]],
[["
\tikz \graph [spring layout]
{
Expand All @@ -176,7 +176,7 @@ declare {
and the head will be everything following it.
"]],
examples = {
options = [[preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force}]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force}} ]],
[["
\tikz \graph [spring layout] { a -- b -- c -- a };
\tikz \graph [spring layout, horizontal=a to b] { a -- b -- c -- a };
Expand Down Expand Up @@ -267,7 +267,7 @@ declare {
be applied to all nodes. This happens to be exactly what you want:
"]],
examples = {
options = [[preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{layered}]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{layered}} ]],
[["
\tikz \graph [layered layout, sibling distance=5mm]
{
Expand Down
14 changes: 7 additions & 7 deletions tex/generic/pgf/graphdrawing/lua/pgf/gd/control/doc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ nodes can ``move freely''.
% \usegdlibrary{force}
--]]
example {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force}} ]],
code = [[
\begin{tikzpicture}
\draw [help lines] (0,0) grid (3,2);
Expand All @@ -118,7 +118,7 @@ example {
}

example {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force}} ]],
code = [[
\begin{tikzpicture}
\draw [help lines] (0,0) grid (3,2);
Expand All @@ -132,7 +132,7 @@ example {
}

example {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force}} ]],
code = [[
\begin{tikzpicture}
\draw [help lines] (0,0) grid (3,2);
Expand Down Expand Up @@ -179,7 +179,7 @@ Note how in the last example |c| is placed at |(1,1)| rather than
% \usegdlibrary{layered}
--]]
example {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{layered} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{layered}} ]],
code = [[
\tikz \draw (0,0)
-- (1,0.5) graph [edges=red, layered layout, anchor node=a] { a -> {b,c} }
Expand All @@ -189,7 +189,7 @@ example {
}

example {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{layered} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{layered}} ]],
code = [[
\begin{tikzpicture}
\draw [help lines] (0,0) grid (3,2);
Expand All @@ -214,7 +214,7 @@ explicit anchor is given for any node. The initial value is the origin.
]]

example {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{layered} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{layered}} ]],
code = [[
\begin{tikzpicture}
\draw [help lines] (0,0) grid (2,2);
Expand Down Expand Up @@ -246,7 +246,7 @@ default |anchor at| position.
]]

example {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{layered} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{layered}} ]],
code = [[
\begin{tikzpicture}
\draw [help lines] (0,0) grid (2,2);
Expand Down
8 changes: 4 additions & 4 deletions tex/generic/pgf/graphdrawing/lua/pgf/gd/control/library.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ declare {
invoked, nodes are placed \emph{behind} the edges.
"]],
examples = {
options = [[ preamble=\usetikzlibrary{graphs.standard,graphdrawing} \usegdlibrary{circular,trees} ]],
options = [[ preamble={\usetikzlibrary{graphs.standard,graphdrawing} \usegdlibrary{circular,trees}} ]],
[[
\tikz \graph [simple necklace layout, nodes={draw,fill=white},
nodes behind edges]
Expand All @@ -76,7 +76,7 @@ declare {
This is the default placement of edges: Behind the nodes.
"]],
examples = {
options = [[ preamble=\usetikzlibrary{graphs.standard,graphdrawing} \usegdlibrary{circular,trees} ]],
options = [[ preamble={\usetikzlibrary{graphs.standard,graphdrawing} \usegdlibrary{circular,trees}} ]],
[[
\tikz \graph [simple necklace layout, nodes={draw,fill=white},
edges behind nodes]
Expand Down Expand Up @@ -124,7 +124,7 @@ declare {
will be as short as possible.
"]],
examples = {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{layered} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{layered}} ]],
[["
\tikz \graph [layered layout] {
a -- {b,c,d} -- e -- a;
Expand All @@ -150,7 +150,7 @@ declare {
into account when drawing a graph.
"]],
examples = {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{phylogenetics} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{phylogenetics}} ]],
[["
\tikz \graph [phylogenetic tree layout] {
a --[length=2] b --[length=1] {c,d};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ documentation
]]

example {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{planarity} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{planarity}} ]],
code = [[
\tikz \graph [PlanarizationLayout] { a -- {b,c,d,e,f} -- g -- a };
]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ are available for the static tree algorithm can be used:


example {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{evolving} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{evolving}} ]],
code = [[
\tikz[animated binary tree layout]
\graph[nodes={draw,circle}, auto supernode] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ declare {
|spring electrical layout'|.
"]],
examples = {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force}} ]],
[[
\tikz \graph [spring electrical layout', coarsen=false, vertical=3 to 4]
{
Expand Down Expand Up @@ -99,7 +99,7 @@ declare {
coordinates in the final drawing.
"]],
examples = {
options = [[ preamble=\usetikzlibrary{graphs.standard,graphdrawing} \usegdlibrary{force} ]],
options = [[ preamble={\usetikzlibrary{graphs.standard,graphdrawing} \usegdlibrary{force}} ]],
[[
\tikz \graph [spring layout, iterations=0,
minimum coarsening size=2]
Expand Down Expand Up @@ -138,7 +138,7 @@ declare {
|downsize ratio|.
"]],
examples = {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force}} ]],
[[
% 1. ratio too high, coarsening stops early, benefits are lost
\tikz \graph [spring electrical layout',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ declare {
different |iteration| limits.
"]],
examples = {
options = [[preamble=\usetikzlibrary{graphs.standard,graphdrawing} \usegdlibrary{force}]],
options = [[ preamble={\usetikzlibrary{graphs.standard,graphdrawing} \usegdlibrary{force}} ]],
[["
\tikz \graph [spring layout, iterations=10] { subgraph K_n [n=4] };
"]],[["
Expand Down Expand Up @@ -100,7 +100,7 @@ declare {
cooling factor of |0.95|.
"]],
examples = {
options = [[preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force}]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force}} ]],
[["
\tikz \graph [spring layout, cooling factor=0.1]
{ a -> b -> c -> a };
Expand All @@ -125,7 +125,7 @@ declare {
with the convergence tolerance option:
"]],
examples = {
options = [[preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force}]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{force}} ]],
[["
\tikz \graph [spring layout, convergence tolerance=0.001]
{ { [clique] 1, 2 } -- 3 -- 4 -- { 5, 6, 7 } };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ declare {
|rounded corners| option:
"]],
examples = {
options = [[preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{layered}]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{layered}} ]],
[["
\tikz \graph [layered layout, sibling distance=7mm]
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ declare {
...
"]],
examples = {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{pedigrees} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{pedigrees}} ]],
[[
\tikz \graph [simple pedigree layout, default edge operator=complete bipartite]
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ declare {
the use of the |length| key for each edge.
"]],
examples = {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{phylogenetics} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{phylogenetics}} ]],
[[
\tikz \graph [phylogenetic tree layout] {
a -- {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ declare {
updated.
"]],
examples = {
options = [[ preamble=\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{phylogenetics} ]],
options = [[ preamble={\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{phylogenetics}} ]],
[[
\tikz \graph [phylogenetic tree layout,
balanced minimum evolution,
Expand Down
Loading

0 comments on commit 203ed48

Please sign in to comment.