Skip to content

Commit

Permalink
Fix missing \definecolor{graphicbackground} in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
hansonchar committed Jul 1, 2024
1 parent 79b266d commit 3ad3774
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions doc/generic/pgf/pgfmanual-en-tikz-graphs.tex
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,8 @@ \subsection{Overview}
};
\end{codeexample}

\begin{codeexample}[
preamble={\usetikzlibrary{graphs}},
pre={\definecolor{graphicbackground}{rgb}{0.96,0.96,0.8}},
]
\begin{codeexample}[preamble={\usetikzlibrary{graphs}}]
\definecolor{graphicbackground}{rgb}{0.96,0.96,0.8}
\tikz
\graph [nodes={draw, circle}, clockwise, radius=.75cm, empty nodes, n=8] {
subgraph C_n [name=inner] <->[shorten <=1pt, shorten >=1pt]
Expand All @@ -60,6 +58,7 @@ \subsection{Overview}
\end{codeexample}

\begin{codeexample}[width=6.6cm,preamble={\usetikzlibrary{graphs}}]
\definecolor{graphicbackground}{rgb}{0.96,0.96,0.8}
\tikz [>={To[sep]}, rotate=90, xscale=-1,
mark/.style={fill=black!50}, mark/.default=]
\graph [trie, simple,
Expand Down

0 comments on commit 3ad3774

Please sign in to comment.