我正在尝试将分子结构 (chemfig) 放置在如图所示的表格中。但是,即使使用多行 (参见 MWE),该结构也会占用下一行的垂直空间。如何将结构放置在表格中,使其在单元格中整齐对齐?
平均能量损失
\documentclass[onecolumn, 12 pt, doublespace, fullpage, letterpaper]{report}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{threeparttablex}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{siunitx}
\usepackage[table]{xcolor}
\usepackage{chemfig}
\begin{document}
\begin{table}[H]
\centering
\begin{threeparttable}
\caption{Fuel properties of $iso$-cetane}
\label{tab:ap_fuel_property_iso_cetane}
\begin{tabularx}{1.0\textwidth}{lcc}
\toprule
Test & Result & Method \\
\toprule
\multirow{2}{*}{Chemical structure} & &
\multirow{2}{*}
{
\begin{minipage}{0.33\textwidth}
\setbondstyle{line width=1pt}\chemfig{
% 1
-[:270,0.75]% 2
(
-[:210,0.75]% 3
-[:150,0.75]% 4
(
-[:210,0.75]% 6
)
(
-[:150,0.75]% 7
)
-[:90,0.75]% 5
)
-[:330,0.75]% 8
-[:30,0.75]% 9
(
-[:112.5,0.75]% 10
)
(
-[:67.5,0.75]% 11
)
-[:330,0.75]% 12
-[:30,0.75]% 13
(
-[:90,0.75]% 14
)
(
-[:30,0.75]% 16
)
-[:330,0.75]% 15
}
\end{minipage}
} \\
& & \\
Molecular weight [\si{\kilogram\per\mol}] & 114.2 & \\
Density [\si{\kilogram\per\cubic\metre}] & 690 & \\
\bottomrule
\end{tabularx}
\end{threeparttable}
\end{table}
\end{document}
答案1
这是你想要的吗?不multirow
– 一个简单的\addlinespace
。我还加载了caption
包,以便在上面的标题和表格之间留出适当的间距:
\documentclass[onecolumn, 12 pt, doublespace, fullpage, letterpaper]{report}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{threeparttablex}
\usepackage{multirow, caption}
\usepackage{multicol}
\usepackage{siunitx}
\usepackage[table]{xcolor}
\usepackage{chemfig}
\begin{document}
\begin{table}[!h]
\centering
\begin{threeparttable}
\caption{Fuel properties of $iso$-cetane}
\label{tab:ap_fuel_property_iso_cetane}
\begin{tabularx}{1.0\textwidth}{lcc}
\toprule
Test & Result & Method \\
\toprule
Chemical structure & &
\begin{minipage}{0.33\textwidth}
\setbondstyle{line width=1pt}\chemfig{
% 1
-[:270,0.75]% 2
(
-[:210,0.75]% 3
-[:150,0.75]% 4
(
-[:210,0.75]% 6
)
(
-[:150,0.75]% 7
)
-[:90,0.75]% 5
)
-[:330,0.75]% 8
-[:30,0.75]% 9
(
-[:112.5,0.75]% 10
)
(
-[:67.5,0.75]% 11
)
-[:330,0.75]% 12
-[:30,0.75]% 13
(
-[:90,0.75]% 14
)
(
-[:30,0.75]% 16
)
-[:330,0.75]% 15
}
\end{minipage}
\\
\addlinespace
Molecular weight [\si{\kg\per\mol}] & 114.2 & \\
Density [\si{\kilogram\per\cubic\m}] & 690 & \\
\bottomrule
\end{tabularx}
\end{threeparttable}
\end{table}
\end{document}