ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Textbackground overlapping
@ 2006-05-23 10:13 nico
  2006-05-23 15:15 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: nico @ 2006-05-23 10:13 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Textbackground overlapping
  2006-05-23 10:13 Textbackground overlapping nico
@ 2006-05-23 15:15 ` Hans Hagen
  2006-05-23 23:50   ` nico
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2006-05-23 15:15 UTC (permalink / raw)


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
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Textbackground overlapping
  2006-05-23 15:15 ` Hans Hagen
@ 2006-05-23 23:50   ` nico
  2006-05-24 16:33     ` nico
  0 siblings, 1 reply; 4+ messages in thread
From: nico @ 2006-05-23 23:50 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 811 bytes --]

On Tue, 23 May 2006 17:15:28 +0200, Hans Hagen <pragma@wxs.nl> 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

[-- Attachment #2: textback3.tex.gz --]
[-- Type: application/x-gzip, Size: 1744 bytes --]

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Textbackground overlapping
  2006-05-23 23:50   ` nico
@ 2006-05-24 16:33     ` nico
  0 siblings, 0 replies; 4+ messages in thread
From: nico @ 2006-05-24 16:33 UTC (permalink / raw)


On Wed, 24 May 2006 01:50:41 +0200, nico <nicolas.marsgui@libertysurf.fr>  
wrote:

> On Tue, 23 May 2006 17:15:28 +0200, Hans Hagen <pragma@wxs.nl> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-05-24 16:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-23 10:13 Textbackground overlapping nico
2006-05-23 15:15 ` Hans Hagen
2006-05-23 23:50   ` nico
2006-05-24 16:33     ` nico

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).