.png)
私は、threeparttable
およびtablenotes
パッケージを使用して、表の脚注を作成しています。必要なデザイン (上付き文字ではなく、ぶら下がり記号) を得るには、para
従来の構文を使用するのではなく、オプションを使用して手動で脚注を打ち込むだけでよいことがわかりました\item[]
。ただし、この方法では、記号とテキストの間に奇妙なスペースが生じます (中括弧で囲んだり、非常に短いテキスト行を使用したりしても)。脚注を で囲むとmbox
問題は解決しますが、テキストが表の幅を超えてしまいます。 で囲んでpbox
も問題は解決しません。
なぜこのようなことが起こるのか、また、どんな簡単な解決策があるのか興味があります。説明については、以下の画像とコードを参照してください。
ムウェ
\documentclass{scrartcl}
\usepackage{booktabs}
\usepackage[para]{threeparttable}
\usepackage{tablefootnote}
\renewcommand{\TPTnoteSettings}{\footnotesize}
\newcommand{\tabfnote}[2]{\llap{#1. }#2}
\begin{document}
\begin{table}[tbph]
\begin{threeparttable}[t]
\begin{tabular}{ll} \toprule
Alpha & Beta \\
Gamma & Delta \\ \bottomrule
\end{tabular}
\begin{tablenotes}
\tabfnote{a}{Why is there space above?}\\
\tabfnote{b}{But not above this one...}\\
\tabfnote{c}{Or this one}
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}
答え1
vertical mode
の冒頭で何かが起きますがtablenotes
、これはよくわかりません。しかし、\leavevmode
の定義の冒頭にを追加すると\tabfnote
問題は解決します。
\documentclass{scrartcl}
\usepackage{booktabs}
\usepackage[para]{threeparttable}
\usepackage{tablefootnote}
\renewcommand{\TPTnoteSettings}{\footnotesize}
\newcommand{\tabfnote}[2]{\leavevmode\llap{#1. }#2}
\begin{document}
\begin{table}[tbph]
\begin{threeparttable}[t]
\begin{tabular}{ll} \toprule
Alpha & Beta \\
Gamma & Delta \\ \bottomrule
\end{tabular}
\begin{tablenotes}
\tabfnote{a}{Why is there space above?}\\
\tabfnote{b}{But not above this one...}\\
\tabfnote{c}{Or this one}
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}