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.

Is there any way I can force all the pages of table of contents (and its family) to be printed only on the right side ?

Presently I am having it as :

\phantomsection
\tableofcontents
\addtocontents{toc}{\protect\addcontentsline{toc}{chapter}{Contents}}
\cleardoublepage

\phantomsection
\addtocontents{lof}{\protect\addcontentsline{toc}{chapter}{List of Figures}}
\listoffigures
\cleardoublepage

\phantomsection
\addtocontents{lot}{\protect\addcontentsline{toc}{chapter}{List of Tables}}
\listoftables
\cleardoublepage

\phantomsection
\addtocontents{loa}{\protect\addcontentsline{toc}{chapter}{List of Algorithms}}
\listofalgorithms
\cleardoublepage

My table of content is a long one and it spans over 2 pages. But they are printed as back-to-back. Is it possible that I can print them only on the right hand side pages ?

share|improve this question
    
Which document class do you use? A minimal working example (MWE) would be very helpful. Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. –  Kurt Jun 10 '13 at 15:29
add comment

3 Answers

up vote 5 down vote accepted

In case of two pages, package \afterpage helps in putting \afterpage{\cleardoublepage} right at the begin of the table of contents:

\documentclass[twoside]{report}
\usepackage[a6paper]{geometry}% for testing only
\usepackage{afterpage}
\AtBeginDocument{%
  \addtocontents{toc}{\protect\afterpage\protect\cleardoublepage}%
}
\usepackage{hyperref}

\begin{document}
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{\contentsname}
\tableofcontents
\chapter{A}
\section{B}
\chapter{C}
\section{D}
\chapter{E}
\section{F}
\chapter{G}
\section{H}
\chapter{I}
\section{J}
\chapter{K}
\section{L}
\chapter{M}
\section{N}
\end{document}
share|improve this answer
    
Tried this. Still no change. –  gaganbm Jun 7 '13 at 22:22
    
@gaganbm: The chapter header of the table of contents had interfered. Now the updated answer puts the \afterpage{\cleardoublepage} at the begin of the .toc file. –  Heiko Oberdiek Jun 7 '13 at 23:13
    
Perfect. Exactly what I needed. Thanks a lot. –  gaganbm Jun 7 '13 at 23:25
add comment

You can add commands to the TOC using \addtocontents{toc}{\whatever}. If your documentclass is book, memoir, scrbook, or another book-like class \addtocontents{toc}{\protect\cleardoublepage} should do what you want. Just insert it after the last chapter that you want to appear on page ix. I am not sure whether \protect is necessary.

share|improve this answer
add comment

Presumably you want blank even pages not just in the table of contents, but everywhere in the front matter. Package everyshi allows you to add "every shipout" code that can check whether the page is even and if yes, output a blank page. The counter \c@page can be used for this. You also need to switch off this feature inside main matter.

This code seems to work:

\usepackage{everyshi}
\makeatletter
\EveryShipout{\if@mainmatter\else\ifodd\c@page\null\pagebreak\fi\fi}
\makeathother
share|improve this answer
    
Very informative. Yes, I was looking for printing the front matter only on odd pages. Fore the rest of the pages, like abstract etc., it was easily done with '\cleardoublepage'. Anyways, I already used the other approach, but will take note of this one for future. –  gaganbm Jun 11 '13 at 7:06
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.