.png)
Estou tentando colocar uma nota de rodapé no cabeçalho de uma tabela, mas a nota de rodapé não aparece. Abaixo está um exemplo de código que mostra o problema:
\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
O que estou fazendo de errado?
Responder1
Quando você coloca uma nota de rodapé em uma tabela ou quadro (criado com \framed
ou \startframedtext
). você deve liberá-los manualmente no final do ambiente/comando.
Para liberá-los, você pode colocar a mesa em um postponingnotes
ambiente
\starttext
Document\footnote{A note in the document}
\startpostponingnotes
\bTABLE
\bTR
\bTD
Table\footnote{A note in the table}
\eTD
\eTR
\eTABLE
\stoppostponingnotes
\stoptext
ou quando você tiver uma instalação mais antiga, poderá usar os comandos \postponenotes
e .\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
Responder2
Pode ser desejável manter a nota de rodapé perto da tabela caso você a coloque em um ambiente flutuante. Neste caso você pode usar \start...\stoplocalfootnotes
junto com \placelocalfootnotes
. Para distinguir claramente as notas de rodapé locais das outras notas de rodapé do documento, defini a conversão de números para caracteres.
\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