`nicematrix` tabularnotes,有没有办法水平地一个接一个地列出它们?

`nicematrix` tabularnotes,有没有办法水平地一个接一个地列出它们?

我想减少正在编写的报告中表格的空间,我希望使用 来添加表格脚注nicematrix。我知道使用enumitem带有inline类选项的包可以做到这一点,但这是全局的。我希望它只是本地的,使用nicematrix包环境NiceTabularX,请问该怎么做?

我熟悉其他方法,但不确定它们与 有何关系nicematrix。我在文档中找不到方法,如果这是重复的,请原谅,我找不到任何与 特别相关的nicematrix内容\tabularnote

外观:

在此处输入图片描述

梅威瑟:

\documentclass[oneside]{book}

\usepackage{booktabs}
\usepackage{nicematrix}
\usepackage{enumitem}

\begin{document}
\begin{NiceTabularX}{\textwidth}{cX}
\toprule
\textbf{Year} & \textbf{Important milestones or key achievements\tabularnote{Caption note} in enzyme design}\\ \midrule
1997 & First fully automated design and experimental\tabularnote{This is even more text for an example} \\ \addlinespace[0.1em]
2003 & First globular protein designed with a fold\tabularnote{Text here} not observed in nature\\ \addlinespace[0.1em]
2007-08 & Text here\tabularnote{Tabular note text}.\\ \addlinespace[0.1em]
\bottomrule
\end{NiceTabularX}
\end{document}

理想情况下,我希望脚注能够一个接一个地用我选择的 a;\hspace/标点符号分隔。

答案1

\documentclass[oneside]{book}

\usepackage{booktabs}
\usepackage{nicematrix}
\usepackage{enumitem}

\begin{document}

\NiceMatrixOptions
  {
    notes = 
     {
       para , 
       enumitem-keys-para = { itemjoin = \;;\; }
     }
  }

\begin{NiceTabularX}{\textwidth}{cX}
\toprule
\textbf{Year} & \textbf{Important milestones or key achievements\tabularnote{Caption note} in enzyme design}\\ \midrule
1997 & First fully automated design and experimental\tabularnote{This is even more text for an example} \\ \addlinespace[0.1em]
2003 & First globular protein designed with a fold\tabularnote{Text here} not observed in nature\\ \addlinespace[0.1em]
2007-08 & Text here\tabularnote{Tabular note text}.\\ \addlinespace[0.1em]
\bottomrule
\end{NiceTabularX}
\end{document}

上述代码的输出

相关内容