I am encountering a rather odd typesetting error with Tikz when running the following code:
\documentclass[]{amsart}
\usepackage{tikz,pgfplots}
\usetikzlibrary{patterns,calc,fadings,decorations}
\begin{document}
\[\begin{tikzpicture}[thick,x=2em,y=2em]
\draw [->] (0,0) -- (0:{sin(90)});
\end{tikzpicture}\]
\end{document}
The above runs fine with MikTex (Windows) but gives this error when run in TexLive (Ubuntu) or MacTex:
Package `tikz` Error: Giving up on this path. Did you forget a `semicolon`? \draw [->] (0,0) -- (0:{sin(90)})
If I change (0:{sin(90)}) to (0,{sin(90)}) or (0:{1}) then it works fine. Any idea why?
Now I need to find a way to update my PGF/TikZ, and also to close my question.
– Quang Hoang May 08 '14 at 05:27