キャプションの上の表の下に脚注を配置する

キャプションの上の表の下に脚注を配置する

footnoteを の下table、 の上に配置したいと思います。をcaption使用しているため、 を選択しましたが、表の下、キャプションの上に配置するオプションがありません。floatrow\floatfootfloatfoot

MWE:

\documentclass[12pt]{article}
\usepackage{floatrow}
\usepackage{caption}

\floatsetup[table]{footposition=bottom}
\captionsetup[table]{labelfont=bf}

\begin{document}

  \begin{table}

    \begin{tabular}{lr}
      Yellow & 3 \\
      Green & $k-3$ \\
    \end{tabular}

    \caption{Apples}
    \floatfoot{$k$ number of apples}

  \end{table}

\end{document}

答え1

次のように使用できます\RawCaption:

\documentclass[12pt]{article}
\usepackage{floatrow}
\usepackage{caption}

\captionsetup[table]{labelfont=bf}

\begin{document}

\begin{table}
\begin{tabular}{lr}
      Yellow & 3 \\
      Green & $k-3$ \\
\end{tabular}
\RawCaption{\caption*{\footnotesize$k$ number of apples}}
\caption{Apples}
\end{table}

\end{document}

または、必要な書式が設定された単純なテキスト行でもかまいません。

\documentclass[12pt]{article}
\usepackage{floatrow}
\usepackage{caption}

\captionsetup[table]{labelfont=bf}

\begin{document}

\begin{table}
\begin{tabular}{lr}
      Yellow & 3 \\
      Green & $k-3$ \\
\end{tabular}\par\medskip
{\footnotesize$k$ number of apples}
\caption{Apples}
\end{table}

\end{document}

答え2

その包み3つの部分から成るテーブルテーブルノートを提供し、おそらくあなたが望むことを実行するはずです。

\documentclass[12pt]{article}
\usepackage{floatrow}
\usepackage{caption}
\usepackage{threeparttable}

\floatsetup[table]{footposition=bottom}
\captionsetup[table]{labelfont=bf}

\begin{document}

\begin{table}
  \begin{threeparttable}[b]
  \caption{Apples}
    \begin{tabular}{lr}
      Yellow & 3 \\
      Green & $k-3$ \\
    \end{tabular}
    \begin{tablenotes}{\footnotesize
      \item [] $k$ number of apples
                      }
    \end{tablenotes}
  \end{threeparttable}
\end{table}

\end{document}

残念ながら、テーブルノートの幅はテーブル幅に制限されます。そのため、tabular*次のように固定のテーブル幅を定義することをお勧めします。

\begin{tabular*}{0.5\textwidth}{@{\extracolsep{\fill}}lr}
  ...
\end{tabular*}

関連情報