Re: [NTG-context] Math Overruns Background

2012-10-26 Thread Aditya Mahajan

On Thu, 25 Oct 2012, Nicholas Ulle wrote:


Hello,

I'm trying to typeset an exam with solutions in framed or shaded boxes,
using \background. However, the background doesn't stretch to the bottom of
the text area when there is text preceding it, so if there is enough math
inside the background, the math overruns its lower bound. How can I get
everything to stay inside the background?

A minimal example:

\starttext

\input knuth

\startbackground

\input knuth

\dorecurse{20}{\startformula \sum_{i=0}^5 i \stopformula}

\stopbackground

\stoptext


I've tried some of the options in \setupbackground with no luck, and have
also tried Googling for an answer.


Try textbackground rather than background (untested).

Aditya
___
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] Math Overruns Background

2012-10-26 Thread Nicholas Ulle
On Fri, Oct 26, 2012 at 7:14 AM, Aditya Mahajan adit...@umich.edu wrote:.


 Try textbackground rather than background (untested).

 Aditya


 Textbackground does fix this, but introduces a different problem: the
topoffset is ignored on pages beyond the first. I was originally using
textbackground, but was trying to make background work instead specifically
because of this.

Thanks,
Nick
___
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
___

[NTG-context] Math Overruns Background

2012-10-25 Thread Nicholas Ulle
Hello,

I'm trying to typeset an exam with solutions in framed or shaded boxes,
using \background. However, the background doesn't stretch to the bottom of
the text area when there is text preceding it, so if there is enough math
inside the background, the math overruns its lower bound. How can I get
everything to stay inside the background?

A minimal example:

\starttext

\input knuth

\startbackground

\input knuth

\dorecurse{20}{\startformula \sum_{i=0}^5 i \stopformula}

\stopbackground

\stoptext


I've tried some of the options in \setupbackground with no luck, and have
also tried Googling for an answer.


Thanks,

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