[NTG-context] keeping TABLE in hmode

Wolfgang Schuster schuster.wolfgang at gmail.com
Fri Aug 22 06:29:11 CEST 2014


Am 21.08.2014 um 21:55 schrieb Idris Samawi Hamid ادريس سماوي حامد <ishamid at colostate.edu>:

> Dear gang,
> 
> Is there a way to configure \bTABLE-\eTABLE so that it always in hmode? Right now I have things like
> 
> \startalignment[middle]
> \dontleavehmode
> \bTABLE
> \bTR
> ::
> \eTR
> \eTABLE
> 
> \dontleavehmode
> \bTABLE
> \bTR
> ::
> \eTR
> \eTABLE
> 
> \dontleavehmode
> \bTABLE
> \bTR
> ::
> \eTR
> \eTABLE
> \stopalignment
> 
> Will have dozens and dozens of these; and don't wish to have to keep typing '\dontleavehmode' over and over... Thanks in advance and


There is no option to force horizontal mode at the begin of the table but you can use the following two methods to center the table.

\startbuffer
\bTABLE
  \bTR
    \bTD text \eTD
	\bTD text \eTD
  \eTR
\eTABLE
\stopbuffer
 
\starttext

\startlinealignment[middle]
  \getbuffer
\stoplinealignment

\startplacetable[location={none,force}]
  \getbuffer
\stopplacetable

\stoptext

Wolfgang


More information about the ntg-context mailing list