我如何为 加标题\starttables
?我正在使用上下文来生成一个 PDF,其中标题位于表格顶部,表格将自动编号。
我尝试过\placetable
,但没有成功。此外,我只能使用\starttables
。
\placetable{Validation Migration (TAF-69)}
\starttablehead
\HL
\NC Req. Id
\NC Description
\NC Test Scenario
\NC Result
\NC\AR
\HL
\stoptablehead
\starttabletail
\HL
\stoptabletail
\starttables
\NC TAF-89
\NC Trigger test start - from jig
\NC
\NC Unavailable
\NC\AR
\NC TAF-88
\NC Trigger test start - using scanner
\NC
\NC Unavailable
\NC\AR
\stoptables
答案1
ConTeXt 中的正确语法是
\placefloat[<place>][<reference>]{<caption>}{<float body>}
\setupbodyfont[plr,11pt]
\enableregime[utf]
\starttext
\placetable{Validation Migration (TAF-69)}{%
\starttablehead
\HL
\NC Req. Id \NC Description \NC Test Scenario \NC Result
\AR
\HL
\stoptablehead
\starttables[|l|l|l|l|]
\AR
\NC TAF-89 \NC Trigger test start - from jig \NC \NC Unavailable\MR
\NC TAF-88 \NC Trigger test start - using scanner \NC \NC Unavailable\MR
\stoptables
}
\stoptext