Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I try to reproduce the \graph example of the pgf manual 2.10 page 208:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{graphs}

\begin{document}
\tikz \graph {a -> { b , c } -> d};
\pgfversion
\end{document}

All nodes (a, b, c, d) are placed on top of each other as shown in the following figure.

enter image description here

I use TeX Live 2012 under Ubuntu 12.04 (through ppa-backports). Is it my TeX setup or do I forget to include some tikz libraries?

share|improve this question
    
Looks ok for me (miktex, pgf version 2.10-cvs). –  Ulrike Fischer Aug 27 '12 at 15:40
    
I have the same effect under SuSe 12.1 with TeX Live 2011 (pgf also 2.10). –  HeLLo Aug 27 '12 at 16:38
    
I have the cvs version. On another PC with the standard pgf version 2.10 I get the same problematic output as you. –  Ulrike Fischer Aug 27 '12 at 16:44
    
I also got the same problematic output. –  stalking is prohibited Aug 27 '12 at 16:57
    
with current TL2012 it is correct –  Herbert Aug 27 '12 at 17:29

1 Answer 1

up vote 3 down vote accepted

The pgf-manual of pgf 2.10 says nothing about the graphs library and its \graph macro (on page 208, we find the section 17.4, "Anchoring a Matrix")!

So, your example of the page 208 comes from a newer version of the pgf manual (surely a CVS version...)!

Your example can be compiled with pgf 2.10 because pgf 2.10 contains some files planned for the future (as tikzlibrarygraphs.code.tex). But, these files are experimental and old.

share|improve this answer
    
That's it. I did not care about this “-cvs“ thing. Downloading the cvs into the local textree helped. –  HeLLo Aug 28 '12 at 11:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.