Yoshimaru's Blog

京都に住む院生が書いています

Overleafのコンパイルが終わらない

コンパイルが終わらない

Latexで卒論を書いていた時に,なぜかコンパイルが終わらない.

エラーコード調べてもよくわからなかったし,いい解答がのっていなかったので共有.

エラー画面

エラー画面

以下エラーメッセージ

Timed out. Sorry, your compile took too long to run and timed out. This may be due to a LaTeX error, or a large number of high-res images or complicated diagrams.
Learn how to fix compile timeouts

解決法

よくよく見たらTebleが悪さしていることがわかった. テーブルの一部分だけ線を引きたいときの\clineに引数を数字を一つにしていた. 一行目だけに引きたい時も\cline{1-1}と指定してかく.

\begin{table}[]
    \centering
    \begin{tabular}{c|c}
         aaa&bbb  \\\cline{1} <--- 引数が1つしかないのが原因
    \end{tabular}
    \caption{Caption}
    \label{tab:my_label}
\end{table}

公式ドキュメント エラーで参照されていた公式サイト.

www.overleaf.com