Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I need to change a page bottom margin, but do that for the first page of ToC only. Sure thing the following does not work as it adjusts all pages of ToC:

{
  % bottom margin must be bigger
  \changepage{-35mm}{}{}{}{}{}{}{}{}
  \tableofcontents
}

So \changepage should be somehow "injected" into \tableofcontens to detect and apply to the first page only.

I need some special LaTeX magic. Please assist.

Update. \changepage may not be used with \addtocontens, but Stefan's suggestion helped:

\addtocontents{toc}{\protect\enlargethispage{-35mm}}
\clearpage
\tableofcontents

I have another problem now (create a separate question?): i'm looking for some general approach, kind of "apply these change to the current page only; limit the scope they affect". Namely: i have to put such frame on the first ToC page, and such one on the rest of ToC pages. (I have frames as PDFs, so i just don't know how to ask LaTeX to place them in required order; tried afterpage and wallpaper packages.)

share|improve this question
    
Har you thought about messing with the distance between items in the ToC? Usually they do not contain any shrink or stretch, adding that often helps of the ToC spills a few lines onto page two. –  daleif Jun 3 '11 at 11:06
1  
With regard to your update, you should indeed ask a follow-up question. –  lockstep Jun 3 '11 at 12:23
    
@daeif If i got you right, it won't help as my ToC is 4 pages long ATM (: –  Maxim Vuets Jun 3 '11 at 13:16
    
then I do not understand your need to make the first page longer? I may end up looking odd in the over all design –  daleif Jun 3 '11 at 13:18
    
@daleif, i needed that in regard of different frames per ToC pages. Such (if you wish) strange requirements of my master's thesis. –  Maxim Vuets Jun 5 '11 at 5:10
add comment

1 Answer

up vote 4 down vote accepted

You can use \addtocontents for this. \enlargethispage is another command you could use. For example:

\addtocontents{toc}{\protect\enlargethispage{35mm}}
share|improve this answer
    
Thanks for that! –  Maxim Vuets Jun 3 '11 at 10:46
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.