[OS X TeX] Error in TikZ code hard to find

Vamos, Peter P.Vamos at exeter.ac.uk
Wed Nov 12 16:36:41 CET 2014


> On 12 Nov 2014, at 02:03, George Gratzer <gratzer at me.com> wrote:
> 
> But TikZ is even worse than LaTeX.
> 
> How bad: it cannot typeset the first introductory example in the TikZ manual…

Do you mean the “A Picture for Karl’s Students”?

It used to typeset/work but the current manual (for version 3.0.0) has a code on page 45, different from previous version. When I tried just now it didn’t typeset, just as you said. 

It is missing one invocation of a library (implicit in the tutorial): insert \usetikzlibrary{intersections} after the \begin{tikzpicture} command finished, so that the beginning of the code should look like:

\begin{tikzpicture}
[scale=3,line cap=round,
% Styles
axes/.style=,
important line/.style={very thick},
information text/.style={rounded corners,fill=red!10,inner sep=1ex}]
\usetikzlibrary{intersections}

% Colors
.
.
.
Then it will work. 

Peter




More information about the macostex-archives mailing list