我需要\footnote
在tabulation
环境中包含一个。我改编了 ConTeXt wiki 中的示例,但在编译时,\starttabulatehead
和之间的内容\stoptabulatehead
没有显示,并且内容显示为左对齐:
\starttext
\placetable[here]{Tabla.}
{\startlocalfootnotes\placelegend
{\starttabulatehead
\NC A \NC B \SR
\stoptabulatehead}
{\starttabulate[|l|l|]
\NC C\footnote{Nota al pie.} \NC D \NR
\stoptabulate}
{\placelocalfootnotes}
\stoplocalfootnotes}
\stoptext
我是不是漏掉了什么?谢谢!
答案1
下面应该可以做你想做的事:
\starttext
\startplacetable [title=Tabla]
\startlocalfootnotes
\starttabulatehead
\NC A \NC B \SR
\stoptabulatehead
\starttabulate[|l|l|]
\NC C \footnote{Nota al pie.} \NC D \NR
\stoptabulate
\placelocalfootnotes
\stoplocalfootnotes
\stopplacetable
\stoptext
为了防止表格浮动,请添加选项location=here
。如果您希望表格居中,请使用\midaligned
:
\startplacetable [title=Tabla, location=here]
\startlocalfootnotes
\starttabulatehead
\NC A \NC B \SR
\stoptabulatehead
\midaligned{\vbox{%
\starttabulate[|l|l|]
\NC C \footnote{Nota al pie.} \NC D \NR
\stoptabulate}}
\midaligned{\placelocalfootnotes}
\stoplocalfootnotes
\stopplacetable
编辑:
正如 Aditya 在评论中提到的,比此更好的解决方案
\midaligned
是使用新的图例机制。下面是一个例子:
\startplacetable [title=Tabla]
\startlocalfootnotes
\starttabulatehead
\NC A \NC B \SR
\stoptabulatehead
\startplacelegend [location=top] %% default is bottom
\startcontent
\vbox\bgroup
\starttabulate[|l|l|]
\NC C \footnote{Nota al pie.} \NC D \NR
\stoptabulate
\egroup
\stopcontent
\startcaption
\placelocalfootnotes
\stopcaption
\stopplacelegend
\stoplocalfootnotes
\stopplacetable