2

This question already has an answer here:

If a section heading arrives at the end of a page, and there is no more space to include the later text body, the section heading will be shifted to the next page (the section, subsection, ..., all have this property, by default).

Now, I want to define a new section-like environment. This environment has a red line below of its heading and we can insert our text underneath this line.

marked as duplicate by StrongBad, mafp, Werner, T. Verron, Mensch May 24 '13 at 21:54

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.