I'd like to automatically repeat section headings after a page break. My naive attempt at doing this is to check the page counter and print the extra text whenever the counter increments:
\newcounter{pagecnt}
\setcounter{pagecnt}{\value{page}}
...
\ifnum \value{page} > \value{pagecnt}% are we on a new page?
\normalfont\Large\bfseries\sectionheadinghere% print heading again
\setcounter{pagecnt}{\value{page}}% reset counter
\fi%
Except I'm not entirely sure what should 'trigger' this code? Is it possible or desirable to check after every line-break (or every word) if the page has flipped?

everyshi(which stands for 'Every Ship Out') package is appropriate here? It sounds like you want similar features provided by thefancyhdrpackage – cmhughes Mar 11 '12 at 20:59everyshiis appropriate. (i'm adding this comment because another comment points to running heads and footers, which is quite different.) – barbara beeton Jul 06 '12 at 21:03afterpagepackage: changing-the-table-of-contents and insert-text-before-end-of-page-and-at-the-begining-of-the-next-page – barbara beeton Jul 06 '12 at 21:18