答案1
使用单个\caption
指令、两个tabular
环境以及\multicolumn
指令为两个环境中的每一个提供标题tabular
。
\documentclass{article}
\usepackage{booktabs}
\usepackage[margin=2.5cm]{geometry}
\usepackage{caption}
\captionsetup{font=bf,labelsep=newline,skip=0.25\baselineskip}
\begin{document}
\begin{table}
\caption{Market Data for the Zero Curve Construction}
{\centering (for December 18, 2007)\par}
\bigskip
\begin{tabular}{@{}cccc@{}}
\multicolumn{4}{@{}l}{\em(a) Libor Spot Rate Information}\\
\toprule
Term & Maturity & Days & Rate (\%)\\
\midrule
\dots \\
\bottomrule
\end{tabular}
\bigskip\bigskip
\begin{tabular}{@{}*{10}{c}@{}}
\multicolumn{10}{@{}l}{\em(b) Eurodollar Futures Information}\\
\toprule
Contract & Price & Start Date & Days & End Date & Days & Days & Futures & Convexity & Forward \\
& & & ($T1$) & & ($T2$) & ($T2{-}T1$) & Rate (\%) & Adjustment & Rate (\%) \\
\midrule
\dots \\
\bottomrule
\end{tabular}
\end{table}
\end{document}
答案2
subcaption
这是使用(和)的一个版本booktabs
。有关标题格式的更多信息,请查看caption
软件包的文档。
\documentclass{article}
\usepackage{subcaption}
\usepackage{booktabs}
\begin{document}
\begin{table}
\caption{General}
\begin{subtable}{\linewidth}
\caption{Something}
\begin{tabular}{ll}
\toprule Quack? & Quack!\\\midrule
Quack 1 & Quack 2\\
Quack 3 & Quack 4\\\bottomrule
\end{tabular}
\end{subtable}\par
\begin{subtable}{\linewidth}
\caption{Something else}
\begin{tabular}{ll}
\toprule Quack? & Quack!\\\midrule
Quack 1 & Quack 2\\
Quack 3 & Quack 4\\\bottomrule
\end{tabular}
\end{subtable}
\end{table}
\end{document}