Is it possible to add a colored margin to the pages according to the example below with having the chapter title written on the side (alternatively, it could say "Ch.1: Heading on level (chapter)") and the section title written on top (alternatively, it could say "1.1 Heading on level 1 (section)" and "1.2 Lists") as well as the page number at the bottom of the colored area (near the middle of the page).
And I would like to have every chapter with a different color.
The width of the margin will have to be customized manually I guess but 1cm should be fine.
I am using the book document class: \documentclass[11pt,twoside]{book}
What I have so far would be the following MWE:
\documentclass[12pt, twoside]{book}
\usepackage[T1]{fontenc}
\usepackage[total={6in,10in}, left=1.5in, top=0.5in, includeheadfoot]{geometry}
\usepackage{blindtext}
\begin{document}
\frontmatter
\tableofcontents
\mainmatter
\blinddocument
\blinddocument
\end{document}

\chaptercommand – Iacobus1983 Jun 29 '23 at 09:57