Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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 at 6:11

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new 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 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 at 5:27
    
I voted to close your question with the link you provided. –  dustin May 8 at 5:32

Browse other questions tagged or ask your own question.