我不知道为什么表格标题这么窄
代码如下
\begin{table}[!t]
\centering
\small
\caption{\textbf{Main characteristics of the simulated system.} The latencies assume 45nm process at 2.5GHz.}
\label{sim-param}
\begin{tabular}{p{0.75in}p{2.6in}}
\hline
Processor & UltraSPARC-III ISA, 8-stage pipeline, out of order, 4-wide dispatch/retirement, 96-entry ROB, 32-entry LSQ, 16-entry store buffer, 2.5GHz, 45nm \\
L1 caches & Split I/D, 64KB private, 2-way, 64B, LRU, write-through, 2-cycle hit latency, 32-entry MSHR\\
L2 cache & 8MB shared, unified, non-inclusive, 8-way, 64B, LRU, write-back, 10-cycle hit latency, 64-entry MSHR (instruction and data)\\
Main memory & 64GB, 60ns access latency, 4 memory controllers \\
\hline
\end{tabular}
\end{table}
并且包和头文件是
\documentclass[prodmode,acmtecs]{acmsmall} % Aptara syntax
% Package to generate and customize Algorithm as per ACM style
\usepackage[ruled]{algorithm2e}
\renewcommand{\algorithmcfname}{ALGORITHM}
\SetAlFnt{\small}
\SetAlCapFnt{\small}
\SetAlCapNameFnt{\small}
\SetAlCapHSkip{0pt}
\IncMargin{-\parindent}
% Metadata Information
\acmVolume{9}
\acmNumber{4}
\acmArticle{39}
\acmYear{2010}
\acmMonth{3}
答案1
文档类有自己的方法,通过语法命令acmsmall
来构建表格材料\tbl
\tbl{<caption>}{<the table itself>}
(请参阅第4.2. 表格PDF 文档(包含类和相关示例文件的文件acmsmall-guide
中附带的文档)。.zip
带有表格的完整示例:
\documentclass[prodmode,acmtecs]{acmsmall} % Aptara syntax
% Package to generate and customize Algorithm as per ACM style
\usepackage[ruled]{algorithm2e}
\renewcommand{\algorithmcfname}{ALGORITHM}
\SetAlFnt{\small}
\SetAlCapFnt{\small}
\SetAlCapNameFnt{\small}
\SetAlCapHSkip{0pt}
\IncMargin{-\parindent}
% Metadata Information
\acmVolume{9}
\acmNumber{4}
\acmArticle{39}
\acmYear{2010}
\acmMonth{3}
\begin{document}
\begin{table}[!t]
\tbl{\textbf{Main characteristics of the simulated system.} The latencies assume 45nm process at 2.5GHz.\label{sim-param}}
{\begin{tabular}{p{0.75in}p{2.6in}}
\hline
Processor & UltraSPARC-III ISA, 8-stage pipeline, out of order, 4-wide dispatch/retirement, 96-entry ROB, 32-entry LSQ, 16-entry store buffer, 2.5GHz, 45nm \\
L1 caches & Split I/D, 64KB private, 2-way, 64B, LRU, write-through, 2-cycle hit latency, 32-entry MSHR\\
L2 cache & 8MB shared, unified, non-inclusive, 8-way, 64B, LRU, write-back, 10-cycle hit latency, 64-entry MSHR (instruction and data)\\
Main memory & 64GB, 60ns access latency, 4 memory controllers \\
\hline
\end{tabular}}
\end{table}
\end{document}
结果:
使用booktabs
包中,你会得到改进的表格:
\documentclass[prodmode,acmtecs]{acmsmall} % Aptara syntax
% Package to generate and customize Algorithm as per ACM style
\usepackage[ruled]{algorithm2e}
\usepackage{booktabs}
\renewcommand{\algorithmcfname}{ALGORITHM}
\SetAlFnt{\small}
\SetAlCapFnt{\small}
\SetAlCapNameFnt{\small}
\SetAlCapHSkip{0pt}
\IncMargin{-\parindent}
% Metadata Information
\acmVolume{9}
\acmNumber{4}
\acmArticle{39}
\acmYear{2010}
\acmMonth{3}
\begin{document}
\begin{table}
\tbl{\textbf{Main characteristics of the simulated system.} The latencies assume 45nm process at 2.5GHz.\label{sim-param}}
{\begin{tabular}{p{0.75in}p{2.6in}}
\toprule
Processor & UltraSPARC-III ISA, 8-stage pipeline, out of order, 4-wide dispatch/retirement, 96-entry ROB, 32-entry LSQ, 16-entry store buffer, 2.5GHz, 45nm \\
L1 caches & Split I/D, 64KB private, 2-way, 64B, LRU, write-through, 2-cycle hit latency, 32-entry MSHR\\
L2 cache & 8MB shared, unified, non-inclusive, 8-way, 64B, LRU, write-back, 10-cycle hit latency, 64-entry MSHR (instruction and data)\\
Main memory & 64GB, 60ns access latency, 4 memory controllers \\
\bottomrule
\end{tabular}}
\end{table}
\end{document}