\starttables에 대한 캡션

\starttables에 대한 캡션

캡션을 어떻게 넣을 수 있나요 \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

관련 정보