TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

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?

share|improve this question

marked as duplicate by dustin, Henri Menke, ChrisS, Malipivo, Jesse May 8 '14 at 6:11

This question was marked as an exact duplicate of an existing question.

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