I'm trying to make a picture with TikZ, but I have a problem with the partway coordinates. The example below is from the pgf-manual and should therefore work, but I get errors as seen further down.
Code: Select all
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{tikzpicture}
\coordinate [label=left:$A$] (A) at (0,0);
\coordinate [label=right:$B$] (B) at (1.25,0.25);
\draw (A) -- (B);
\node [fill=red,inner sep=1pt,label=below:$X$] (X) at ($ (A)!.5!(B) $) {};
\end{tikzpicture}
l.121 ...r sep=1pt,label=below:$X$] (X) at ($ (A)!
.5!(B) $) {};
After forcing pdflatex to go further, I get further errors, but nothing helpful. I use TeXLive on Windows with all the latest updates.
Thanks in advance for any help you can supply.