I'm trying to create a section break that will display a separator when it occurs in the middle of a page, but display nothing if it lies at the top or bottom of a page, where there's nothing to be separated.
The closest I've been able to find is \pfbreak of the memoir class, but this does the inverse of what I want (displays content at the top or bottom, but not in the middle of a page).
I was hoping to pull the code out of the file here (from line 10858, \def\pfbreakOutput seems to be the part of interest) but getting the behaivor I want looks to involve redesigning the output routine, which is well above my head.
Can anyone either suggest a way of changing this to get an \inversepfbreak command as described, or an alternative way of going about this?
Another possibility might be setting up \label{end-of-section} and \label{start-of-next-section}; I would imagine it is possible to do a string comparison on their \pageref's and show/hide the content based on this. I don't think this is will be a good solution though, since you can't determine the page until it has been processed, after which the page breaks will all change anyway if I start adding/removing page separators.
Thanks!
Christopher
memoir
?