表格标题注释包括公式

表格标题注释包括公式

请问我想复制此表:

在此处输入图片描述

这里唯一的困难是表格的开头注释中包含一个方程式。有什么建议吗?

答案1

可以在table环境中使用普通文本。该文本也可能包含方程式。

\documentclass{article}

\usepackage{amsmath}

\begin{document}

\begin{table}[htbp]
\caption{caption text}
\centering
head note including an equation
\begin{equation*}
abc
\end{equation*}
more text

\begin{tabular}{cc}
a & c\\
b & d
\end{tabular}
\end{table}


\end{document}

答案2

您还可以在表格上方添加三行\toprule,用 跨越一行中的所有单元格\multicolumn,使用p-column 来放置文本。下面的 MWE 说明了这一点,即使文本和图形等不是来自您的表格。

\documentclass[a4paper,11pt]{article}
\usepackage{array, booktabs, amsmath}

\begin{document}
{\setlength{\extrarowheight}{2pt}
\centering\footnotesize
\begin{tabular}{@{}>{\centering}p{2cm}cccccccr@{}}
\multicolumn{9}{@{}p{15cm}@{}}{The multicolumn command makes an entry that spans several columns. The first mandatory argument, cols, specifies the number of columns to span. The second mandatory argument, pos, specifies the formatting of the entry; c for centered, l for flushleft, r for flushright. The third mandatory argument, text, specifies what text to put in the entry.} \\
\multicolumn{9}{@{}p{15cm}@{}}{\begin{equation*}[i\delta, 1/2\sqrt{3}+i(1+2\delta)/2]\, \text{and}\, [i(1+\delta), 1/2\sqrt{3}+i(1+2\delta)/2\end{equation*}}\\
\multicolumn{9}{@{}p{15cm}@{}}{The multicolumn command makes an entry that spans several columns. The first mandatory argument, cols, specifies the number of columns to span. The second mandatory argument, pos, specifies the formatting of the entry; c for centered, l for flushleft, r for flushright. The third mandatory argument, text, specifies what text to put in the entry.The multicolumn command makes an entry that spans several columns. The first mandatory argument, cols, specifies the number of columns to span. The second mandatory argument, pos, specifies the formatting of the entry; c for centered, l for flushleft, r for flushright. The third mandatory argument, text, specifies what text to put in the entry.}\\
\toprule
Hours of incubation  & pH\,5.0 & pH\,6.0 & pH\,7.0 & pH\,7.5 & pH\,8.0 & pH\,8.5 & pH\,9.0 & pH\,10\\\midrule
12 & 0.00 & 0.0238 & 0.4036 & 0.4397 & 0.4493 & 0.4349 & 0.3191 & 0.005 \\
24  &   0.00  &     0.1319 &    1.7929 &    1.8368 &    1.8629 &    1.8032 &    1.4087 &    0.035\\\bottomrule
\end{tabular}
}
\end{document}

在此处输入图片描述

相关内容