0

I am using the scrrprt-class and would like my chapter titles to have the following layout:

Desired layout

How can I achieve this?

Note that the chapter shall appear in the pdfbookmarks as "1 Introduction".

Thanks in advance.

3

Pass the chapterprefix document class option to get the 'Chapter xx' titles. For the numbered bookmarks, you can load the bookmark package with the numbered option, like so:

\documentclass[chapterprefix]{scrreprt}
\usepackage{hyperref}
\usepackage[numbered]{bookmark}

\begin{document}
    \chapter{Introduction}
\end{document}

enter image description here


The below code contains two further adjustments, one for changing vertical distance between the "Chapter xx" and the chapter title, and another for changing the font size of the "Chapter xx".

\documentclass[chapterprefix]{scrreprt}
\usepackage{hyperref}
\usepackage[numbered]{bookmark}

\RedeclareSectionCommand[innerskip=0pt]{chapter} % <--- Vary distance here (Thanks @esdd!)


\setkomafont{chapterprefix}{\large} % Default is \LARGE

\begin{document}
    \chapter{Introduction}
\end{document}

enter image description here

  • Thank you. Now: How can I reduce the vertical spacing between the two lines? And how can I make the prefix smaller in size compared to the actual chapter title? – dan Sep 27 '17 at 15:26
  • @Daniel See update. In the future, please do provide a minimal, compilable code (what we call a minimal working example (MWE)) like what I have shown above when asking questions on this site. – Troy Sep 27 '17 at 15:39
  • To change the vertical distance between the two lines use \RedeclareSectionCommand[innerskip=0pt]{chapter} – esdd Sep 27 '17 at 15:52

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.