Re: [NTG-context] Textbackground overlapping

2006-05-24 Thread nico
On Wed, 24 May 2006 01:50:41 +0200, nico [EMAIL PROTECTED]  
wrote:

 On Tue, 23 May 2006 17:15:28 +0200, Hans Hagen [EMAIL PROTECTED] wrote:


 not yet interfaced but public anyway

 \chardef\kindofpagetextareas\plusone

 But I've seen a side effect of this setting. It appears rarely, and I had
 difficulties to reproduce it. So, please find attached the cut-and-pasted
 buggy page to have exactly the same placements.

Here is a simple test case able to reproduce the problem (same behaviour  
with context live). Seems related to some vertical stretching stuff in a  
page.

\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

Regards,
BG
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Textbackground overlapping

2006-05-23 Thread nico
Hello,

When the backgrounded stuff starts from one page up to the following, it  
doesn't take care about the bottom footnotes, so that they are covered by  
the background.

Here is a small example:

\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

Regards,
BG
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Textbackground overlapping (2)

2006-05-23 Thread nico
Hello,

Sorry, just another overlapping case I should have put in the preceding  
mail: when a float cuts the backgrounded stuff, the float is backgrounded  
too. Maybe harder to fix.

An example showing both cases (footnote + float):

\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
\placefigure[top]{joke}{\framed[width=5cm]{Hi}}

\stoptext

Regards,
BG
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Textbackground overlapping

2006-05-23 Thread Hans Hagen
nico wrote:
 Hello,

 When the backgrounded stuff starts from one page up to the following, it  
 doesn't take care about the bottom footnotes, so that they are covered by  
 the background.

 Here is a small example:

 \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
   
not yet interfaced but public anyway

\chardef\kindofpagetextareas\plusone

-- 

-
  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] Textbackground overlapping

2006-05-23 Thread nico

On Tue, 23 May 2006 17:15:28 +0200, Hans Hagen [EMAIL PROTECTED] wrote:




not yet interfaced but public anyway

\chardef\kindofpagetextareas\plusone


Ah, yes, there's no more overlapping for both test cases.

But I've seen a side effect of this setting. It appears rarely, and I had  
difficulties to reproduce it. So, please find attached the cut-and-pasted  
buggy page to have exactly the same placements.


The problem is that with this setting the blank spaces around titles or  
paragraphs is a bit greater than it was. It's not an issue by itself, but  
then the text sometimes overlap the bottom footnote. Note that there's no  
textbackground involved in attached the case. It is defined only to  
activate the behaviour via the \enabletextarearegistration call.


Regards,
BG


textback3.tex.gz
Description: GNU Zip compressed data
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context