长表中有更多 chemfig 行空间

长表中有更多 chemfig 行空间

我想在我的论文中概述几种分子及其名称。我需要一张长表,因为它们的数量相当多。问题是 chemfig 绘制的 Tikz 对齐,分子之间没有空间(参见 MWE)。我试过了,\renewcommand{\arraystretch}{3.0}但显然它对我的行空间没有影响。我还发现了这个包含 chemfig 图表的表格中的垂直对齐但是中间规则总是为我创建垂直 brs,我不希望我的表中出现这种情况。任何帮助或建议都值得赞赏

  \documentclass{article}
  %%%%%%%%%%%%%%%%%% From my University Template
\usepackage{array} 
\usepackage{booktabs}
\usepackage{threeparttable} %makes your tables look nicer, see example
\usepackage{dcolumn} %decimal alignment of tables
    \newcolumntype{d}{D{.}{.}{-1}} % centers the decimal points in column
    \newcolumntype{s}{D{.}{.}{2}} % optimized for 2 decimal points
%%%%%%%%%%%%%%%%%%%%

 \usepackage{multirow}  
 \usepackage{chemfig}
 \usepackage{tikz}
 %Longtable
 \usepackage{tabularx}
 \usepackage{ltablex} 
 \usepackage{longtable}





 \begin{document}



 \begingroup
 \renewcommand{\arraystretch}{3.0}
 \begin{longtable}{ m{.30\textwidth} m{.70\textwidth} }
 \caption{Your caption here} 
  \label{tab:myfirstlongtable} \\
  Molecule Name & Molecule Structure \\
  \hline
  \endhead 

  Benzene & \chemfig{*6(=-=-=-)}    \\

  n-Butylbenzene & \chemfig{*6(=-=( -[:30]-[:330]-[:30]-[:330])-=-)} \\



  \bottomrule
   \end{longtable}
   \endgroup

   \end{document}

答案1

使用可选参数\addlinespace

 \documentclass{article}
  %%%%%%%%%%%%%%%%%% From my University Template
\usepackage{array}
\usepackage{booktabs}
\usepackage{threeparttable} %makes your tables look nicer, see example
\usepackage{dcolumn} %decimal alignment of tables
    \newcolumntype{d}{D{.}{.}{-1}} % centers the decimal points in column
    \newcolumntype{s}{D{.}{.}{2}} % optimized for 2 decimal points
%%%%%%%%%%%%%%%%%%%%

 \usepackage{multirow}
 \usepackage{chemfig}
 \usepackage{tikz}
 %Longtable
 \usepackage{ltablexl}

 \begin{document}

 \begin{longtable}{ m{.30\textwidth} m{.70\textwidth}}
 \caption{Your caption here}
  \label{tab:myfirstlongtable} \\
  Molecule Name & Molecule Structure \\
  \midrule
  \endhead
\addlinespace
  Benzene & \chemfig{*6(=-=-=-)} \\
\addlinespace[2ex]
  n-Butylbenzene & \chemfig{*6(=-=( -[:30]-[:330]-[:30]-[:330])-=-)} \\
\addlinespace
  \bottomrule
   \end{longtable}

   \end{document} 

在此处输入图片描述

相关内容