1

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 :

\documentclass[tikz,border=0.1cm]{standalone}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary{trees}
\begin{document}
\tikz\path [graphs/.cd, nodes={shape=circle, fill=blue!40, draw=none, outer sep=0pt}, empty nodes]
  graph [tree layout] { A1 -- {B1 -- C1} -- A1 }
  [shift=(0:1)]
  graph { A2 -- B2; C2 -- D2; A2 -- D2;  B2 -- C2 };
\end{document}

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

\documentclass{article}
\usepackage{tikz}

\listfiles

\begin{document}
\pgfversion
\end{document}

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 :

#!/bin/sh

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

closed as unclear what you're asking by TeXnician, Stefan Pinnow, Bobyandbob, siracusa, Phelype Oleinik Sep 24 '18 at 23:48

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 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