langsci / 25

Grammatical theory files
10 stars 2 forks source link

textbook boxes for exercises break in the middle of the page #134

Closed stefan11 closed 4 years ago

stefan11 commented 4 years ago

grafik

kopeckyf commented 4 years ago

Does this issue also appear

stefan11 commented 4 years ago

I took out memoization by loading nomemoize. Other externalization is not used any longer. Memoization is supposed to do all externalization. Yes, after two further compiles it is still at the same place.

Currently it looks like this: grafik

grafik

These were two consecutive page.

kopeckyf commented 4 years ago

The issue is most certainly related to mdframed's settings skip{above/below}.

@stefan11 Can you please check whether this is fixed throughout the book after the patch in https://github.com/langsci/25/commit/80ba6f3c549b0a6770aa47f435c268847673b5b8 ?

I've checked it in 2-psg.tex but there may be other instances where it does not work so well.

stefan11 commented 4 years ago

Yes, seems to be perfect now: grafik

kopeckyf commented 4 years ago

In case boxes ever get too close / overlap each other, this may be due to stretchable spaces between them, which are minimised (too much) such that both boxes can fit on one page.

While there is currently no principled solution against this, a possible workaround could be to enlarge the type area of that particular page, by inserting \largerpage or \largerpage[2] between the two boxes. I'd be grateful for some feedback if that strategy worked (if you come across a page in your book where you need that fix).