0

I have used \markboth to specify specific text in certain sections of my document. Now in the middle part of the documents (the real chapters), I want to chapter name left and the section name right. I used \chaptermark, but intro keeps showing. I want to keep this as simple as possible and just use markboth if possible, it would seem I am doing something simple wrong...

\documentclass[parskip=half,10pt,twoside]{scrbook}

\usepackage[dottedtoc, floatperchapter, parts]{classicthesis}

\begin{document}
\chapter*{Introduction}
\addcontentsline{toc}{chapter}{\tocEntry{Introduction}}
\markboth{\spacedlowsmallcaps{Introduction}}{\spacedlowsmallcaps{Introduction}}

\chapter[Short title]{Full title}
 \renewcommand{\chaptermark}[1]{%
\markboth{\thechapter.\ #1}{}}

\end{document}

I managed to print the chapter number + title on the left with the following command. Now I just need the section number + title on the right.

 \renewcommand{\chaptermark}[1]{\markboth{\spacedlowsmallcaps{\chaptername}\ \spacedlowsmallcaps{\thechapter}.\ #1}{}}

I have tried \markrigth but that does not work. Any ideas? I am sure this is pretty simple.

4
  • Possible duplicate of Correct use of hyperref and addcontentsline
    – Johannes_B
    Aug 27 '14 at 12:30
  • \markboth{\leftmark}{\rightmark}
    – Johannes_B
    Aug 27 '14 at 12:31
  • That was the first one I tried, but it keeps showing introduction.
    – dorien
    Aug 27 '14 at 12:36
  • Because \chapter does not update using markboth. But since you want an unnumbered chapter and a toc entry and updated headers; use the proper command \addchap
    – Johannes_B
    Aug 27 '14 at 12:39
0

The following code fixed it for me. Be sure to put this before you first chapter title occurs.

 \renewcommand{\chaptermark}[1]{\markboth{\spacedlowsmallcaps{\chaptername}\ \spacedlowsmallcaps{\thechapter}.\ #1}{}}

 \renewcommand{\sectionmark}[1]{ \markright{\spacedlowsmallcaps{\thesection}.\ \spacedlowsmallcaps{#1}}{} }

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.