0

I am writing a major report in Norwegian. I need to remove the fixed name - and numbering of the document's parts. The MWE shows where I am at. The MWE produces a good ToC, but the parts page retains an error - a . above the part name.

Using \part*{} is not an option as it removes the entry from ToC, and using an \addcontentsline{} will result in an incorrect page number being reported in the ToC.

\documentclass{scrbook}
\usepackage[norsk]{babel}
\addto\captionsnorwegian{\renewcommand{\partname}{}}
\setcounter{part}{-\maxdimen}

\begin{document}
\tableofcontents

\part{bla}

\end{document}

enter image description here

12
  • norwegian vs norsk (those probably need to match)
    – daleif
    Commented Jan 18, 2022 at 10:22
  • Why not just use \part*{bla}?
    – daleif
    Commented Jan 18, 2022 at 10:22
  • @daleif I do not use \part*{} because the page number in the toc gets messed up from that (using \addcontentsline{} to get it into the ToC) and the example above does yield the desired outcome - but only in the ToC.
    – The V
    Commented Jan 18, 2022 at 10:37
  • @daleif I tried matching them - no dice I am afraid.
    – The V
    Commented Jan 18, 2022 at 10:41
  • 1
    Do not redefine \partname to be empty. If you want to change the content of the part prefix line, you can redefine \partformat. But for an unnumbered part with ToC entry use \addpart (provided by the KOMA-Script class).
    – esdd
    Commented Jan 18, 2022 at 12:07

1 Answer 1

2

The KOMA-Script class scrbook provides \addpart for an unnumbered part title with ToC entry.

\documentclass{scrbook}
\usepackage[norsk]{babel}
\begin{document}
\tableofcontents
\addpart{bla}
Text
\end{document}
1
  • Thanks! I knew there had to be a simple solution.
    – The V
    Commented Jan 18, 2022 at 11:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .