插入圖形時出現編譯和 output.lof 錯誤

插入圖形時出現編譯和 output.lof 錯誤

我目前正在寫論文,一切都很順利,直到我到達需要大量圖片和少量文字的章節。大多數圖片都是相鄰放置的,原始碼如下所示:

\begin{figure}[ht]
    \centering
    \subfloat[\centering Fractured X-oriented 15\%]{{\includegraphics[width=0.5\linewidth]{image}}}
    \qquad
    \subfloat[\centering Fractured Y-oriented 15\%]{{\includegraphics[width=0.5\linewidth]{image}}}
    \caption{PLA 15\%}
    \label{fig:label}
\end{figure}

接下來的下一張圖片只是一張,程式碼如下:

\begin{figure}[ht]
    \centering
    \includegraphics[width=1\linewidth]{image}
        \caption{15\% stress-strain diagram}
    \label{fig:label2}
\end{figure}

我添加了大約 20 張這樣的圖片,但我收到了太多的 output.lof 錯誤訊息。我嘗試透過刪除 % 之類的內容來修復它,但錯誤仍然存在。我在其他章節中也使用了上面的程式碼,沒有錯誤,但只有一兩次。我收到的錯誤是「Extra },或忘記了 \endgroup」。在我的課堂上,我有 Graphicx 包,然後是圖片的路徑。

即使我刪除整個章節/圖片資料夾或清除快取並重新編譯,似乎錯誤仍然存在,就像程式碼仍然存在一樣。

有誰知道如何修理它?如果需要,我可以提供更多資訊。

相關內容