LaTeX forum ⇒ GeneralHow do I generate "<section> Continued" when page rolls over

LaTeX specific issues not fitting into one of the other forums of this category.
Posts: 2
Joined: Fri Jan 06, 2012 2:44 am

How do I generate "<section> Continued" when page rolls over

Postby valmo » Fri Jan 06, 2012 2:51 am

My CV is composed of sections, e.g., Publications, Education, Research Experience.

When a section rolls over to a new page, I'd like the top of that page to say, e.g., Publications Continued, Education Continued, Research Experience Continued.

I'm not sure how to have this happen automatically. I looked into the bophook package, but the hook for a new page seems to only put a background image on the page, not allow for text in-line with the other text in the document.

I don't really want to mess with the header/footer either, since the headers have their own stuff in them already, with separate formatting.

User avatar
Stefan Kottwitz
Site Admin
Posts: 8596
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany

Postby Stefan Kottwitz » Fri Jan 06, 2012 8:50 am

Hi valmo,

welcome to the board!

You could use the afterpage package, such as

  1. \usepackage{afterpage}
  2. ...
  3. % later in the text
  4. \afterpage{write something}

Site admin

Posts: 2
Joined: Fri Jan 06, 2012 2:44 am

Postby valmo » Fri Jan 06, 2012 9:51 pm


The only issue is if the section subtends over multiple pages.

I tried doing something like this, which doesn't work, because it puts the heading at n+1 pages, where n is the number desired:

At the start of a section, you use the command: \sectionTop, passing in the name of the section; ending a section: \sectionBottom, with no arguments.
\heading{ <text> } makes a nice looking heading out of the text.

  2. \newcommand{\sectionContinue}[1]{
  3. \afterpage{
  4. \heading{#1 Continued}
  5. \sectionContinue{#1}
  6. }
  7. }
  9. \newcommand{\sectionTop}[1]{
  10. \heading{#1}
  11. \sectionContinue{#1}
  13. \renewcommand{\sectionContinue}[1]{
  14. \afterpage{
  15. \heading{#1 Continued}
  16. \sectionContinue{#1}
  17. }
  18. }
  19. }
  22. \newcommand{\sectionBottom}[0]{
  23. ~\\~\\
  24. \renewcommand{\sectionContinue}[1]{ }
  25. }
  27. \newcommand{\heading}[1]{
  28. \begin{tabular}{@{} p{7in} @{}}
  29. \large \textsc{\textbf #1}\\
  30. \hline\\
  31. \end{tabular}
  32. }

Return to “General”

Who is online

Users browsing this forum: No registered users and 10 guests