From 48ae61c1ca6dcd89535dcb8f5fac088d9e222181 Mon Sep 17 00:00:00 2001 From: Malin Freeborn <malinfreeborn@tutamail.com> Date: Tue, 19 Jan 2021 23:35:07 +0100 Subject: [PATCH] more black side page --- bind.sty | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/bind.sty b/bind.sty index 0aa8d63f..a7bbf920 100644 --- a/bind.sty +++ b/bind.sty @@ -44,13 +44,13 @@ \newcounter{chapshift} \addtocounter{chapshift}{-1} +\newcounter{pageDarkness} +\setcounter{pageDarkness}{20} + \newcommand\pageSideColor{% black!\arabic{pageDarkness}% } -\newcounter{pageDarkness} -\setcounter{pageDarkness}{0} - \newcommand\ChapFrame{% \AddEverypageHook{% \ifodd\value{page} @@ -67,7 +67,7 @@ ] at ($ (current page.north east) + (-0cm,-2*\thechapshift cm) $) {\rotatebox{90}{\hspace*{.3cm}\parbox[c][1.5cm][t]{3.4cm}{% - \raggedright\textcolor{black}{\scshape\leftmark}}}}; + \raggedright\textcolor{white}{\scshape\leftmark}}}}; \end{tikzpicture}% }% } @@ -85,14 +85,16 @@ ] at ($ (current page.north west) + (-0cm,-2*\thechapshift cm) $) {\rotatebox{90}{\hspace*{.3cm}\parbox[c][1.5cm][t]{3.4cm}{% - \raggedright\textcolor{black}{\scshape\leftmark}}}}; + \raggedright\textcolor{white}{\scshape\leftmark}}}}; \end{tikzpicture}% }% } \fi \BgMaterial}% \stepcounter{chapshift}% - \addtocounter{pageDarkness}{5} + \ifnum\value{pageDarkness}<90 + \addtocounter{pageDarkness}{10} + \fi } % redefinition of \chaptermark to contain only the title -- GitLab