Ubuntu 14.04

tex version : TeX 3.1415926 (TeX Live 2013/Debian)

After seeing this post I really wanted to play with the example and library, however I can't seem to get it working on my system. I'm not sure if the code in the linked post can be included in another document or if it is just a standalone thing.

Heres the code from that post :

\tikz\path [graphs/.cd, nodes={shape=circle, fill=blue!40, draw=none, outer sep=0pt}, empty nodes]
  graph [tree layout] { A1 -- {B1 -- C1} -- A1 }
  graph { A2 -- B2; C2 -- D2; A2 -- D2;  B2 -- C2 };

There's another example here (by the same tex user) that looks nice, and is written in the same way.

Is the way that this package is meant to be used, just on its own? I can't find any guides for this

lualatex installed with :

sudo apt-get install texlive-luatex

Basically -> how to I use the above code within a project?

Compile with luatex - tried using this bash script - i get this error :

Edit 1

Here's tex --version info about my tex version, in short it's Version 3.14

My pgf version is 2.10 (used this post to get that)

My tikZ version (obtained by following this post) is;

tikz.sty 2010/10/13 v2.10 (rcs-revision 1.76)

Here is the code used to find TikZ version, copied from this post




error message that I'm currently getting :

! I can't find file `tikzlibrarygraphdrawing.code.tex'.
<argument> ...nput tikzlibrary\pgf@temp .code.tex 
                                                  \catcode `\@ =\csname tikz...
l.31 \usetikzlibrary{graphs,graphdrawing}

(Press Enter to retry, or Control-D to exit)
Please type another input file name: ! I can't find file `tikzlibrarygraphdrawing.code.tex'.

Script that I'm using to compile :


echo "Running pdflatex first..."
sleep 1
lualatex -shell-escape ./main.tex

echo "Running biber first..."
sleep 1
biber main

echo "Running pdflatex second..."
sleep 7
lualatex -shell-escape ./main.tex

echo "Running pdflatex third..."
sleep 7
lualatex -shell-escape ./main.tex
  • 1
    Either you don't have the package installed or your TeX installation is not sufficiently current. What version of TiKZ/PGF do you have? What edition of TeX Live?
    – cfr
    Apr 13 '15 at 1:45
  • 1
    Put \pgfversion somewhere in your document and update if it is not version 3.0
    – percusse
    Apr 13 '15 at 8:53
  • @cfr thanks, was very tired last night and faded soon after this. I've added the info to this post, @percusse suggests updating \pgfversion, so I'll try that now
    – baxx
    Apr 13 '15 at 16:03
  • @percusse thanks, I've updated the OP, it seems that I'm a bit behind there. I have read that repositories can often be behind the official releases a fair bit, and that I might uninstall tex completely and reinstall from the official site. I've not done this before, would be cool to hear any thoughts on that though :)
    – baxx
    Apr 13 '15 at 16:09
  • You can download from SourceForge a .tds.zip, which you could unzip into your personal or local tree and not worry about needing to update a whole installation. (Assuming TikZ/PGF doesn't require newer versions of other things.)
    – jon
    Apr 13 '15 at 18:46