Overleaf プロジェクトのコンパイルが停止しました

Overleaf プロジェクトのコンパイルが停止しました

私は 2 月に Overleaf を使用して論文を書きましたが、今度は、もうすぐ論文を書き始める友人のために、LaTeX テンプレートを作成し直したいと考えていました。

問題: プロジェクトの zip をダウンロードして再度アップロードすると、プロジェクトのコンパイルが停止しました。ドキュメントに変更を加えていないため、古い論文プロジェクトは正常にコンパイルされますが、再アップロードすると次のエラーが発生します。

NoPDF エラー

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 バージョンを試して、テンプレートが古いバージョンでもサポートされているかどうかを確認してください。

関連情報