GeneralToC always on even page

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Lord
Posts: 3
Joined: Sun Sep 16, 2012 6:36 pm

ToC always on even page

Post by Lord »

Hello,

I have a problem with my document. I use the scrbook class with the two options: twoside and openright. I want to print my document two sided once it is finished. But when I create the PDF the ToC always ends up on an even number i.e. on the backside of the paper, so that you have a empty page and only after turning the page you can see the ToC. I tried inserting an empty page but that does not help either. The ToC always ends up on the even page number.

How can I force the ToC onto an odd page number?

Minimal example:

Code: Select all

\documentclass[
 12pt,
  a4paper,
  titlepage,
  appendixprefix,
  headings=normal,
  parskip=half*,
%  chapterprefix,
  twoside,
  openright,
  liststotoc
]{scrbook}

\begin{document}
 \begin{titlepage}
   \include{titel}
 \end{titlepage}
 \thispagestyle{headings}
 \pagenumbering{roman}
 ~\newpage %to get "erklaerung" onto even page
 \thispagestyle{headings}
 \include{erklaerung}
 \include{gutachter}

  %PROBLEM is here: should be on even page number - is on odd one.
  \tableofcontents{}
  \listoffigures{}

  \thispagestyle{empty}
  \include{abstract}
  \thispagestyle{empty}
  ~\newpage
  \setcounter{page}{1}
  \pagenumbering{arabic}
  \include{chapter1}
\end{document}
greetings
Lord
Last edited by localghost on Sun Sep 16, 2012 6:54 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.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

ToC always on even page

Post by localghost »

Due to external files that are not present here your example is not compilable thus quite useless. Please provide a proper minimal example to avoid guesswork and random shots.

With your settings I can't comprehend the described behaviour.

Code: Select all

\documentclass[
  fontsize=12pt,
  chapterprefix=true,
  listof=totoc,
  parskip=half*,
  ngerman
]{scrbook}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{blindtext}

\begin{document}
  \begin{titlepage}
    Titelseite
  \end{titlepage}

  \tableofcontents

  \Blinddocument
\end{document}
As you can see, the ToC is on an odd (right) page. Don't be irritated by the type area. The KOMA-Script user guide has detailed explanations.

By the way, you should read about commands like \frontmatter, \mainmatter and \backmatter in order to avoid messing around with so much \pagenumbering commands. The user guide for sure will help you on here, too. And the same document will also tell you that much of your options for the document class are superfluous because they are default.

But finally these ideas are only assumptions because nobody else than you knows the content of the external files.


Best regards and welcome to the board
Thorsten
Lord
Posts: 3
Joined: Sun Sep 16, 2012 6:36 pm

Re: ToC always on even page

Post by Lord »

Thanks for the fast answer.

Basically in both external files there is each time only one sentence (currently for test purpose ;) )

I had something else there and thought that it could be because of the files so I changed everything to just one sentence.

I will take a look at the stuff you provided links for.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

ToC always on even page

Post by localghost »

Lord wrote:[…] Basically in both external files there is each time only one sentence (currently for test purpose ;) ) […]
Even if there is only one sentence in these files, the ToC should always appear on an odd (right) page since it is nothing else than a new chapter. The settings of your document force chapters to always begin on an odd (right) page. If you observe a different behaviour, kindly prepare a minimal example that lets us comprehend what might be going wrong.
Lord
Posts: 3
Joined: Sun Sep 16, 2012 6:36 pm

ToC always on even page

Post by Lord »

I read up on the \frontmatter, \mainmatter and \backmatter commands and I changed all this renumbering and stuff. After having changed it the ToC is now displayed correctly on an odd page.

Thanks again for your help.


Best
Lord
Post Reply