# [NTG-context] typing midaligned

Peter Münster pmlists at free.fr
Fri May 5 18:03:05 CEST 2006

Hello,
such things are really easy and straightforward with LaTeX (parbox and
minipage), but with ConTeXt I have still a lot of difficulties. This is
what I do to align some typing in the middle:

\starttext
\input tufte

\setuptyping[before=\vskip-\lineheight,after=\vskip-0.13\lineheight]
\startalignment[middle]
\dontleavehmode
\framed[align=lohi,frame=off]{%
\starttyping
bla bla bla
bla bla bla bla bla bla bla bla bla
\stoptyping
}
\stopalignment
\input tufte
\stoptext

The result is correct, but can't this be done much easier?

Cheers, Peter

--
http://pmrb.free.fr/contact/