Another user asked asked a similar question; yet I just need the top header and not the full design from edp. And I provide a minimal working example.
This is how it should look like:
If you press one of the upper header boxes, they will redirect you to the right chapter. I thought it was really nice, so I wanted it for private purpose. Yet I have trouble with recreating the effect.
Here is what I tried with tikz:
\documentclass{book}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{lipsum}
\pagestyle{empty}
\begin{document}
\begin{tikzpicture}[overlay, remember picture]
\foreach \x in {1,...,7};
\draw let \p1 = (current page.west), \p2 = (current page.east) in node[minimum width=\x2-\x1, minimum height=2cm, draw, rectangle, fill=black!90, anchor=north west, align=left, text width=\x2-\x1] at ($(current page.north west)$) {\Large\bfseries \quad #1};
\end{tikzpicture}
\chapter{Chapter one}
\end{document}
Well, it creates a big black box in the header with no text in it. So it doesn't work at all. I thought of using the \foreach function, but had trouble with it.
Basically I need help with creating the boxes at the top and I have problems with letting them redirect to the chapter.
Hopefully you can help me?



fill=black!90so you create a line of almost completely black rectangles. – cfr Mar 26 '16 at 20:09#1here? Something from the\foreachloop? – Mar 26 '16 at 20:45