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
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
On Fri, Oct 26, 2012 at 7:14 AM, Aditya Mahajan
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
participants (2)
-
Aditya Mahajan
-
Nicholas Ulle