ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Text background regression in 20140316 beta
@ 2014-03-16 21:37 Rik Kabel
  0 siblings, 0 replies; only message in thread
From: Rik Kabel @ 2014-03-16 21:37 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 3608 bytes --]

Hans and list,

Previous to the 20140316 beta, we were able to prevent text backgrounds 
from bleeding over the footnote space with

    \chardef\kindofpagetextareas\plusone

as you described in a 2008 list entry. While the problem it resolves is 
still there, the fix is now broken. The background on the following page 
is starts too far down the page (although it appears to have the proper 
depth).

The following example demonstrates the problem. Sorry for its length.

    \setuppapersize[A6][A6]

    \definetextbackground[blockquotebackground]
                 [
                   location=paragraph,
                   background=color,
                   backgroundcolor=gray,
                   backgroundoffset=.25em,
                   frame=off,
                 ]

    \definedelimitedtext[BlockQuote]
    \setupdelimitedtext
       [BlockQuote]
       [
         leftmargin=1pc,
         rightmargin=1pc,
         before={%
                  \blank[halfline]%
                  \startblockquotebackground%
                  \setupindenting[next]%
                },
         after={%
                  \stopblockquotebackground%
                  \blank[halfline]%
               },
       ]

    \starttexdefinition startAttribution
       \setupnarrower[left=1pc]
       \startnarrower[left]
         \leavevmode\llap{{--\,}}%
    \stoptexdefinition

    \starttexdefinition stopAttribution
       \stopnarrower
    \stoptexdefinition

    %% The following prevents the background from overlaying
    %%   footnotes. Found in a 2008 post, still not in the wiki.
    %% http://www.mail-archive.com/ntg-context%40ntg.nl/msg15681.html
    %%
    %% With the 20140316 beta, things have changed again. Now the
    %%   problem without it is still there, but with it the background
    %%   is misplaced on the second page of a two-page background.
    %%
    \chardef\kindofpagetextareas\plusone

    \starttext

    \startBlockQuote
       Honorar und Verbot des Nachdrucks sind im Grunde der Verderb der
       Litteratur.

       Writing for money and reservation of copyright are, at bottom, the
       ruin of literature.

    \startAttribution
       Arthur Schopenhauer, chapter {\sc xxiii} \quotation{Ueber
       Schriftstellerei und Stil} {\em Parerga und Paralipomena} page
       420\footnote{Translation by Thomas Bailey Saunders, {\em The Art of
       Literature: A Series of Essays} page 3}
    \stopAttribution
    \stopBlockQuote

    Again.

    \startBlockQuote
       Honorar und Verbot des Nachdrucks sind im Grunde der Verderb der
       Litteratur.

       Writing for money and reservation of copyright are, at bottom, the
       ruin of literature.

    \startAttribution
       Arthur Schopenhauer, chapter {\sc xxiii} \quotation{Ueber
       Schriftstellerei und Stil} {\em Parerga und Paralipomena} page
       420\footnote{Translation by Thomas Bailey Saunders, {\em The Art of
       Literature: A Series of Essays} page 3}
    \stopAttribution
    \stopBlockQuote

    Again.

    \startBlockQuote
       Honorar und Verbot des Nachdrucks sind im Grunde der Verderb der
       Litteratur.

       Writing for money and reservation of copyright are, at bottom, the
       ruin of literature.

    \startAttribution
       \leavevmode\llap{{--\,}}%
       Arthur Schopenhauer, chapter {\sc xxiii} \quotation{Ueber
       Schriftstellerei und Stil} {\em Parerga und Paralipomena} page
       420\footnote{Translation by Thomas Bailey Saunders, {\em The Art of
       Literature: A Series of Essays} page 3}
    \stopAttribution
    \stopBlockQuote

    \stoptext



[-- Attachment #1.2: Type: text/html, Size: 6626 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-03-16 21:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-16 21:37 Text background regression in 20140316 beta Rik Kabel

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