reduced top/bottom spacing for figure
prevent hanging headings, fix floating keep and 1-st level heading conflict
added PNHANG register, minimum paragraph lines on the page
placed additional \{ \} pair in normal keep output macro
changed hardcoded needed space to PNHANG