Template:PageBreaks/styles.css

h2 { break-before: page; } h2:first-child{ break-before: avoid; }