[Tex/LaTex] Defining a prose-style section break command


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:


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?

Best Answer

The memoir class defines the \plainfancybreak macro, which seems to do exactly what you want. See the memoir manual, section 6.7.

I just tried a quick experiment by copying the relevant part of memoir's source into the preamble of a new document but wasn't able to get this to compile without errors. So I'm not sure exactly how you could easily use this command without switching your document over to memoir. Maybe that's not a problem for you; otherwise, looking at the source might give you some ideas.

Related Question