ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* keeping TABLE in hmode
@ 2014-08-21 19:55 Idris Samawi Hamid ادريس سماوي حامد
  2014-08-22  4:29 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2014-08-21 19:55 UTC (permalink / raw)
  To: ntg-context

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

Best wishes
Idris
-- 
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: keeping TABLE in hmode
  2014-08-21 19:55 keeping TABLE in hmode Idris Samawi Hamid ادريس سماوي حامد
@ 2014-08-22  4:29 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2014-08-22  4:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 21.08.2014 um 21:55 schrieb Idris Samawi Hamid ادريس سماوي حامد <ishamid@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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-22  4:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-21 19:55 keeping TABLE in hmode Idris Samawi Hamid ادريس سماوي حامد
2014-08-22  4:29 ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).