Page LayoutDifferent margin for second page of table of contents

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
swiftfoottim
Posts: 3
Joined: Tue Dec 28, 2010 9:59 pm

Different margin for second page of table of contents

Post by swiftfoottim »

I am using the Memoir class and have to make a table of contents with a first page top margin of 2 inches and the continuation pages with a top margin of 1 inch. My current code for my table of contents involves:

Code: Select all

%%%%% Do the ToC%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\settocdepth{subsection}
\renewcommand{\contentsname}{TABLE OF CONTENTS}
\addtodef{\tableofcontents}{\clearpage\pagestyle{toc}}{}
\setlength{\topmargin}{.75in}
\renewcommand*{\tocheadstart}{\vspace*{-\topfiddle}}
\renewcommand*{\aftertoctitle}{\thispagestyle{plain}
\par\nobreak {\normalfont \hfill }\par\nobreak}

\renewcommand*{\cftchapteraftersnum}{.}
\renewcommand*{\cftdotsep}{1}
\renewcommand*{\cftchapterfont}{\normalfont}
\renewcommand*{\cftchapterpagefont}{\normalfont}
\renewcommand*{\cftchapterleader}{
	\cftchapterfont\cftdotfill{\cftchapterdotsep}}
\renewcommand*{\cftchapterdotsep}{\cftdotsep}

%Sets the length of the indents for each relevant section
%in the TOC
\cftsetindents{chapter}{0in}{.5in}
\cftsetindents{section}{1in}{0in}
\cftsetindents{subsection}{1.5in}{0in}

%Set the font of the subsections to italicized.
\renewcommand*{\cftsubsectionfont}{\itshape}
\renewcommand*{\cftsubsectionleader}{\itshape\cftdotfill{\cftsubsectiondotsep}}
I'm not quite sure what to do or how to go about changing the margin on subsequent pages of the table of contents. I tried resetting the top margin command but it reset all of my margins in my table of contents. Kind of lost on how to go about this now.

Thanks!

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

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Different margin for second page of table of contents

Post by meho_r »

Does TOC spread over more than two pages? And you want only the second page to have different margin? A complete Minimal Working Example (MWE) would be nice too.
swiftfoottim
Posts: 3
Joined: Tue Dec 28, 2010 9:59 pm

Re: Different margin for second page of table of contents

Post by swiftfoottim »

Yes, the first page should have a top margin of 2 inches. Subsequent TOC pages should have a top margin of 1 inch. I'll see about putting together an MWE but it might be tough as the code I'm using right now is what I previously posted.
Post Reply