Re: [NTG-context] Conditional keep-with-next rules
On 6/28/2014 8:19 AM, Jan Tosovsky wrote:
On 2014-06-27 Jan Tosovsky wrote:
Dear All,
in my index I can see disturbing page breaks.
primary-01 primary-02 secondary-01 ------- ( next page ) ----- secondary-02 primary-03
instead of
primary-01 ------- ( next page ) ----- primary-02 secondary-01 secondary-02 primary-03
Is it possible to somehow define conditional keep-with-next rules?
I'd like to express: (1) keep always the primary with the first secondary (this seems to be implemented) (2) keep always the first secondary with the next secondary (3) keep always the last secondary with the previous secondary
And similarly for tertiary.
Deep down we have (spac-ver) this: \definevspacing[preference][penalty:-500] % goodbreak \definevspacing[samepage] [penalty:10000] % nobreak \definevspacing[max] [category:1] \definevspacing[force] [category:2] \definevspacing[disable] [category:5] \definevspacing[nowhite] [category:6] \definevspacing[back] [category:7] % together [category:8] \definevspacing[overlay] [category:9] \definevspacing[always] [category:0] \definevspacing[weak] [order:0] \definevspacing[strong] [order:100] so we can have weights and so. However, in practice the problem is that when combining different mechanisms their spacing settings might not be tuned to each other. I will extend this mechanism when we have a bit more control over some of the lists involved. It's no big deal to set up something for an index, but it needs thinking about how to deal with worst case scenarios and these will happen for sure and you don't want to end up with a sequence of entries two pages height running of a page, certainly not in a fully automated workflow. It is on the to-be-loked-into-list, but as all things, it has to fit into my agenda (read: to be done in what's left of my free time). I also have to make sure then it does not mess up existing files. For the moment playing with the before/after keys is the way to go. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (1)
-
Hans Hagen