Threeparttable 标题和 addfontfeatures

Threeparttable 标题和 addfontfeatures

考虑以下 MWE,它尝试默认使用旧式图形(应使用衬线图形的表格除外),并与包结合使用threeparttable

\documentclass{article}
\usepackage{fontspec}
\setmainfont[Numbers={Proportional, OldStyle}]{Latin Modern Roman}
\usepackage{threeparttable}

\begin{document} 
 \begin{table}
  \caption{I am a long caption to illustrate the purpose of a three 
           part table}
  \addfontfeature{Numbers={Monospaced, Lining}}
  \begin{tabular}{rrrrrrrr} 
   $m$ &    2 &    3 &    5 &   10 &   15 &   30 & 100  \\
  \end{tabular}
 \end{table}

 \begin{table}
  \begin{threeparttable}
   \caption{I am a long caption to illustrate the purpose of a three 
            part table.}
   \addfontfeature{Numbers={Monospaced, Lining}}
   \begin{tabular}{rrrrrrrr} 
    $m$ &    2 &    3 &    5 &   10 &   15 &   30 & 100  \\
   \end{tabular}
  \end{threeparttable}
 \end{table}
\end{document}

在第一种情况下,一切都符合预期:标题中的表格编号是旧式,而表格中的数字是行号。但是,对于三部分变体,标题中的表格编号不是旧式。这里有简单的解决方案吗?

相关内容