Re: [NTG-context] Page breaking problem
nico wrote: On Mon, 19 Jun 2006 12:20:05 +0200, Hans Hagen [EMAIL PROTECTED] wrote: Helin Gai wrote: Hi, I'm new to ConTeXt and I'm preparing a document for my own reference. The source code is below. I came across a few weird issues: 1) I don't quite understand why the page break occurs on because of \startbackground, best use textbackgrounds Hi Hans, since textbackground seems now the default background feature to use, do you plan to fix the textbackground overlapping trouble i submitted some time ago? remind me what it was ... 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
Re: [NTG-context] Page breaking problem
On Tue, 20 Jun 2006 10:55:43 +0200, Hans Hagen [EMAIL PROTECTED] wrote: nico wrote: Hi Hans, since textbackground seems now the default background feature to use, do you plan to fix the textbackground overlapping trouble i submitted some time ago? remind me what it was ... In the case of mail [1] textbackground overlapped bottom footnote texts or top floats if the backgrounded stuff covered two pages. You suggested to use \chardef\kindofpagetextareas\plusone to prevent from this behaviour. Using this setting fixed it, but introduced some kind of vertical stretchiness failure so that page text can overlap a bottom footnote text as shown in the case of mail [2]. So, both textbackground/page modes have their limitation that makes textbackground use not satisfying. So, it would be great if it could be fixed. I haven't installed the latest context release yet, but there's the same behaviour with context live. Thanks, BG [1]: http://archive.contextgarden.net/message/20060523.101005.80b07059.en.html The test case: \definecolor[ScreenGray][s=.95] \definetextbackground[grayback] [background=color, backgroundcolor=ScreenGray, frame=on, strut=yes, width=broad, location=paragraph, framecolor=ScreenGray, leftoffset=\topskipgap, before=\blank, after=\blank, align=right] \starttext A footnote\footnote{Covered by the background, right?}. \input tufte \input tufte \input tufte \input tufte \starttextbackground[grayback] \input tufte \stoptextbackground \stoptext [2]: http://archive.contextgarden.net/message/20060524.162941.8a054666.en.html The test case: \chardef\kindofpagetextareas\plusone \setupcolors[state=start] \setupwhitespace[medium] % needed to activate the buggy stuff... \definetextbackground[listing][background=color] \starttext \input tufte\footnote{A footnote} blah blah blah blah blah \section{Section} \input tufte blah blah \startitemize \item a \item a \item a \item a \item a \item a \stopitemize \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Page breaking problem
On Mon, 19 Jun 2006 18:45:32 +0800, Helin Gai [EMAIL PROTECTED] wrote: Thanks Hans for the prompt reply. I tried the following code: \definetextbackground[A] [frame=off,location=paragraph,backgroundcolor=gray] \setuptyping[before={\starttextbackground[A]},after= {\stoptextbackground}] But this resulted in tons of errors. Could you give some instruction as to how to proceed? I don't know if it's the mailer that wrapped the text, but you should stuck option=value, like this: \setuptyping[before={\starttextbackground[A]}, after={\stoptextbackground}] With a old release (2006.05.23), it works fine. Regards, BG ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Page breaking problem
On Mon, 19 Jun 2006 12:20:05 +0200, Hans Hagen [EMAIL PROTECTED] wrote: Helin Gai wrote: Hi, I'm new to ConTeXt and I'm preparing a document for my own reference. The source code is below. I came across a few weird issues: 1) I don't quite understand why the page break occurs on because of \startbackground, best use textbackgrounds Hi Hans, since textbackground seems now the default background feature to use, do you plan to fix the textbackground overlapping trouble i submitted some time ago? Regards, BG ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Page breaking problem
Hi, The wrapping was indeed caused by the mail program. I attached source code and the log file below. BTW, I'm using the 6/17/06 distribution. Thanks! Commands.tex Description: application/applefile Commands.tex Description: Binary data Commands.log Description: Binary data On Jun 20, 2006, at 2:51 AM, nico wrote: On Mon, 19 Jun 2006 18:45:32 +0800, Helin Gai [EMAIL PROTECTED] wrote: Thanks Hans for the prompt reply. I tried the following code: \definetextbackground[A] [frame=off,location=paragraph,backgroundcolor=gray] \setuptyping[before={\starttextbackground[A]},after= {\stoptextbackground}] But this resulted in tons of errors. Could you give some instruction as to how to proceed? I don't know if it's the mailer that wrapped the text, but you should stuck option=value, like this: \setuptyping[before={\starttextbackground[A]}, after={\stoptextbackground}] With a old release (2006.05.23), it works fine. Regards, BG ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context