Between chapter and section level I sometimes need another level, which is indicated by a letter prefix. The table of contents might look like this:
1
1.1
1.2
2
A.2.1
A.2.2
B.2.1
B.2.2
3
3.1
Now I made myself a little command to set a prefix:
\makeatletter
\newcommand{\setsectionprefix}[1]{
\renewcommand*\thesection{#1\@arabic\c@chapter.\@arabic\c@section}
\setcounter{section}{0}
}
\makeatother
The problem is with hyperref, since it generates label, which do not match \thesection. Clicking on the B.2.1 entry in the toc jumps to B.2.1, because the label is just 2.1 and hyperref takes the first one. How can I fix this?
