[NTG-context] typing midaligned
Peter Münster
pmlists at free.fr
Mon May 8 23:32:51 CEST 2006
On Mon, 8 May 2006, Hans Hagen wrote:
> ? wrote:
> > On Sun, 7 May 2006, Hans Hagen wrote:
> >
> >> ? wrote:
> >>
> >>> On Sat, 6 May 2006, Hans Hagen wrote:
> >>>
> >>>> you mean that you want centered verbatim?
> >>>>
> >>> Yes!
> >>> A very nice solution would be:
> >>> \starttyping[location=middle] or \setuptyping[location=middle]
> >>>
> >> \starttext
> >> \setuptyping
> >> [before={\startframedtext[strut=no,width=fit,align={lohi,middle}]},
> >> after={\stopframedtext}]
> >
> > Hello Hans,
> > with align=middle, the typing is aligned line by line. What I'm looking for
> > is this:
> >
> > normal text in a paragraph, normal text in a paragraph, normal text in a
> > paragraph, normal text in a paragraph, normal text in a paragraph, normal
> > text in a paragraph, normal text in a paragraph, normal text in a
> > paragraph, normal text in a paragraph, normal text in a paragraph
> > on line of typing
> > second line of typing but longer
> > normal text in a paragraph, normal text in a paragraph, normal text in a
> > paragraph, normal text in a paragraph, normal text in a paragraph, normal
> > text in a paragraph, normal text in a paragraph, normal text in a
> > paragraph, normal text in a paragraph, normal text in a paragraph
> >
> \starttext
> \setuptyping[margin=3cm]
Hello Hans,
I don't understand, it's still not centred...
Or do you mean, I have to put the typing into a box,
measure the width of the box, and then calculate the
right margin ((\textwidth - \typingwidth) / 2) ?
Greetings, Peter
--
http://pmrb.free.fr/contact/
More information about the ntg-context
mailing list