Overleaf專案剛剛停止編譯

Overleaf專案剛剛停止編譯

我在二月使用 Overleaf 寫了我的論文,現在想回去為一些也即將開始寫作的朋友創建一個 LaTeX 模板。

問題:下載專案 zip 並重新上傳專案後,專案停止編譯。我沒有對文件進行任何更改,舊論文專案仍然可以正常編譯,但重新上傳會引發以下錯誤:

無PDF錯誤

This compile didn’t produce a PDF. This can happen if: There is an
unrecoverable LaTeX error. If there are LaTeX errors shown below or in
the raw logs, please try to fix them and compile again. The document
environment contains no content. If it’s empty, please add some
content and compile again. This project contains a file called
output.pdf. If that file exists, please rename it and compile again.

Emergency stop


<*> docclass.tex
                
*** (job aborted, no legal \end found)

  Here is how much of TeX's memory you used:  18 strings out of 477678
409 string characters out of 5829488  299848 words of memory out of
5000000  18915 multiletter control sequences out of 15000+600000 
469259 words of font info for 28 fonts, out of 8000000 for 9000  1141
hyphenation exceptions out of 8191  13i,0n,12p,94b,10s stack positions
out of 10000i,1000n,20000p,200000b,200000s !  ==> Fatal error
occurred, no output PDF file produced!

其他一些執行緒建議將 \end{document} 移向文件頂部,以嘗試找出編譯錯誤發生的位置,但即使我將其放在 begin{document} 之後,它仍然會產生相同的錯誤。

因此我認為錯誤可能位於配置文件中的某個位置。難道 Overleaf 更改了一些版本,現在不再支援我的(相對較舊的)模板,而舊專案由於快取檔案而仍在運行?

我目前不知所措,錯誤訊息是如此神秘和不具體,我真的需要一些幫助。

它引用的 docclass.tex 檔案如下所示並且應該有效:

\documentclass[
    11pt,
    DIV=10,
    ngerman,
    a4paper,
    oneside,
    titlepage,
    parskip=half,
    headings=normal,
    listof=totoc,
    bibliography=totoc,
    index=totoc,
    captions=tableheading,
    numbers=noenddot,
    final ]{scrreprt}

答案1

當發生此類錯誤並移動 \end{document} 以排除文件中不同點的編譯錯誤時,請確保重新檢查是否設定了正確的主文件(選單 -> 主文件),並嘗試使用較舊的文件從在下拉清單中查看TexLive 版本,查看舊版本是否仍支援此範本!

相關內容