General ⇒ How do I generate "<section> Continued" when page rolls over
How do I generate "<section> Continued" when page rolls over
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.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
How do I generate "<section> Continued" when page rolls over
welcome to the board!
You could use the afterpage package, such as
Code: Select all
\usepackage{afterpage}
...
% later in the text
\afterpage{write something}
How do I generate "<section> Continued" when page rolls over
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
\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}
}