ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: Curious blank page
Date: Wed, 12 Apr 2006 11:46:14 -0400 (EDT)	[thread overview]
Message-ID: <Pine.WNT.4.63.0604121143530.3440@nqvgln> (raw)
In-Reply-To: <443CB94A.7090202@wxs.nl>

On Wed, 12 Apr 2006, Hans Hagen wrote:

> Aditya Mahajan wrote:
>> On Mon, 10 Apr 2006, Hans Hagen wrote:
>>> Aditya Mahajan wrote:
>>>> On Sun, 9 Apr 2006, Hans Hagen wrote:
>>>>> Aditya Mahajan wrote:
>>>>>> On Sun, 19 Mar 2006, David Arnold wrote:
>>>>>>> Why is it that the rest of the page after Answers on page 4 of the
>>>>>>> compiled pdf is blank?
>>>>>>>
>>>>>> I have a similar problem. Attached is the (not so) minimal example
>>>>>> that I could prepare. (This is part of my way on mathalignment). See
>>>>>> the page break on page 2, while all the page is empty. Adding
>>>>>> \kern\zeropoint prevents the page break. But I find such an page break
>>>>>> very confusing.
>>>>>>
>>>>> btw, you need to patch core-mat.tex :
>>>>>
>>>>> \doif => \doifsomething
>>>>>
>>>>>   \doifsomething{\formulaparameter\c!margin}% so we test first
>>>>>     {\dosetleftskipadaption{\formulaparameter\c!margin}%
>>>>>      \edef\leftdisplaymargin{\the\leftskipadaption}}% overloaded
>>>>>
>>>>> it seems that this was never encountered
>>>>>
>>>> This doesn't seem to work. Changing line 303 of core-mat.tex \doif =>
>>>> \doifsomething and regenerating formats, does not change the output of
>>>> the test file. I still get the incorrect page breaking.
>>>>
>>> no, this patch is not related to the pagebreak but needed anyway (you're
>>> just lucky for not running into that bug) ; the pagebreak is just the
>>> result of background going crazy (well, not being able to determine if
>>> there is enough space left)
>>
>> framedtext does not break across pages :( Can startbackground be
>> persuaded to become sane?
>>
> not today, best try \definetextbackground which is the successor
>
\definetextbackground works :). The following works correctly (breaks 
across pages, and does not give false blank pages)


\definetextbackground
   [example]
   [width=\textwidth,
    background=color,
    backgroundcolor=lightgray,
    frame=off,
    leftoffset=1em,
    rightoffset=1em,
    location=paragraph,
    after={\blank[small]},
    before={\blank[small]}]


Thanks,
Aditya

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008

      reply	other threads:[~2006-04-12 15:46 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-20  6:16 David Arnold
2006-03-20  9:54 ` Taco Hoekwater
2006-03-20 10:42   ` Hans Hagen
2006-03-20 17:28     ` David Arnold
2006-04-09 20:53 ` Aditya Mahajan
2006-04-09 21:44   ` Hans Hagen
2006-04-09 21:53   ` Hans Hagen
2006-04-10  1:59     ` Aditya Mahajan
2006-04-10  7:32       ` Hans Hagen
2006-04-12  0:24         ` Aditya Mahajan
2006-04-12  7:53           ` Taco Hoekwater
2006-04-12  8:24           ` Hans Hagen
2006-04-12 15:46             ` Aditya Mahajan [this message]

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=Pine.WNT.4.63.0604121143530.3440@nqvgln \
    --to=adityam@umich.edu \
    --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).