Picon
Favicon

PGF v2.0 manual page 46 (petri net) seems to not work

Hi all,

I'm new to PGF/tikz so I started using the manual and
the tutorials yesterday. However, I ran into trouble
with the example of the petri net. I copied all the
input on page 46 into an input file, but compilation
results in:

! Package pgfkeys Error: I do not know the key
'/tikz/on grid' 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    every label/.style=     {red}]

>From the log file:

(/usr/local/texlive/2007/texmf-dist/tex/latex/pgf/systemlayer/pgfsys.sty
(/usr/local/texlive/2007/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code.tex
Package: pgfsys 2008/02/07 v2.00 (rcs-revision 1.31)
(/usr/local/texlive/2007/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
\pgfkeys <at> pathtoks=\toks16
\pgfkeys <at> temptoks=\toks17

so I think I have the correct installation.

Any tips? I tried searching the email lists but no
(Continue reading)

Till Tantau | 6 May 18:57
Picon
Favicon

Re: PGF v2.0 manual page 46 (petri net) seems to not work

Try saying

\usetikzlibrary{positioning}

that might help.

Best regards,
Till

Am 06.05.2008 um 16:18 schrieb Wilfred van Rooijen:
> Hi all,
>
> I'm new to PGF/tikz so I started using the manual and
> the tutorials yesterday. However, I ran into trouble
> with the example of the petri net. I copied all the
> input on page 46 into an input file, but compilation
> results in:
>
> ! Package pgfkeys Error: I do not know the key
> '/tikz/on grid' 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    every label/.style=     {red}]
>
>> From the log file:
>
(Continue reading)

Picon
Favicon

Re: PGF v2.0 manual page 46 (petri net) seems to not work

Hi all,

OK, I found I have to use a couple of libraries:

\usetikzlibrary{positioning}
\usetikzlibrary{arrows}
\usetikzlibrary{petri}
\usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{fit}

and some definitions:

\pgfdeclarelayer{background}
\pgfdeclarelayer{foreground}
\pgfsetlayers{background,main,foreground}

I use PGF/Tikz with xelatex and it seems to work well.
I'm impresed with the possibilities, but the learning
curve is indeed steep.

Wilfred

--- Till Tantau <tantau <at> tcs.uni-luebeck.de> wrote:

> Try saying
> 
> \usetikzlibrary{positioning}
> 
> that might help.
> 
(Continue reading)

Kjell Magne Fauske | 6 May 19:20
Picon

Re: PGF v2.0 manual page 46 (petri net) seems to not work

On Tue, May 6, 2008 at 4:18 PM, Wilfred van Rooijen
<wvanrooijen <at> yahoo.com> wrote:
> Hi all,
>
>  I'm new to PGF/tikz so I started using the manual and
>  the tutorials yesterday. However, I ran into trouble
>  with the example of the petri net. I copied all the
>  input on page 46 into an input file, but compilation
>  results in:
>
>  ! Package pgfkeys Error: I do not know the key
>  '/tikz/on grid' and I am going to ignore it. Perhaps
>  you misspelled it.
>

>
>  Any tips? I tried searching the email lists but no
>  solution.
>

You have probably not loaded the positioning library:

\usetikzlibrary{positioning}

Hope this helps!

- Kjell Magne Fauske

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
(Continue reading)


Gmane