运行以下代码时遇到一个相当奇怪的typesetting
错误:Tikz
\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}
上述程序在(Windows)中运行良好,但在或MikTex
中运行时会出现此错误:TexLive (Ubuntu)
MacTex
Package `tikz` Error: Giving up on this path. Did you forget a `semicolon`? \draw [->] (0,0) -- (0:{sin(90)})
如果我将 (0:{sin(90)}) 更改为 (0,{sin(90)}) 或 (0:{1}),则效果很好。知道原因吗?