ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Rik Kabel <context@rik.users.panix.com>
To: ntg-context@ntg.nl
Subject: Text background regression in 20140316 beta
Date: Sun, 16 Mar 2014 17:37:01 -0400	[thread overview]
Message-ID: <5326197D.9090204@rik.users.panix.com> (raw)


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

                 reply	other threads:[~2014-03-16 21:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=5326197D.9090204@rik.users.panix.com \
    --to=context@rik.users.panix.com \
    --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).