I want chapter numbers prefixed by a letter like
M1: First chapter of "M" series
M1.1 First section in first chapter of "M" series
M2: Second chapter of "M" series
...
then change the prefix, e.g. to R
R1: First chapter of "R" series
R2: Second chapter of "R" series
...
I tried with some suggestions in scrguide like chapterlinesformat, but either the numbering did not work at all or was not resembled in the toc.
The TOC should look like
M1 chapterName1.................1
M1.1 sectionname.............3
M2 chapterName..................5
R1 chapterName..................8
R1.1 sectionname............10
etc.
Any suggestions are welcome
Sorry for not giving a MWE, since it is NOT working. one of my attemps follows: %Minimum NOT working example
\documentclass[
a4paper,
10pt,
pagesize,
titlepage=true,
numbers=noenddot,
]{scrbook}
% deutsches Sprachpaket
\usepackage[ngerman]{babel}
\newcommand{\expprefix}{}
\renewcommand\chapterformat{%
\expprefix\thechapter %\chaptername
\vspace{6pt}%
}
\begin{document}
\tableofcontents
\chapter{This is standard numbering}
% set chapter Prefix to M
\renewcommand{\expprefix}{M}
\setcounter{chapter}{0}
\chapter{This chapter should be numbered M1}
\section{Section1 of first}
\section{Section2 of first}
\chapter{Second chapter of M-series}
%set chapter prefix to R
\renewcommand{\expprefix}{R}
\setcounter{chapter}{0}
\chapter{This chapter should be numbered R1}
\section{Section1 of first R-chapter}
\section{Section2 of first R-chapter}
\chapter{Second chapter of "R" series}
\end{document}
\thechapter
here rather