LoginSignup
5
3

More than 3 years have passed since last update.

LaTeXエラー file ended while scanning use of \next について

Posted at

$\rm\LaTeX$で生じたエラーについて記述します.

前提条件

OS Windows10 Home 1903
TeX Live version 2019
LaTeX pLaTeX

エラーメッセージ

$\rm\LaTeX$にて文章を作成しているとき,下記のエラーに見舞われました.

file ended while scanning use of \next

原因

ソースコード中のコマンドのインデントの問題でした.
ソースコード中で\begin{comment}を使用していたのですが,エラーが発生した当初は以下のように記述していました.

\begin{document}

\section{hoge}

    \subsection{hogehoge}
    ...

    \begin{comment}
    ...
    \end{comment}

\end{docment}

comment環境を使用する場合において,以下のように修正した所エラーはなくなりました.

\begin{document}

\section{hoge}

    \subsection{hogehoge}
    ...

\begin{comment}
    ...
\end{comment}

\end{docment}

参考

5
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3