長 LaTeX 檔案導致奇怪的錯誤

長 LaTeX 檔案導致奇怪的錯誤

我有一篇很長的 LaTeX 文章(1000 行,單一檔案),其中也有很多數字和一些表格。

\documentclass[english]{egpubl}

%http://www.eg.org/index.php/docs/eg-tutorials/doc_download/14-egpublstyle-cgf

這篇文章編譯時帶有一些警告。但是,如果我取消註釋靠近文件末尾的段落中的任何行,則會收到錯誤:

! File ended while scanning use of \@writefile
Miktek 2.8 gave \end{document} as location
Miktek 2.9 gives \begin{document} as location

該錯誤出現在第三次建置過程中(而不是在清理專案後的前兩次建置過程中)。 PDF 檔案似乎已正常產生。然而這個錯誤讓我緊張。

違規段落:

To check segmentation expertize of the primary author,
%one dataset (F02) was manually segmented both by the primary author
and a neurosurgeon (the second author).
%Dice coefficient is 91\%, which is on par
%with segmentation correlations between neurosurgeons~\cite{ExpertDSCs} (86-96\% DSC).

我在 Win7 x64 上使用 TeXnicCenter 和 32 位元 MiKTeX。

我應該忽略這個錯誤,還是有辦法修復它?

答案1

移動 \end{document} 將我帶到了有問題的行。這是文檔末尾的一些 \url{}。謝謝芭芭拉·比頓!

很奇怪,這麼一個不起眼的段落竟然引發了錯誤。

相關內容