Closed shiffman closed 1 month ago
I just tried something like this for a part of chapter 10, i'm probably taking this too far but will see if it works.
and now i've done it here as well in chapter 10:
And the original spot in chapter 11:
Sure! Do you mean to prevent a single list item to be placed alone at the top or bottom of a page? And also from break inside? Maybe we could do something like this:
ol,
ul {
...
li {
break-inside: avoid;
}
li:first-child {
break-after: avoid;
}
li:last-child {
break-before: avoid;
}
}
Yes, this could work! Essentially I want to optionally set any of the following:
It's actually working the way I implemented it but feel free to change it to something better if you like!
It would be nice to have better rules to define how this should work to avoid "orphans" essentially but let's just leave my manual "hack" in for now since it will make the PDF render correctly!
I'm going to close this issue now as the project is wrapping up. I'll tag in @alanvww who I know is working on a related project for ITP thesis, this is relevant to the kinds of issues we discussed in our recent meeting!
@jasongao97 I was going to wrap 4 and 5 below in an
avoid-break
to have them together on the next page, but it resets the numbers. I guess I could use our override the numbering? This is low priority but nice to fix if you have an idea.