[NTG-context] \startnarrower and TABLEs

Wolfgang Schuster schuster.wolfgang at googlemail.com
Thu Sep 23 10:24:16 CEST 2010


Am 23.09.2010 um 10:14 schrieb Patrick Gundlach:

> Hi,
> 
> my goal is to make a table that is as wide as the current \startnarrower ... \stopnarrower part (thanks to the answer to this question on tex.stackexchange.com:  http://tex.stackexchange.com/q/3381/243 )
> 
> 
> ------------------------------------------------------------------------------------------
> \starttext
> \startnarrower
> 
> \input tufte

\startlinecorrection \dontleavehmode
\bTABLE[option=stretch,textwidth=\localhsize]

> \bTABLE[option=stretch]
> \bTR \bTD 2 \eTD \bTD 3 \eTD \eTR
> \bTR \bTD 2 \eTD \bTD 3 \eTD \eTR
> \eTABLE

\stoplinecorrection

> \stopnarrower
> 
> \stoptext
> ------------------------------------------------------------------------------------------
> 
> Can I make the table exactly as wide as the text?

Use the “textwidth” key but keep in mind with the linecorrection you can
use split tables, for tables which use indent from \startnarrower and
split across pages you can use tabulate.

Wolfgang



More information about the ntg-context mailing list