Featured Book

LaTeX Beginners Guide

Who is online

In total there are 14 users online :: 1 registered, 0 hidden and 13 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: Google [Bot] and 13 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

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

Add tags LaTeX specific issues not fitting into one of the other forums of this category.

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

Postby valmo on Fri Jan 6th, 2012

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.
valmo
 
Posts: 2
Joined: Fri Jan 6th, 2012

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

Postby Stefan_K on Fri Jan 6th, 2012

Hi valmo,

welcome to the board!

You could use the afterpage package, such as

Code: Select all  •  Open in writeLaTeX
\usepackage{afterpage}
...
% later in the text
\afterpage{write something}


Stefan
LaTeX Community Administrator
User avatar
Stefan_K
Site Admin
 
Posts: 6413
Joined: Mon Mar 10th, 2008
Location: Hamburg, Germany

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

Postby valmo on Fri Jan 6th, 2012

Thanks!

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:

EXPLANATION:
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.

Code: Select all  •  Open in writeLaTeX


\newcommand{\sectionContinue}[1]{
    \afterpage{
       \heading{#1 Continued}
       \sectionContinue{#1}
     }
}

\newcommand{\sectionTop}[1]{
   \heading{#1}
   \sectionContinue{#1}

   \renewcommand{\sectionContinue}[1]{
        \afterpage{
           \heading{#1 Continued}
           \sectionContinue{#1}
        }
   }
}


\newcommand{\sectionBottom}[0]{
   ~\\~\\
   \renewcommand{\sectionContinue}[1]{ }
}

\newcommand{\heading}[1]{
   \begin{tabular}{@{} p{7in} @{}}
   \large \textsc{\textbf #1}\\
   \hline\\
   \end{tabular}
}
 
valmo
 
Posts: 2
Joined: Fri Jan 6th, 2012


Return to General

Who is online

Users browsing this forum: Google [Bot] and 13 guests