kingjon3377/tartan

Combined cover frequently overflows

Opened this issue · 2 comments

Unless the chosen image is particularly wide compared to its height, the \tartanimagecover command frequently overflows the bottom-text to the next page. We should:

  • Strongly suppress a page break after the image and suggest one after the bottom-text
  • Account for the height of the bottom-text when calculating how tall the image is allowed to be.

This is alleviated, but not really fixed, by 8fcbffd.

I managed to implement something that I think should solve this, using the solution explained in this StackOverflow answer, but didn't commit it because it caused the \clearpage at the beginning of the cover to insert a page break even though the cover was (supposed to be) the first page and there wasn't anything visible on the "previous" page.