2

I am trying to modify the headers in the classicthesis document class, which uses {scrpage2} of koma-script. What I want to have is no number in the sections header on the odd page. I have looked on the questions here and found some answer that I tried. However, the result is that there still appear numbers, albeit 0 for the section and the chapter number. (example: 0.0 in the introduction, and 1.0, 2.0 etc. for chapter 1, chapter 2).

Also, I would like to make the unnumbered chapters such as "Introduction", "Conclusion", and "bibliography" in small caps as the regular chapters.

MWE:

  \documentclass{scrbook}

\PassOptionsToPackage{automark}{scrpage2}
\RequirePackage{scrpage2} 
\clearscrheadings
\setheadsepline{0pt}
\ifthenelse{\boolean{@nochapters}}
    {\relax}
    {\renewcommand{\chaptermark}[1]{\markboth{\spacedlowsmallcaps{#1}}   {\spacedlowsmallcaps{#1}}}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\enspace\spacedlowsmallcaps{#1}}} 
\lehead{\mbox{\llap{\small\thepage\kern2em}\headmark\hfil}}
\rohead{\mbox{\hfil{\headmark}\rlap{\small\kern2em\thepage}}}
\renewcommand{\headfont}{\small}  
   \DeclareRobustCommand{\fixBothHeadlines}[2]{} 
    \def\toc@heading{%
        \ifthenelse{\boolean{@nochapters}}%
        {\section*{\contentsname}}%nochapters
        {\chapter*{\contentsname}}%chapters
        \@mkboth{\spacedlowsmallcaps{\contentsname}}{\spacedlowsmallcaps{\contentsname}}}

    \usepackage[english]{babel}
 \usepackage{blindtext}

\begin{document}
\blinddocument
\Blinddocument

\end{document}      

I get these results: odd number, section, caps, but chapter number and zero even page, no chapter, not in caps

  • Please clarify: Where is the code taken from? Copied from classicthesis.sty or already altered by you? – Speravir Dec 9 '13 at 23:16
  • Hi, thanks for your answer. Where can I put my mew? I don't have enough space in the comment here. – Frank Ejby Poulsen Dec 13 '13 at 12:45
  • The code is copied from classicthesis.sty and compiled into a MWE. – Frank Ejby Poulsen Dec 13 '13 at 13:11
1

I've found a way to make it work, but it's by specifying manually every single entry (which is fastidious). I enter the following:

    \addchap{Introduction: On Cosmopolitanism}
    \markboth{\MakeUppercase{\spacedlowsmallcaps{Introduction:}}}{\MakeUppercase{\spacedlowsmallcaps{On Cosmopolitanism}}}

Same for the section:

    \addsec{Cosmopolitan theory}
    \markboth{\MakeUppercase{\spacedlowsmallcaps{Introduction: On Cosmopolitanism}}}{\MakeUppercase{\spacedlowsmallcaps{Cosmopolitan Theory}}}
  • You could convert these into your own commands and use these instead: \newcommand*{\mychap}[2]{\addsec{#1}\markboth{\MakeUppercase{\spacedlowsmallcaps{#2}}}{\MakeUppercase{\spacedlowsmallcaps{#2}}}} and analoguesly for sections. – Speravir Dec 17 '13 at 14:19
  • Thanks. Where do you mean I should put these commands? – Frank Ejby Poulsen Dec 19 '13 at 13:34
  • Both \newcommand… into preamble, best place is where you already have definitions for chapters and/or sections. In document body you replace these two lines for every chapter/section with the according new command. – Speravir Dec 19 '13 at 19:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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