Possible Duplicate:
Paragraph breaks with asterisks
I'm trying to define a command to insert section breaks into a prose manuscript. Specifically, I would like to use a command to insert white space (two lines, for example) if the section break occurs in the middle of a page, while inserting a visual cue (such as asterisks or a fleuron) if the section break occurs over a page break.
I've been able to put together my own custom command to insert a section break using the code as follows:
\newcommand{\sectionbreak}{
\par
\vspace{1\baselineskip}
\centerline{⁂}
\vspace{1\baselineskip}
\@afterindentfalse
\@afterheading
}
This command will remove the vspace before or after the asterism if that space occurs on a page break. However, I would like to extend this command so that if it occurs in the middle of a page, it will not show the asterism, as in such a case the space alone is sufficient to mark a section break.
The question Can I make some vertical material disappear if it occurs next to a page break? seems to describe the opposite kind of situation, where the visual glyph (in that case, a line) is only displayed if the break occurs within a page, but not at page breaks. I would like to make some material appear if it occurs next to a page break. How might I adapt the code given there for this kind of situation?