![在 sharelatex 中编译代码花费的时间太长](https://linux22.com/image/371789/%E5%9C%A8%20sharelatex%20%E4%B8%AD%E7%BC%96%E8%AF%91%E4%BB%A3%E7%A0%81%E8%8A%B1%E8%B4%B9%E7%9A%84%E6%97%B6%E9%97%B4%E5%A4%AA%E9%95%BF.png)
我的代码有什么问题?它没有通过 Sharelatex 编译(这将花费很长时间,然后会产生超时错误)
\documentclass{article}[15pt]
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=1.5]
\draw [->, ultra thick, red](0,6)--(0,-6) node[right]{$x$};
\draw [->,ultra thick, red](6,0)--(-6,0) node[above]{$y$};
\draw (6,-2)--(-6,6);
\draw (6,6)--(-6,-2);
\draw[very thick,red]
--(3,1) node {$\tan\theta_2$};
\fill[green!20!white] (3,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=143.130102, radius=4mm]--cycle
\fill[green!20!white] (-3,0)-- ++(3mm,0mm)
arc[start angle=0, end angle=56.3099, radius=4mm]--cycle
\end{tikzpicture}
\end{document}
答案1
这是因为 Ti钾Z 无法读取最后两个\fill
s,因为您缺少末尾的分号:
\documentclass{article}[15pt]
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=1.5]
\draw [->, ultra thick, red](0,6)--(0,-6) node[right]{$x$};
\draw [->,ultra thick, red](6,0)--(-6,0) node[above]{$y$};
\draw (6,-2)--(-6,6);
\draw (6,6)--(-6,-2);
\draw[very thick,red]
--(3,1) node {$\tan\theta_2$};
\fill[green!20!white] (3,0)-- ++(4mm,0mm)
arc[start angle=0, end angle=143.130102, radius=4mm]--cycle;% <- HERE
\fill[green!20!white] (-3,0)-- ++(3mm,0mm)
arc[start angle=0, end angle=56.3099, radius=4mm]--cycle;% <- AND HERE
\end{tikzpicture}
\end{document}