[NTG-context] Seems to be a bug with \definelayout

Pablo Rodriguez oinos at gmx.es
Sat Dec 10 10:44:21 CET 2022


On 12/9/22 21:23, peter.hopcroft--- via ntg-context wrote:
> I’ve rewritten my last email. The context below produces the pdf in
> the screenshot below.
> 
> I expect the layout[short] to be applied to pages 2 and 3. It is. But
> there seem to be 2 bugs:
> 
> 1 - Pages 4, 5 and 6 have the [short] layout. They should have the
> default layout.
> 
> 2 - On pages 5 and 6, the text flows beyond the bottom of the frame.
> It should stop at the bottom of the frame.

Hi Peter,

as in my reply from yesterday, this seems to fix your bugs:

  \showframe
  \setuppapersize[A4][A3,landscape] \setuparranging[2SIDE]
  \setuplayout[backspace=80mm, width=100mm, topspace=50mm, header=0mm,
  footer=0mm, height=200mm, margindistance=10mm, leftmargin=40mm]

  \definelayout[short][backspace=80mm, width=100mm, topspace=50mm,
  header=0mm, footer=0mm, height=80mm, margindistance=10mm,
  leftmargin=40mm]

  \starttext
  \definelayout[even][reset]
  \definelayout[odd][reset]
  \definelayout[2][short]
  \definelayout[3][short]
  \dorecurse{10}{\input{knuth} }
  \stoptext

It seems that you need to reset the layout in all other pages (where the
special layout isn’t applied).

I hope it helps,

Pablo


More information about the ntg-context mailing list