编译问题:

编译问题:

因此我写了一个文档,其中包含一些图表,我在 overleaf.com 上编写了代码,然后将其粘贴到我的主要代码中:

\begin{tikzpicture}
 \filldraw[ultra thin, gray!15!] (1,0) rectangle (2,3)
 \filldraw[ultra thin, gray!15!] (2,0) rectangle (2.9,4)
 \filldraw[ultra thin, gray!15!] (2.9,0) rectangle (4,3.8)
 \filldraw[ultra thin, gray!15!] (4,0) rectangle (5,4.1)
 \draw[black, thin] (1,0) -- (1,3)
 \draw[black, thin] (2,0) -- (2,4)
 \draw[black, thin] (2.9,0) -- (2.9,4)
 \draw[black, thin] (4,0) -- (4,4.1)
  \draw[black, thin] (5,0) -- (5,4.1)
 \draw[black, thick] (1,3)--(2,3) 
 \draw[black, thick] (2,4)--(2.9,4) 
 \draw[black, thick] (2.9,3.8)--(4,3.8)
 \draw[black, thick] (4,4.1) -- (5,4.1)
 \draw[] (1,0) node[below] (x0) {$a$};
 \draw[](5,0) node[below] (x0) {$b$};
 \draw[thick,-latex] (-0.5,0) -- (6,0);
 \draw[thick,-latex] (0,-0.5) -- (0,5.7);
 \node[font=\normalsize] at (3,4.5) {$f(x)$} ;
\end{tikzpicture}

tikzpicture 在 overleaf 中编译得很好,但在 TeXmaker 中却不行 在此处输入图片描述

顺便说一下,如图所示,出现了一条消息错误,并且在 TeXmaker 中所有前面的页面都是空白的,我犯了什么错误?

相关内容