ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Matthias Weber <matweber@indiana.edu>
Subject: Problem with backgrounds and page breaks
Date: Mon, 10 Jan 2005 11:12:26 -0500	[thread overview]
Message-ID: <6B6CC5D9-6322-11D9-B2C7-0003934F9514@indiana.edu> (raw)
In-Reply-To: <m2y8gbr1ax.fsf@levana.de>

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

  parent reply	other threads:[~2005-01-10 16:12 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-30 21:22 Wrap a url David Arnold
2004-11-02  9:34 ` Willi Egger
2004-11-02 14:17   ` David Arnold
2004-11-02 16:24     ` Hans Hagen
2004-11-02 17:47       ` David Arnold
2004-11-02 18:02         ` Hans Hagen
2004-12-03 14:30         ` Patrick Gundlach
2004-12-05 17:51           ` Willi Egger
2004-12-05 22:17             ` Patrick Gundlach
2004-12-06 21:19               ` Willi Egger
2004-12-05 17:52           ` Willi Egger
2004-12-06 12:40           ` using fonts Wolfgang Zillig
2004-12-06 13:41             ` Patrick Gundlach
2004-12-06 14:52               ` Adam Lindsay
2004-12-06 21:30                 ` Re: using fonts -- installation Rob Ermers
2004-12-06 21:50                   ` Adam Lindsay
2004-12-06 23:19                     ` Rob Ermers
2004-12-06 23:23                     ` h h extern
2004-12-06 23:27                   ` h h extern
2004-12-07  8:09                     ` r.ermers
2004-12-07  8:18                       ` Adam Lindsay
2004-12-07  8:17                   ` Adam Lindsay
2005-01-10 16:12               ` Matthias Weber [this message]
2005-01-10 17:49                 ` Problem with backgrounds and page breaks Hans Hagen
2005-01-10 18:35                   ` Matthias Weber
2005-01-10 18:57                     ` Hans Hagen
2005-01-10 19:29                       ` Matthias Weber
2004-12-06 14:45             ` using fonts Adam Lindsay
2004-12-06 14:50               ` Patrick Gundlach

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6B6CC5D9-6322-11D9-B2C7-0003934F9514@indiana.edu \
    --to=matweber@indiana.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).