Hello,
when using text background colors in enumerations, I run into a problem
whenever the enumeration appears on the beginning of a page: Then,
the background extends over some part (sometimes all) of the previous page.
I can manually correct this by putting a \break just before the enumeration, but this
is a little tedious, as I am frequently reformatting the document. Below is a small example.
Thanks for any help!
(TeXExec 5.2.3 , ConTeXt ver: 2004.11.23 fmt: 2004.12.16 int: english mes: english)
Matthias
%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={\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 [email protected] http://www.ntg.nl/mailman/listinfo/ntg-context
