Re: [NTG-context] calculating optimal height of textblock

2021-04-28 Thread Hans Hagen
On 4/28/2021 2:07 PM, denis.ma...@ub.unibe.ch wrote: how do you usually calcultate your layouts? For example in this example, the third value for height is not really helpful as there will never be a complete lineĀ : you can use lines=40, instead of height Hans --

Re: [NTG-context] custom zig zag sidebars

2021-04-28 Thread Hans Hagen
On 4/28/2021 5:27 PM, mf wrote: Hello, I made an experiment to add alternatives to sidebars (see attachment). I discovered the sidebar is drawn by anch_sidebars_draw in metapost/context/base/mpiv/mp-apos.mpiv. I've redefined it locally to add alternatives. To make fancy, zig zag bars I defi

[NTG-context] custom zig zag sidebars

2021-04-28 Thread mf
Hello, I made an experiment to add alternatives to sidebars (see attachment). I discovered the sidebar is drawn by anch_sidebars_draw in metapost/context/base/mpiv/mp-apos.mpiv. I've redefined it locally to add alternatives. To make fancy, zig zag bars I defined a macro, draw_pattern_bar, th

[NTG-context] calculating optimal height of textblock

2021-04-28 Thread denis.maier
Hi, how do you usually calcultate your layouts? For example in this example, the third value for height is not really helpful as there will never be a complete line : = \setupbodyfont[10pt] \definepapersize[test][width=140mm,height=208mm] \setuppapersize[test][test] \setuplayo

Re: [NTG-context] \setupalign[height] and \setupalign[line] in LMTX

2021-04-28 Thread denis.maier
Ok, after dabbling around a bit more, I can now come up with the following example \setuppapersize[A5][A5] \showframe \setuptolerance[vertical,stretch] %\setupalign[line] %\setupinterlinespace[stretch=0.1] % vertical stretching seems to kick in for stretch