I was given the following code for creating a "chapter" on top of the page, followed by the "title" of the page, which is displayed below "chapter".
This is the document class I use:
\documentclass[chapterprefix]{scrreprt}
I have the following problem: I would like only particular \chapters to display "chapter: [number]" in the toc before a "title". The title should still be displayed just without "chapter: [number]". Right now all my \chapters display a chapter: [number] in front of the title in the toc and on the page.
Also, how to I remove the colons that appear after "Chapter[:]" on the page (but leave them in the table of contents)?
Additionally, by applying the \documentclass that was given to me something changed. I don't know whether the font got smaller but my pages shrank from about 60 to 54. Any idea?
\pagestyle{headings} %chapter in toc and on page (numbering)
\renewcommand*{\chapterformat}{%
\mbox{\chapappifchapterprefix{\nobreakspace}\thechapter\autodot:
\IfUsePrefixLine{}{\enskip}}%
}
\renewcommand*{\chaptermarkformat}{\chapapp\ \thechapter\autodot:\enskip}
\RedeclareSectionCommand[
tocentrynumberformat=\tocentrywithprefix{\chapapp},
tocdynnumwidth
]{chapter}
\newcommand\tocentrywithprefix[2]{\mbox{#1~#2:}}
\renewcommand*{\raggedchapter}{\centering}
12pt
with the classscrreprt
, but here you removed it. Maybe it's only that the font size shrank from 12pt to 11pt. You could try to put the option12pt
back.\documentclass[12pt,chapterprefix]{scrreprt}
.