.png)
Я пытаюсь вставить сноску в заголовок таблицы, но сноска не отображается. Ниже приведен пример кода, демонстрирующий проблему:
\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