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
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to