In the launchpad website it is mentioned that the version in the repositories is hopelessly outdated (by two years, even in the oncoming october release). I was trying to install TeXLive 2011 (in Ubuntu) and succesfully followed all the instructions given in the linked blog.
However, when I make a tex file containing the header
\usetikzlibrary{calc,through, intersections,decorations.text}
I think it is not able to load the package. I get the error message
! I can't find file `tikzlibrary'.
I am wondering this was probably because of the final statement in the aforementioned blog
That should be that. Remember that ktikz needs to load up the PGF packages you want to use. Common ones for me are loaded as follows:
\usetikzlibrary{calc,through, intersections,decorations.text, decorations.pathreplacing}
I didn't really understand what this meant, so I presumed he meant to add this as the header to the latex file, as normal. Apparently, that is not the case.
Could someone tell me how to get my installation to work? How do I load up the packages I want to use?
Additional info: I added the following files to my .bashrc (and even .profile)
cat >> ./.bashrc << "EOF"
PATH= /usr/local/texlive/2011/bin/x86_64-linux/:$PATH
export PATH MANPATH=/usr/local/texlive/2011/bin/x86_64-linux/:$MANPATH
INFOPATH=/usr/local/texlive/2011/bin/x86_64-linux/:$INFOPATH
export MANPATH export INFOPATH
EOF
When I do a which pdflatex I get /usr/bin/pdflatex while it should tell me something like /usr/local/texlive/2011/bin/x86_64-linux/pdflatex
`
Disclaimer: This code is not mine. I am just testing to see if TikZ works.
\usepackage{tikz}
\usetikzlibrary{calc,through, intersections,decorations.text}
\begin{tikzpicture} [scale=3]
\def\myangle{117};
\clip (-1.5,-1.5) rectangle (1.5,1.5);
\coordinate (A) at (0,0);
\coordinate (B) at (1,0);
\node [blue, name path=blue_circle,draw,circle through=(B)] at (A) {};
\draw [black, fill] (A) circle (1pt) node [below] {\tiny centre};
\draw [red, dashed] (A) -- (B);
\path [name path=radius, rotate=\myangle] (A) -- ++(1.5,0);
\draw [red, ->] ($(A)+(0.5,0)$) arc (0:\myangle:0.5cm);
\path [decorate,decoration={raise=-5pt, text along path, text={|\tiny|angle ||}, text align=center, text color=red, reverse path}](0.5,0) arc (0:\myangle:0.5cm);
\draw [name intersections={of=blue_circle and radius, by=C}] [orange, ->] (A) -- (C) node [pos=0.7, sloped, above] {\tiny radius};
\end{tikzpicture}
ktikz(which is a TikZ editor), or are you trying to use TikZ in a normal LaTeX document? In the latter case, have you loaded TikZ using\usepackage{tikz}before\usetikzlibrary{...}? – Jake Aug 20 '11 at 06:06ls /usr/local/texlive/2011/bin? – Andrew Stacey Aug 20 '11 at 09:06.bashrcto reset the path. – Andrew Stacey Aug 20 '11 at 09:07intersectionslibrary. If there were no obvious errors with the installation, and the paths are correct for your architecture, then my best guess is that you didn't log out and log back in again! – Andrew Stacey Aug 20 '11 at 18:21x86_64-linux(64 bit Lucid Lynx on a 64 bit machine) ). I also hadn't bothered with the default 2009 version I had installed from the repositories as in the official page it was written that installing the latest version does not interfere with any other package. But I still removed them just now, to give the whole thing another try. – yayu Aug 21 '11 at 07:50which pdflatexsays that something isn't quite right, though. Can you post the result ofecho $PATH? – Andrew Stacey Aug 21 '11 at 18:07\usr\local. Installing normally (not portable) put it\usr\local. It runs fine now! You might want to check that you have a TeX tree in\usr\local. – DJP Aug 22 '11 at 02:20