使用“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}

相關內容