* startyping modification
@ 2004-10-30 19:03 David Arnold
2004-10-31 12:02 ` Patrick Gundlach
0 siblings, 1 reply; 3+ messages in thread
From: David Arnold @ 2004-10-30 19:03 UTC (permalink / raw)
All,
I have:
\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's the best way to do this?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: startyping modification
2004-10-30 19:03 startyping modification David Arnold
@ 2004-10-31 12:02 ` Patrick Gundlach
2004-10-31 17:57 ` David Arnold
0 siblings, 1 reply; 3+ messages in thread
From: Patrick Gundlach @ 2004-10-31 12:02 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Re: startyping modification
2004-10-31 12:02 ` Patrick Gundlach
@ 2004-10-31 17:57 ` David Arnold
0 siblings, 0 replies; 3+ messages in thread
From: David Arnold @ 2004-10-31 17:57 UTC (permalink / raw)
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@ntg.nl
>http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-10-31 17:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-30 19:03 startyping modification David Arnold
2004-10-31 12:02 ` Patrick Gundlach
2004-10-31 17:57 ` David Arnold
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).