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 am using scrpage2 with scrbook. I would like to have no numbers or numbering of sections, chapters, etc.. in the header. How can I achieve that?

I have the following example:

\documentclass[12pt, draft]{scrbook}
\usepackage[automark]{scrpage2}   
\renewcommand*{\headfont}{% 
\normalfont\scshape} 

\begin{document}
\pagestyle{scrheadings}

%Formatting
\ohead{\pagemark} 
\cehead{\leftmark}
\cohead{\leftmark}
\ofoot[]{} 

\chapter{Intro}
\automark[chapter]{chapter} 

\chapter{Chapter 1}
\cehead{\leftmark} 
\cohead{\rightmark} 
\automark[subsection]{chapter}

\chapter{Chapter 2}
\automark[section]{chapter}

\chapter{Final Chapter}
\cehead{\leftmark} 
\cohead{\leftmark} 

\end{document}
share|improve this question
    
Does \setcounter{secnumdepth}{-1} in your preamble solve your problem? It removes the numbering from all areas in your MWE, not only the header. –  Werner Apr 11 '12 at 19:32
    
Hmm no, I already use \setcounter{secnumdepth}{1} to get rid of the numbering for subsections. But I want the numbering of sections and chapters in the content and in the table of content. (In my case I got rid of the numbers in the ToC too, but thats not relevant.. ) –  algomachine Apr 12 '12 at 8:52
add comment

1 Answer

up vote 6 down vote accepted

Assuming you want to turn off numbering only in the header: As you are using a KOMA-Script class, simply redefine \chaptermarkformat and \sectionmarkformat (and, if applicable, \subsectionmarkformat) to do nothing.

\documentclass{scrbook}

\usepackage[automark]{scrpage2}
\pagestyle{scrheadings}

\renewcommand*{\chaptermarkformat}{}
\renewcommand*{\sectionmarkformat}{}

\usepackage{lipsum}

\begin{document}

\chapter{foo}

\section{foobar}

\lipsum[1-12]

\end{document}
share|improve this answer
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.