[Latex] 表中の脚注の使い方

Latex テーブル セルではサポートされていません\footnote

表で使用すると\footnote、脚注がまったく表示されないか、カウントエラーなどの問題が発生します。要するに非常に面倒です。

ソリューション戦略

多くの情報を収集した後、著者は「完璧な」解決策を見つけられませんでした。非常に単純な方法で効果を「シミュレート」することしかできません\footnote

使い方をtabularray例にとると、自分たちで\footnotemark足し算するしかない\footnotetext

以下は、比較的単純な脚注を追加するだけです。

\usepackage{
    
    xcolor}
\usepackage[vmargin=99mm]{
    
    geometry}

\usepackage{
    
    tabularray}
\UseTblrLibrary{
    
    amsmath, booktabs, counter}
\usepackage{
    
    hyperref}

\begin{
    
    document}
Blabla \footnote{
    
    First note}
Blabla \footnote{
    
    Second note}


\begin{
    
    table}[ht]
  \centering
  \begin{
    
    tblr}{
    
    
      colspec={
    
    c},
    }%,
    \toprule
    Related Works\\
    \hline[.6pt,white]
    Blabla\footnotemark{
    
    }\\ % 自己加上\footnotemark
    \bottomrule
  \end{
    
    tblr}
  \caption{
    
    My caption}
  \label{
    
    tab:comparisonRelatedWorks}
\end{
    
    table}
\footnotetext{
    
    Footnote in table.} % 在table环境之外,补上内容

Blabla \footnote{
    
    Last note}
\end{
    
    document}

同じ表で複数の脚注を使用する場合は、それらを自分で数える必要があります

\documentclass{
    
    scrartcl}
\begin{
    
    document}    
before

\begin{
    
    tabular}{
    
    l}
Content\footnotemark\\
Content continued\footnotemark\\
Content continued further\footnotemark
\end{
    
    tabular}
\addtocounter{
    
    footnote}{
    
    -2} % 需要自己计数,-x需要根据自己的上下文确定
\footnotetext[1]{
    
    Footnote} % 也可以在\footnotetext中自己传入参数(如左,1),指定序号,但是不推荐
\addtocounter{
    
    footnote}{
    
    1} % 自己计数+1
\footnotetext{
    
    Second footnote}
\addtocounter{
    
    footnote}{
    
    1}
\footnotetext{
    
    Third footnote}

after
\end{
    
    document}

著者は、 ; などの他のサードパーティ パッケージや 、;tablefootnoteなどの他のテーブル環境も試しましたがthreeparttable、すべて失敗に終わりました。talltblrしたがって、ここではお勧めしません。

参考:

おすすめ

転載: blog.csdn.net/weixin_43301333/article/details/130456310