I would like to add colour chapter thumb to my code
\documentclass[headsepline,BCOR=10mm,11pt,twoside,openright,cleardoublepage=empty,bibliography=totoc,numbers=noenddot]{scrbook}
\usepackage[activate=.{true,nocompatibility},final,tracking=true,kerning=true,spacing=true,factor=1100,stretch=10,shrink=10]{microtype}
\usepackage[paperwidth=17cm,paperheight=24cm,top=2.5cm,bottom=2.5cm,inner=2.0cm,outer=1.5cm]{geometry}
\usepackage[numbers,comma,square,sort&compress]{natbib}
\usepackage[format=plain,singlelinecheck=false,font={footnotesize,sl},labelfont=bf]{caption}
\makeatletter
\newcommand{\thickhline}{
\noalign {\ifnum 0=`}\fi \hrule height 1pt
\futurelet \reserved@a \@xhline
}
\makeatother
\newcolumntype{C}[1]{>.{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\let\svthefootnote\thefootnote
%\textheight 1in
\newcommand\blankfootnote[1]{%
\let\thefootnote\relax\footnotetext{#1}%
\let\thefootnote\svthefootnote%
}
\begin{document}
\input{chapters 1}
\input{chapters 1}
\input{chapters 1}
\input{chapters 1}
\input{chapters 8}
\end{document}
and I just want the side colour box identifying every chapter for the first four chapters; example I don't want it for the eighth one! (I would like that for every chapter the box will move page by page) it's very hard I know, hope we'll find a solution!
EDIT: I would like to have a chapter mark in the margin of every page of different colour, that would be visible when the book it's close. different colours for different chapters, but not for every chapter! I tried to add :
\usepackage{tikzpagenodes}
\usepackage{everypage}
\usepackage{lipsum}
\usepackage{etoolbox}
\newtoggle{skippage}
\togglefalse{skippage}
\makeatletter
\patchcmd{\cleardoubleoddstandardpage}%
{\hbox {}\newpage}%
{\hbox {}\toggletrue{skippage}\newpage\togglefalse{skippage}}%
{}{}
\makeatother
\AddEverypageHook{%
\ifnum\value{chapter}<8
\nottoggle{skippage}{%
\begin{tikzpicture}[remember picture,overlay]
\node[fill=blue,text=white] at ([yshift=100pt]current page marginpar area.center) {\resizebox{!}{1cm}{\thechapter}};
\end{tikzpicture}% label
}{}
\fi
} b
but it doesn't work, as I could see from your screenshot and yours it is not very close to the margin of the page