[NTG-context] Re: startyping modification

David Arnold darnold at northcoast.com
Sun Oct 31 18:57:42 CET 2004


Patrick,

Thanks. Yes, I just want to align horizontally on the page.

In my preamble, I have:

\setuptyping
[before={\startframedtext[width=\makeupwidth,
      background=screen,
      backgroundscreen=0.8]},
  after={\stopframedtext},
  color=darkred]


Later in the document I have:

\startalignment[middle]
\switchtobodyfont[big]
\starttyping
y = x.^2 -2*x - 3
\stoptyping
\stopalignment

However, the \setuptyping seems to override here, as the verbatim text is
not centered horizontally.

Can you help?


At 01:02 PM 10/31/04 +0100, you wrote:
>Hello David,
>
>> \starttyping
>> y = x.^2 -2*x - 3
>> \stoptyping
>>
>> I'd like, just this one time, to typeset this so it fall in the middle of
>> the page, with a slightly enlarged fontsize.
>
>What is "the middle of the page"? centered vertically and
>horizontally? 
>
>If only horizontal alignment: use
>
>\startalignment[middle]
>\starttyping
>y = x.^2 -2*x - 3
>\stoptyping
>\stopalignment
>
>Patrick
>-- 
>ConTeXt wiki: http://contextgarden.net
>_______________________________________________
>ntg-context mailing list
>ntg-context at ntg.nl
>http://www.ntg.nl/mailman/listinfo/ntg-context
>
>


More information about the ntg-context mailing list