[NTG-context] How to achieve a LaTeX-center-like thing

2011-09-06 Thread Marcin Borkowski
Hi,

I'd like to have something like this:

  Let $X$ be a~real Banach space, $D$~an open subset of~$X$
  containing~$0$ and $T$ a~continuous mapping from $\overbar{D}$
  to~$X$.  We say that $T$ satisfies the {\em Mönch condition} if the
  following implication holds:
  \blank[small]
  \startalignment[middle]
If $C\subset\overbar{D}$ is countable and
$C\subset\clconv\bigl(\{0\}\cup F(C)\bigr)$, then
$\overbar{C}$ is compact.
  \stopalignment
  \blank[small]

Is there any option for alignment which would enable me not to put the
blanks manually?

TIA,

-- 
Marcin Borkowski
http://mbork.pl

___
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
___

Re: [NTG-context] How to achieve a LaTeX-center-like thing

2011-09-06 Thread Wolfgang Schuster

Am 06.09.2011 um 12:19 schrieb Marcin Borkowski:

 Hi,
 
 I'd like to have something like this:
 
  Let $X$ be a~real Banach space, $D$~an open subset of~$X$
  containing~$0$ and $T$ a~continuous mapping from $\overbar{D}$
  to~$X$.  We say that $T$ satisfies the {\em Mönch condition} if the
  following implication holds:
  \blank[small]
  \startalignment[middle]
If $C\subset\overbar{D}$ is countable and
$C\subset\clconv\bigl(\{0\}\cup F(C)\bigr)$, then
$\overbar{C}$ is compact.
  \stopalignment
  \blank[small]
 
 Is there any option for alignment which would enable me not to put the
 blanks manually?

\definestartstop
  [centered]
  [before={\blank[small]},
   after={\blank[small]},
   commands={\setupalign[middle]}]

\starttext

…

\startcentered
…
\stopcentered

…

\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
___