Overleaf 无法从子节进行编译,但可以从主子节进行编译

Overleaf 无法从子节进行编译,但可以从主子节进行编译

我有一个主页如下:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{amsmath}
\usepackage[letterpaper,margin=1in]{geometry}
\hypersetup{
colorlinks=true,
linkcolor=blue,
urlcolor=red, 
pdftitle ={XYZ},
}
\usepackage[T1]{fontenc}
\usepackage{babel}



\title{  \\
XYZ \\}


\begin{document}

\maketitle
\chapter *{Abstract}

\chapter *{Acknowledgement}


\include{introduction.tex}
\include{method.tex}
\include{simulation.tex}
\include{discussion.tex}
\include{figures.tex}

\appendix
\include{tables.tex}

\bibliographystyle{plain}
\bibliography{bibliography/ctm}


\end{document}

该小节没有序言,例如introduction.tex 包含如下文本:

\section{Introduction}

xyz yvz vbjzkjg ks joijjibfhbioif


我遇到的错误是:

Undefined control sequence.
LaTeX Error: Missing \begin{document}.

这是什么意思?主页上有 \begin document ..\end document 语句。我是否必须在所有小节中都包含序言?

相关内容