我有一张桌子,上面有两个\footnotemark
。我在桌子正下方添加了两个\footnotetext
。
现在的情况是,表格中第一个脚注的编号为 32(正确),第二个脚注的编号为 34(错误)。此外,在页面末尾,两个脚注都标记为 34。32 和 33 完全缺失。
在下图中您可以看到表格中的编号不一致:
Latex 代码如下:
\begin{table}[H]
\centering
\label{tab:large_biomed_statistics}
\resizebox{\textwidth}{!}{%
\begin{tabular}{|l|c|c|c|c|}
\hline
\textbf{Ontology} & \multicolumn{1}{l|}{\textbf{\begin{tabular}[c]{@{}l@{}}All \\ Classes\end{tabular}}} & \multicolumn{1}{l|}{\textbf{\begin{tabular}[c]{@{}l@{}}Small Overlap \\ NCI\end{tabular}}} & \multicolumn{1}{l|}{\textbf{\begin{tabular}[c]{@{}l@{}}Small Overlap \\ FMA\end{tabular}}} & \multicolumn{1}{l|}{\textbf{\begin{tabular}[c]{@{}l@{}}Small Overlap\\ SNOMED\end{tabular}}} \\ \hline
\textbf{NCI} & 66,724 & - & 6,488 & 23,958 \\ \hline
\textbf{FMA} & 78,989 & 3,696 & - & 10,157 \\ \hline
\textbf{SNOMED} & 122,464\footnotemark
& 51,128 & 13,412 & - \\ \hline
\end{tabular}%
}
\caption[OAEI Large BioMed Statistics]{OAEI Large BioMed Statistics: The numbers refer to the number of classes in the corresponding ontology. They are compiled from the downloadable material of the track\footnotemark.}
\end{table}
\footnotetext{{Note that for the SNOMED ontology this number does still not represent the whole ontology but the subset with NCI and FMA. In the track, however, the full ontology is not provided.}}%
\footnotetext{see \url{http://www.cs.ox.ac.uk/isg/projects/SEALS/oaei/2017.5/LargeBio_dataset_oaei2017.zip}}%
答案1
我按照@Herbert 的建议进行了尝试\addtocounter{footnote}{-1}
(谢谢)。
解决方案:第一个之后\footnotemark
,计数器需要减少,所以我添加了\addtocounter{footnote}{-1}
第一次之前\footnotetext
,计数器需要再次减少\addtocounter{footnote}{-1}
。每次之后\footnotetext
,计数器都需要增加 1(\addtocounter{footnote}{1}
)。
最终的编号(32, 33)适合文本,并且在页面末尾也是正确的。
修正代码:
\begin{table}[H]
\centering
\label{tab:large_biomed_statistics}
\resizebox{\textwidth}{!}{%
\begin{tabular}{|l|c|c|c|c|}
\hline
\textbf{Ontology} & \multicolumn{1}{l|}{\textbf{\begin{tabular}[c]{@{}l@{}}All \\ Classes\end{tabular}}} & \multicolumn{1}{l|}{\textbf{\begin{tabular}[c]{@{}l@{}}Small Overlap \\ NCI\end{tabular}}} & \multicolumn{1}{l|}{\textbf{\begin{tabular}[c]{@{}l@{}}Small Overlap \\ FMA\end{tabular}}} & \multicolumn{1}{l|}{\textbf{\begin{tabular}[c]{@{}l@{}}Small Overlap\\ SNOMED\end{tabular}}} \\ \hline
\textbf{NCI} & 66,724 & - & 6,488 & 23,958 \\ \hline
\textbf{FMA} & 78,989 & 3,696 & - & 10,157 \\ \hline
\textbf{SNOMED} & 122,464\footnotemark \addtocounter{footnote}{-1}
& 51,128 & 13,412 & - \\ \hline
\end{tabular}%
}
\caption[OAEI Large BioMed Statistics]{OAEI Large BioMed Statistics\\
The numbers refer to the number of classes in the corresponding ontology. They are compiled from the downloadable material of the track\footnotemark.}
\end{table}
\addtocounter{footnote}{-1}
\footnotetext{{Note that for the SNOMED ontology this number does still not represent the whole ontology but the subset with NCI and FMA. In the track, however, the full ontology is not provided.}}%
\addtocounter{footnote}{1}
\footnotetext{see \url{http://www.cs.ox.ac.uk/isg/projects/SEALS/oaei/2017.5/LargeBio_dataset_oaei2017.zip}}%
\addtocounter{footnote}{1}