[NTG-context] xtables setup

Henning Hraban Ramm texml at fiee.net
Sun Jul 29 11:28:44 CEST 2018


Hello again,
I’m trying xtables for the first time.

Is it possible to setup defined rows/columns like with natural tables, e.g. for a header, like in my example?
The commented lines below are wrong. Is there another way?


\definextable[headtable] % table with repeated head

\setupxtable[headtable][
  option={stretch,width},
  frame=off,
  split=repeat,
  header=repeat,
]

% like in natural tables - doesn’t work...
%\setupxtable[headtable][r][first][topframe=on,before={\blank[small]}]
%\setupxtable[headtable][r][1][topframe=on,bottomframe=on,style={\ss\bf}]
%\setupxtable[headtable][r][last][bottomframe=on]

\starttext

\startxtable[headtable]
\startxtablehead
\startxrow
\startxcell Level \stopxcell\startxcell numbered \stopxcell\startxcell unnumbered \stopxcell
\stopxrow
\stopxtablehead
\startxtablebody
\startxrow\startxcell 0\stopxcell\startxcell part\stopxcell\startxcell —\stopxcell\stopxrow
\startxrow\startxcell 1\stopxcell\startxcell chapter\stopxcell\startxcell title\stopxcell\stopxrow
\startxrow\startxcell 2\stopxcell\startxcell section\stopxcell\startxcell subject\stopxcell\stopxrow
\startxrow\startxcell 3\stopxcell\startxcell subsection\stopxcell\startxcell subsubject\stopxcell\stopxrow
\startxrow\startxcell 4\stopxcell\startxcell subsubsection\stopxcell\startxcell subsubsubject\stopxcell\stopxrow
\stopxtablebody
\stopxtable

\stoptext



Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD



More information about the ntg-context mailing list