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
\pgfversionsomewhere in your document and update if it is not version 3.0 – percusse Apr 13 '15 at 08:53\pgfversion, so I'll try that now – baxx Apr 13 '15 at 16:03.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:46luatex, if nothing else? Plus TikZ/PGF is so big that I thought it was usually recommended to update generally - it is almost bound to depend on something. Plus, there are independent packages which are built on it. Some of those won't exist on an older install, of course. But some will. – cfr Apr 13 '15 at 23:01.tds.zipas a local/personal install and see if that works. If it doesn't, then remove it, no harm, no foul; if it does work, use it ... and when TL2015 comes out, then install that as cfr said. The.tds.zipis a minor thing compared to doing a whole new TL install, purging your old install, etc., etc. – jon Apr 14 '15 at 00:31.tds.zipfiles; the essential point is that you can unzip them at the root of a 'TDS' tree like~/texmfand they will unzip in a TeX Directory Structure-compliant way. – jon Apr 14 '15 at 01:33