
Wie kann ich eine Überschrift einfügen \starttables
? Ich verwende Context, um eine PDF-Datei mit Überschriften über Tabellen zu generieren, die automatisch nummeriert werden sollen.
Ich habe es versucht \placetable
, aber ohne Erfolg. Außerdem kann ich nur verwenden \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
Antwort1
Die korrekte Syntax in ConTeXt ist
\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