表格中的腳註不起作用(ConText)

表格中的腳註不起作用(ConText)

我試圖在表標題中添加腳註,但腳註沒有出現。以下是一些顯示該問題的範例程式碼:

\starttext


This is a sentence.

This one has a footnote\footnote{a footnote}

\bTABLE
%
% IMPORTANT: use \bTH ... \eTH to enclose the head|next cells
\bTABLEhead
\bTR
\bTH   \eTH
\bTH  Difference\footnote{this footnote does not appear}\eTH
\eTR
\eTABLEhead

%
% the table body (main part)
%
\bTABLEbody
\bTR 
\bTD Exchange Rates \eTD 
\bTD 3.0\% \eTD 
\eTR 
\bTR 
\bTD Hedging Costs \eTD 
\bTD 2.1\% \eTD 
\eTR 

\eTABLEbody

\bTABLEfoot
\bTR 
\bTD Total \eTD 
\bTD xxx\% \eTD 
\eTR 
\eTABLEfoot

\eTABLE


\stoptext

我究竟做錯了什麼?

答案1

當您將腳註放入表格或框架(使用\framed或建立\startframedtext)中。您必須在環境/命令結束時手動刷新它們。

要刷新它們,您可以將表封閉在postponingnotes環境中

\starttext

Document\footnote{A note in the document}

\startpostponingnotes
\bTABLE
    \bTR
        \bTD
            Table\footnote{A note in the table}
        \eTD
    \eTR
\eTABLE
\stoppostponingnotes

\stoptext

或者當您有較舊的安裝時,您可以使用\postponenotes\flushnotes命令。

\starttext

Document\footnote{A note in the document}

\postponenotes
\bTABLE
    \bTR
        \bTD
            Table\footnote{A note in the table}
        \eTD
    \eTR
\eTABLE
\flushnotes

\stoptext

刷新表格中的註腳

答案2

可能需要將腳註放在表格附近,以防您將其放在浮動環境中。在這種情況下,您可以\start...\stoplocalfootnotes與 一起使用\placelocalfootnotes。為了清楚地區分本地腳註和其他文檔腳註,我將數字轉換為字元。

\setuppapersize[A6] % for this showcase only

\starttext

Document\footnote{A note in the document}

\startplacetable[title={Caption}]
  \startlocalfootnotes
    \setupnotation[footnote][numberconversion=characters]
    \bTABLE
      \bTR
        \bTD
          Table\footnote{A note in the table}
        \eTD
      \eTR
    \eTABLE
    \placelocalfootnotes
  \stoplocalfootnotes
\stopplacetable

Document\footnote{Another note in the document}

\stoptext

在此輸入影像描述

相關內容