Page LayoutShow "Table of Contents (continued)" in ToC Page Header

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
echo
Posts: 3
Joined: Wed Jun 15, 2011 10:27 am

Show "Table of Contents (continued)" in ToC Page Header

Post by echo »

I have two pages long table of contents in my thesis.
The school requires continuing pages must be headed as "TABLE OF CONTENT (continued)" if the table of contents is longer than one page.

I use \tableofcontents command in the .tex file.
And define it in .cls file as below.
However, only "TABLE OF CONTENT" is showing on the first page of table of contents.
Can anyone help to point out what I should put in .cls file please?

Code: Select all

\def\tableofcontents{
   \clearpage
   \typeout{TABLE OF CONTENTS.}
   \def\headmark{\vbox{
        \hbox to \textwidth{\bfseries\large\hfil TABLE OF CONTENTS
           (Continued) \hfil}
        \vspace{\innerheadskip}
        \hbox to \textwidth{\bfseries\normalsize
           \underbar{CHAPTER}\hfil\underbar{PAGE}}}}
%   \pagestyle{continued}
   \table@of@cont
   \newpage
   }

\def\table@of@cont{%
   \begin{singlespace}
   \thispagestyle{pageonbottom}
   \@makeschapterhead{TABLE OF CONTENTS}
   \par
   \hbox to \textwidth{\bfseries\underbar{CHAPTER}
       \hfil\underbar{PAGE}}
   \@starttoc{toc}
   \end{singlespace}}
Last edited by Stefan Kottwitz on Wed Jun 15, 2011 5:48 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

isharp2
Posts: 23
Joined: Fri Feb 11, 2011 2:06 am

Re: Show "Table of Contents (continued)" in ToC Page Header

Post by isharp2 »

I have to do the same thing for my thesis and have no idea how to do this...

Is there someway to incorporate the \renewcommand{ }, into the code you have? It sometimes refreshes what gets drawn.

I found this guy's site from MSU. But his examples don't work...
https://sites.google.com/site/msulatex/ ... ional-file
echo
Posts: 3
Joined: Wed Jun 15, 2011 10:27 am

Re: Show "Table of Contents (continued)" in ToC Page Header

Post by echo »

Hi,
Thank you so much for sharing this information.
It works for me!! :D

Basically it is easier than what I am looking for before. By adding direct source code at .toc file, you don't need any command at .cls file. The only thing is that you have to do that right before you compile it, otherwise .toc file will be overwritten after you finish compiling.

Don't know for sure how you tried that, here is a simple summary and hope it helps.
Basically just add

\par \par \vfil \penalty -\@M \write \m@ne {}\vbox {}\penalty -\@Mi \par \hskip 1em\relax \hfill TABLE OF CONTENTS -- CONTINUED \hfill \hskip 1em\relax \hskip 1em\relax \vspace {.2in} \hskip 1em\relax \par

to the .toc file where you want to separate the page.

Good luck and happy thesis writing.
Echo
Post Reply