! Package pgfkeys Error: I do not know the key '/pgf/decoration/brace'
and I am
going to ignore it. Perhaps you misspelled it.
See the pgfkeys package documentation for explanation.
Type H <return> for immediate help.
...
l.11 \draw[decorate,decoration=brace]
(a) -- (b);
What am I missing here?
Alan
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations}
\begin{document}
\begin{tikzpicture}
\node (a) {A};
\node (b) at (2,1) {B};
\draw (a) -- (b);
\draw[decorate,decoration=brace] (a) -- (b);
\draw[decorate,decoration={brace,mirror},red] (a) -- (b);
\draw[decorate,decoration={brace,mirror,raise=5pt},blue] (a) -- (b);
\end{tikzpicture}
\end{document}
> The following sample code from the tikz manual fails with the following
> error:
>
>
> ! Package pgfkeys Error: I do not know the key '/pgf/decoration/brace'
> and I am
> going to ignore it. Perhaps you misspelled it.
>
>
>
> \documentclass{article}
> \usepackage{tikz}
> \usetikzlibrary{decorations}
\usetikzlibrary{decorations.pathreplacing}
> \begin{document}
>
> \begin{tikzpicture}
> \node (a) {A};
> \node (b) at (2,1) {B};
> \draw (a) -- (b);
> \draw[decorate,decoration=brace] (a) -- (b);
> \draw[decorate,decoration={brace,mirror},red] (a) -- (b);
> \draw[decorate,decoration={brace,mirror,raise=5pt},blue] (a) -- (b);
> \end{tikzpicture}
>
> \end{document}
Alain Matthes
> On 2009-04-10 04:44:11 +0200, Alan Munn <am...@msu.edu> said:
>
> > The following sample code from the tikz manual fails with the following
> > error:
> >
> >
> > ! Package pgfkeys Error: I do not know the key '/pgf/decoration/brace'
> > and I am
> > going to ignore it. Perhaps you misspelled it.
> >
> >
> >
> > \documentclass{article}
> > \usepackage{tikz}
> > \usetikzlibrary{decorations}
>
> \usetikzlibrary{decorations.pathreplacing}
Thanks, Alain. This is one frustrating part about the otherwise stellar
tikz manual: it's not always obvious which libraries must be used for
which bits of sample code.
Alan
First, you can use all the librairies :
\usetikzlibrary{%
arrows,%
calc,%
fit,%
patterns,%
plotmarks,%
shapes.geometric,%
shapes.misc,%
shapes.symbols,%
shapes.arrows,%
shapes.callouts,%
% shapes.multipart,%
% shapes.gates.logic.US,%
% shapes.gates.logic.IEC,%
% er,%
% automata,%
backgrounds,%
chains,%
topaths,%
trees,%
petri,%
mindmap,%
matrix,%
% calendar,%
folding,%
fadings,%
through,%
positioning,%
scopes,%
decorations.fractals,%
decorations.shapes,%
decorations.text,%
decorations.pathmorphing,%
decorations.pathreplacing,%
decorations.footprints,%
decorations.markings,%
shadows}
and after you remove some of them
Best Regards
Alain Matthes