使用“subdepth”时,表格注释中的垂直空间不均匀

使用“subdepth”时,表格注释中的垂直空间不均匀

当使用subdepth美观的公式时,表格注释threeparttable会变得混乱。有没有什么办法能让表格注释中的项目之间垂直间距均匀?尝试过使用,\usepackage[low-sup]{subdepth}但效果不佳。

梅威瑟:

\documentclass{article}
\usepackage{threeparttable}
\usepackage{subdepth}
\begin{document}
\begin{equation}
    A = \frac{\left(\phi+\epsilon_A^\prime\right)-\epsilon_A}{\left(1+\epsilon_A^\prime\right)-\epsilon_A}
\end{equation}
\begin{table}[htbp]
  \caption{}
    \label{tableA}
    \centering
    \begin{threeparttable}
    \begin{tabular}{ll}
\hline
Name    & Value \\
\hline
TestA\tnote{a} & 1000000000000000000000000 \\
TestB & 10 \\
TestC & 10 \\
TestD & 10 \\
\hline
  \end{tabular}
    \footnotesize   
    \begin{tablenotes}
        \item[a]{Salinity data from somewhere}
        \item[b]{Chemical product sheet}
        \item[c]{Standard density of water}
        \item[d]{Calculated value}
    \end{tablenotes}
    \end{threeparttable}
\end{table}
\begin{table}[htbp]
  \caption{}
    \label{tableB}
    \centering
    \begin{threeparttable}
    \begin{tabular}{ll}
\hline
Name    & Value \\
\hline
TestA\tnote{a} & 1000000000000000000000000 \\
TestB & 10 \\
TestC & 10 \\
TestD & 10 \\
\hline
  \end{tabular}
    \footnotesize   
    \begin{tablenotes}
        \item[a]{Salinity data from somewhere}
        \item[a]{Chemical product sheet}
        \item[a]{Standard density of water}
        \item[a]{Calculated value}
    \end{tablenotes}
    \end{threeparttable}
\end{table}
\end{document}

答案1

在@egreg 和@Bernard 的帮助下,我自己找到了一个解决方案。使用 或\vphantom{b}\smash{a-b-c-d}可以使项目垂直对齐。请注意,我在表注中添加了一些水平空间以使文本正确对齐。

\documentclass{article}
\usepackage{threeparttable}
\usepackage{subdepth}
\begin{document}
\begin{equation}
    A = \frac{\left(\phi+\epsilon_A^\prime\right)-\epsilon_A}{\left(1+\epsilon_A^\prime\right)-\epsilon_A}
\end{equation}
\begin{table}[htbp]
  \caption{$\backslash$vphantom\{b\}}
    \label{tableA}
    \centering
    \begin{threeparttable}
    \begin{tabular}{ll}
\hline
Name    & Value \\
\hline
TestA\tnote{a} & 1000000000000000000000000 \\
TestB\tnote{b} & 10 \\
TestC\tnote{c} & 10 \\
TestD\tnote{d} & 10 \\
\hline
  \end{tabular}
    \footnotesize   
    \begin{tablenotes}
        \item[\vphantom{b}a]{\hspace{0.3pt}Salinity data from somewhere}
        \item[\vphantom{b}b]{\hspace{-.3pt}Chemical product sheet}
        \item[\vphantom{b}c]{\hspace{0.3pt}Standard density of water}
        \item[\vphantom{b}d]{\hspace{-.3pt}Calculated value}
    \end{tablenotes}
    \end{threeparttable}
\end{table}
\begin{table}[htbp]
  \caption{$\backslash$smash\{a-b-c-d\}}
    \label{tableB}
    \centering
    \begin{threeparttable}
    \begin{tabular}{ll}
\hline
Name    & Value \\
\hline
TestA\tnote{a} & 1000000000000000000000000 \\
TestB\tnote{b} & 10 \\
TestC\tnote{c} & 10 \\
TestD\tnote{d} & 10 \\
\hline
  \end{tabular}
    \footnotesize   
    \begin{tablenotes}
        \item[\smash{a}]{\hspace{0.3pt}Salinity data from somewhere}
        \item[\smash{b}]{\hspace{-.3pt}Chemical product sheet}
        \item[\smash{c}]{\hspace{0.3pt}Standard density of water}
        \item[\smash{d}]{\hspace{-.3pt}Calculated value}
    \end{tablenotes}
    \end{threeparttable}
\end{table}
\end{document}

相关内容