0%

vscode LaTex 表格编译错(长时间 build 卡住)

今天用 vscode 写论文,有个表格,于是从给出的模板后面 copy 了表格的代码,稍作修改,然后 ctrl+s 开始 build,结果几分钟过去了一直卡在 build,于是我换了一个 build 的 recipe(侧边栏的 TEX 按钮 - COMMANDS - Build LaTex project),一共有 4 个,我挨个试了个遍都是一样的结果,我:?

我以为是 xelatex 这个程序出问题了,因为是之前安装 texlive2018,于是用 scoop 重新装了,结果依然会卡在 build。我就迷惑了,哪里出问题了,于是直接把文件代码贴到 overleaf 网站上,结果由于长时间编译不出来报错了,说是有语法错。。。我人傻了,vscode 咋没有报错?

表格代码如下,目前并不懂哪里出错了 :O

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Table~\ref{tab1} lists the comparison.

\begin{table}
\begin{tabular}{lll}
\caption{Comparison between A, B and C}
\label{tab1}
\toprule
Virtualization Technology&Pros&Cons\\
\midrule
As & Allows deploying different operating systems on a single host & For Swedish names\\
Bs & 1 in 5& Common in math\\
Cs & 4 in 5 & Used in business\\
\bottomrule
\end{tabular}
\end{table}

Welcome to my other publishing channels