TJUThesis_master_2021 icon indicating copy to clipboard operation
TJUThesis_master_2021 copied to clipboard

添加图片,\caption{}报错,there is no line here to end

Open NovinceNO1 opened this issue 2 years ago • 1 comments

您好,我试图用这个模板添加图片的时候,总是会在\caption{}那一行报错 there is no line here to end。以下是我用别的模板成功编译过的代码段,不知您是否遇到过这个问题。 \begin{figure}[!htb] \begin{center} \centering \includegraphics[width=0.6\linewidth]{figs/cha1/three.pdf} \end{center}

\caption{ }

\label{fig:three} \end{figure}

NovinceNO1 avatar Sep 27 '21 15:09 NovinceNO1

您好,我试图用这个模板添加图片的时候,总是会在\caption{}那一行报错 there is no line here to end。以下是我用别的模板成功编译过的代码段,不知您是否遇到过这个问题。

你好,你的代码段我用Overleaf在模板里试了一下,无论有没有\caption{ }都不报错,\caption{ }里有没有内容也都不报错。

有没有可能是图片路径有问题?我里面用的是{figures/RW_CCOT.jpg}

a171232886 avatar Sep 28 '21 03:09 a171232886