Re: [NTG-context] right figure at bottom of page can narrow text block on whole next page

2019-02-06 Thread Sanjoy Mahajan
> This has come up a few times on this list. Hans has stated a reluctance 
> to make a change or add an option to discard the unused vertical space 
> (see https://www.mail-archive.com/ntg-context@ntg.nl/msg21273.html from 
> March 2007, and most recently 
> https://www.mail-archive.com/ntg-context@ntg.nl/msg86872.html in January 
> 2018).

Thank you for those pointers.

> The workaround that Hans suggests in that last post , adding the flag
> 'high', almost resolves the issue in your example.

Right -- or just shifting the figure upward by one paragraph or so.  In
a long document like a book, pagebreaks need to be adjusted by hand at
the end anyway to avoid long stretches of unused bottom space.
Adjusting the figure placements slightly can become part of that
process.

-Sanjoy
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] right figure at bottom of page can narrow text block on whole next page

2019-02-06 Thread Rik Kabel

On 1/29/2019 06:48, Sanjoy Mahajan wrote:

\definepapersize[bookcrop][width=137mm,height=221mm]
\setuppapersize [bookcrop][bookcrop]

\setuplayout[marking=on,
   location=middle,
   backspace=13.5mm,
   width=middle,
   topspace=32bp,
   header=10bp, headerdistance=26bp,
   footerdistance=16bp, footer=10bp,
   height=578bp,
]

\setupinterlinespace[line=1.3em]
\setupbodyfont[times,10bp]

\starttext

\input knuth

Silly para

Silly para

\placefigure[right]{}{\framed[width=100bp,height=75.75bp]{\null}}

\input knuth

\dorecurse{8}{\par Silly para}

\placefigure[right]{}{\framed[width=100bp,height=60.75bp]{\null}}

\dorecurse{32}{Silly text }

\dorecurse{3}{\input knuth \par}

\stoptext


This has come up a few times on this list. Hans has stated a reluctance 
to make a change or add an option to discard the unused vertical space 
(see https://www.mail-archive.com/ntg-context@ntg.nl/msg21273.html from 
March 2007, and most recently 
https://www.mail-archive.com/ntg-context@ntg.nl/msg86872.html in January 
2018).


The workaround that Hans suggests in that last post , adding the flag 
'high', almost resolves the issue in your example.


--
Rik

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] right figure at bottom of page can narrow text block on whole next page

2019-01-29 Thread Sanjoy Mahajan
Dear List,

A figure near the bottom of the page can narrow the text block on the
whole next page.  I noticed the problem when typesetting my (next) book.
But the book is more a maximal than a minimal example.  However, from it
I made the minimal example included below that uses no external figures.

Figure 2 is the bottom of the page and the paragraph flows to its left
with a correspondingly narrower text block.  So far, so good.  But the
text block also narrows for the entirity of page 2 and for the first
two lines of page 3.  

I've found the problem on the MkIV 2019.01.07 and 2019.01.28 betas (all
on Debian amd64), as well as on the live ConTeXt (which is the
2019.01.28 beta).

-Sanjoy

== start margin-figure-region.tex =
\definepapersize[bookcrop][width=137mm,height=221mm]
\setuppapersize [bookcrop][bookcrop]

\setuplayout[marking=on, 
  location=middle,
  backspace=13.5mm,
  width=middle,
  topspace=32bp, 
  header=10bp, headerdistance=26bp,
  footerdistance=16bp, footer=10bp,
  height=578bp,
]

\setupinterlinespace[line=1.3em]
\setupbodyfont[times,10bp]

\starttext

\input knuth

Silly para

Silly para

\placefigure[right]{}{\framed[width=100bp,height=75.75bp]{\null}}

\input knuth

\dorecurse{8}{\par Silly para}

\placefigure[right]{}{\framed[width=100bp,height=60.75bp]{\null}}

\dorecurse{32}{Silly text }

\dorecurse{3}{\input knuth \par}

\stoptext
== end margin-figure-region.tex =
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___