From: nico <nicolas.marsgui@libertysurf.fr>
Subject: Background placement
Date: Mon, 22 May 2006 11:57:57 +0200 [thread overview]
Message-ID: <ops9x5yvg89niby6@localhost> (raw)
Hello,
The placement of backgrounded text is sometimes unexpected: it forces a
page break even if there's much room in the page to put the whole thing.
Searching in the mailing list I've found one thread about the subject
(http://archive.contextgarden.net/message/20051205.090518.90cc69d4.en.html),
but playing with \setupinterlinespace as suggested doesn't help.
The problem often occurs just after a heading starting at the top of a
page (section, enumeration title). Here is an example showing the
behaviour:
\setuplayout[middle]
\setupcolors[state=start]
% Background
\definecolor[ScreenGray][s=.95]
\setupbackground
[background=screen,
frame=on,
strut=yes,
width=broad,
before=\blank,
after=\blank,
framecolor=ScreenGray,
align=right]
% Verbatim environment for programlisting
\definetyping[programlisting]
\setuptyping[programlisting]
[bodyfont=small,
before={\startbackground},
after={\stopbackground}]
\starttext
\input tufte
\input tufte
\input tufte
\input tufte
\input tufte
\section{joke}
Here is an example:
\startprogramlisting
Some code
\stopprogramlisting
And the text continues...
\stoptext
Regards,
BG
next reply other threads:[~2006-05-22 9:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-22 9:57 nico [this message]
2006-05-22 18:32 ` Aditya Mahajan
2006-05-22 22:29 ` nico
2006-05-22 23:03 ` Hans Hagen
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=ops9x5yvg89niby6@localhost \
--to=nicolas.marsgui@libertysurf.fr \
--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).