[NTG-context] Centering tabulate env. using \setuptabulate

Robert Zydenbos context at zydenbos.net
Wed May 28 10:46:04 CEST 2014


On May 27, 2014, at 15:37 , Wolfgang Schuster <schuster.wolfgang at gmail.com> wrote:

>> Is there also an equivalent of \placetable for use with Natural Tables?
> 
> You can use \placetable for all table environments.

Thank you!

Now another one:

(a) I want to create a table using 'p' cells that does not use the full width of the paper
(b) it is a long table, crossing a page end
(c) the whole table should be centered

I tried the source below and obviously made a mistake somewhere.

Any suggestions?

Robert

Test source:

\starttext

\input knuth

\setuptabulate[split=yes]

\midaligned { %%% <-- THIS DOES NOT WORK -- it does not center the entire table
\starttabulate [|p(.5\textwidth)|p(.2\textwidth)|]
\dorecurse{4}{
\NC 
Nu laat ik je iets zien in een tabel, die met tabulate gemaakt is. \NC Het is overigens maar een experiment, maar we zullen zien wat er gebeurt. {\bf And I want all this to be centered.} \NC \NR
\NR
\NC Als dit werkt, dan gaan we heel fanatiek hiermee verder. \NC Dan gaan we allerlei prachtige zaken in ConTeXt zetten, met XeTeX. \NC \NR
\NR
} % end of \dorecurse
\stoptabulate
} % end of \midaligned

\stoptext



More information about the ntg-context mailing list