1

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?

Praba
  • 9
  • Welcome to TeX.SX! Your example works fine here, with TeX Live 2013. Do you have the same version of PGF/TikZ everywhere? – Torbjørn T. May 08 '14 at 05:21
  • Thanks @TorbjørnT. I should have looked up on this site (I did, but found nothing). It was already covered here.

    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
  • I voted to close your question with the link you provided. – dustin May 08 '14 at 05:32

0 Answers0