Document Classesscrheaders all show "Contents"

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
thrope
Posts: 9
Joined: Tue Jun 03, 2008 10:41 pm

scrheaders all show "Contents"

Post by thrope »

Hi,

I am using koma-script scrreprt and am trying to use scrheadings from scrpage2 package. However I have a problem. All pages which show the extra heading show "Contents", even when the page is in another section completely. What is going on? At the moment I don't have much content - just the layout so the chapters are small - but that shouldn't make any difference should it?

Here is my preamble - am I doing anything wrong?

Code: Select all

\documentclass[	paper=a4, 
		fontsize=12pt, 
		titlepage, 
		abstract=true, 
		normalheadings, 
		twoside,
		openright,
		BCOR10mm, 
		DIV=calc ]{scrreprt}

% Standard stuff
\usepackage[]{amsmath}
\usepackage{pdfsync}
\usepackage[pdftex]{graphicx}

% Fonts
\usepackage[T1]{fontenc}
%\usepackage[bitstream-charter]{mathdesign}
\usepackage[utopia]{mathdesign}
\usepackage{helvet}

\usepackage{scrpage2}
\pagestyle{scrheadings}

% Spacing
\usepackage{setspace}
\onehalfspacing
\typearea[current]{calc} % recalculate typearea

% Misc stuff
\usepackage{url}
\usepackage[squaren]{SIunits}
\usepackage{color}
\definecolor{spot}{rgb}{0,0.2,0.6} 
\usepackage[pdftex,colorlinks=true,linkcolor=spot]{hyperref}
%\usepackage[hang,small,bf]{caption}
%\setlength{\abovecaptionskip}{0pt} 
%\usepackage{listings}
%\lstloadlanguages{python}
%\lstset{basicstyle=\tiny\ttfamily,showstringspaces=false,tabsize=4}
\maketitle and \tableofcontents are inside singlespace environments, but playing around with that didn't seem to make any difference to the fact all the headings show "Contents"

Thanks for any help or ideas....

Recommended reading 2024:

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

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

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

scrheaders all show "Contents"

Post by localghost »

Try a command sequence to get things work.

Code: Select all

\usepackage[automark]{scrpage2}
\automark[chapter]{section}
\pagestyle{scrheadings}
For more Information refer to the documentation of KOMA Script.


Best regards
Thorsten
Post Reply