3

In my section titles I sometimes have to use italic letters for the entry in the table of contents. Unfortunately, this results in italic letters in the page headers. How can I avoid this? The page headers should look like the section titles.

\documentclass[twoside,openright,titlepage,numbers=noenddot,headinclude,
        footinclude=true,cleardoublepage=empty,
        BCOR=5mm,paper=a4,fontsize=10pt]{scrbook}
\usepackage{lipsum}

\usepackage[parts,beramono,eulerchapternumbers,%
    listings,manychapters,%
    floatperchapter]{classicthesis} 

\begin{document}
\tableofcontents
\pagestyle{scrheadings}
\chapter{First chapter}
\section{First section}
\lipsum[1-18]
\section[\textit{Second} section]{Second section}
\lipsum[1-12]
\end{document}
2

If you define a short title for your section or chapter, the classicthesis format takes this as your header text as well. With the command \sectionmark{} (and similarly \chaptermark{}) you are able to define a custom header version of your title. In this case, you are forced to use it in order to restore the original title writing.

% arara: pdflatex
% arara: pdflatex

\documentclass[twoside,openright,titlepage,numbers=noenddot,headinclude,
        footinclude=true,cleardoublepage=empty,
        BCOR=5mm,paper=a4,fontsize=10pt]{scrbook}
\usepackage{lipsum}

\usepackage[parts,beramono,eulerchapternumbers,%
    listings,manychapters,%
    floatperchapter]{classicthesis} 

\begin{document}
\tableofcontents
\pagestyle{scrheadings}
\chapter{First chapter}
\section{First section}
\lipsum[1-18]
\section[\textit{Second} section]{Second section}
\sectionmark{Second section}
\lipsum[1-12]
\end{document}
  • 1
    Thanks a lot. Didn't know, that there's such an easy way. I thought I have to change something in the thesis style or add something to the preamble. – djanna Jun 30 '14 at 7:34
  • @djanna Glad I could help. If the answer works for you, you should accept it as such. Accepting the answer and upvoting it is the way to say thank you here (and it reduces the number of "unanswered questions"). – LaRiFaRi Jun 30 '14 at 7:46

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.