'Copyrightbox' 变为 'Table' 标题前缀

'Copyrightbox' 变为 'Table' 标题前缀

我对 LaTex ACM sig-alternate 模板还不太熟悉,我正在为会议准备一个照相版。起初 latex 引擎给了我错误,no float type 'copyrightbox' defined然后我按照线程这里\DeclareCaptionType{copyrightbox}并像这样添加:

\documentclass{sig-alternate}
\usepackage{hyperref}
\usepackage{flushend}
\usepackage{pdfpages}
\usepackage{amsmath}
\usepackage{enumitem}
\usepackage[font=bf]{caption}
\DeclareCaptionType{copyrightbox}
\begin{document}

现在我的表格标题以“copyrightbox 1:”,“copyrightbox 2:”等为前缀,而不是通常的“表格 1”,“表格 2”......现在是这样的:在此处输入图片描述

我所有的图形标题均不受影响,仍然显示为“图 1”、“图 2”等等。

这里是姆韦放置我的桌子:

\documentclass{sig-alternate}
\usepackage{hyperref}
\usepackage{flushend}
\usepackage{pdfpages}
\usepackage{amsmath}
\usepackage{enumitem}
\usepackage[font=bf]{caption}
\DeclareCaptionType{copyrightbox}
\begin{document}
\begin{center}
\begin{tabular}{| l | c | r | }
\hline
& Without BSDiff & With BSDiff \\ \hline \hline 
Storage Space & 9.8mb & 60kb \\ \hline
Fuzzing Time (if no crash) & 1018s & 1105s \\
Creation Time & 63s & 1864s \\ \hline
Network transmission & 8.38s & 0.46s \\ \hline  
\end{tabular} 
\label{fig:FEETPercentage} 
\caption{Percentage uniqueness of first 10 jobs distributed to clients}
\end{center}
\end{document}

我从未遇到过这个版权框问题,我想将表格的标题改回“表格 n”。

编辑:我通过放置 \begin 和 end 表解决了该问题:

梅威瑟:

\documentclass{sig-alternate}
\usepackage{hyperref}
\usepackage{flushend}
\usepackage{pdfpages}
\usepackage{amsmath}
\usepackage{enumitem}
\usepackage[font=bf]{caption}
\DeclareCaptionType{copyrightbox}
\begin{document}
\begin{center}
\begin{table}
\begin{tabular}{| l | c | r | }
\hline
& Without BSDiff & With BSDiff \\ \hline \hline 
Storage Space & 9.8mb & 60kb \\ \hline
Fuzzing Time (if no crash) & 1018s & 1105s \\
Creation Time & 63s & 1864s \\ \hline
Network transmission & 8.38s & 0.46s \\ \hline  
\end{tabular} 
\label{fig:FEETPercentage} 
\caption{Percentage uniqueness of first 10 jobs distributed to clients}

\end{table}
\end{center}
\end{document}

答案1

我怀疑你有类似的东西

\begin{copyrightbox}
\begin{center}
\begin{tabular}{| l | c | r | }
\hline
& Without BSDiff & With BSDiff \\ \hline \hline
Storage Space & 9.8mb & 60kb \\ \hline
Fuzzing Time (if no crash) & 1018s & 1105s \\
Creation Time & 63s & 1864s \\ \hline
Network transmission & 8.38s & 0.46s \\ \hline
\end{tabular}
\label{fig:FEETPercentage}
\caption{Percentage uniqueness of first 10 jobs distributed to clients}
\end{center}
\end{copyrightbox}

在您的文档中。

你必须改变copyrightbox环境才能table实现你的目标。

平均能量损失

\documentclass{sig-alternate}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{flushend}
\usepackage{pdfpages}
\usepackage{amsmath}
\usepackage{enumitem}

\begin{document}

\begin{table}
\centering
\begin{tabular}{| l | c | r | }
\hline
& Without BSDiff & With BSDiff \\ \hline \hline
Storage Space & 9.8mb & 60kb \\ \hline
Fuzzing Time (if no crash) & 1018s & 1105s \\
Creation Time & 63s & 1864s \\ \hline
Network transmission & 8.38s & 0.46s \\ \hline
\end{tabular}
\label{fig:FEETPercentage}
\caption{Percentage uniqueness of first 10 jobs distributed to clients}
\end{table}

\end{document} 

在此处输入图片描述

还请注意使用\centering代替\begin{center}...\end{center}

相关内容