less. (Example again at the bottom) :(
Matthias
On Jan 10, 2005, at 12:49 PM, Hans Hagen wrote:
Matthias Weber wrote:
[before={\starttextbackground[exbackground]},
try:
[before={\testpage[2]\starttextbackground[exbackground]},
that way a pagebreak is forced when less than three lines are left
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
\mainlanguage [en]
\setupcolors[state=start] \setupcolor[rgb]
% Exercises and Activities
\definecolor[exc] [r=.94,g=.9,b=.9]
\definetextbackground [exbackground] [backgroundcolor=exc, corner=round, before=\blank, after=\blank, leftoffset=5pt, rightoffset=5pt, topoffset=5pt, bottomoffset=5pt, frame=on, framecolor=darkgreen, location=paragraph, color=darkgreen]
\defineenumeration [exercise] [before={\testpage[2]\starttextbackground[exbackground]}, after={\stoptextbackground}, way=bysection, text=Exercise, start=1, location=hanging, letter=rm]
\setuppapersize[S6][S6]
\setupbodyfont[12pt]
\starttext
\input tufte \input tufte
new line
new line
%new line
\startexercise Please explain how to get rid of the additional framed stuff on page 1. \stopexercise
\input tufte
\stoptext
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context