
我將幾篇論文作為單獨的章節放在報告類別中。每篇論文中的所有圖形和表格都需要以數字 1 開頭,而不註明它們位於哪一章/論文中(例如,第一章、第二章等中有圖 1)。為了控制章節/章節內的編號,我檢視了這個問題:對圖形、表格和其他文件元素進行連續編號或按章/節編號
這是我找到帶有figurewithin和tablewithin的標題解決方案的地方。
當我使用以下 MVE 時,我得到的是圖 .1 - 圖號之前總是有一個點,我猜章節號應該在那裡。但是,我只需要圖 1 而不是圖 .1:
\documentclass[a4paper, 11pt, english]{report}
\usepackage[T1]{fontenc}
\usepackage[figurewithin=chapter, tablewithin=chapter]{caption}
\begin{document}
\include{Paper1}
\end{document}
Paper1.tex 看起來像這樣:
\chapter{Paper I Title}
\section{Introduction}
\begin{table}[htb]
\centering
\begin{tabular}{@{}p{12cm}p{4cm}@{}}
\toprule
BFL \\ \midrule
\textit{IC:} Text. \\
\textit{I:} Text. \\
\\ \bottomrule
\end{tabular}
\caption{Caption title}
\end{table}