blob: 4a082e6261fe501a6c969ef5a2665cb0b703c708 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
% thumb.sty
\RequirePackage{ifthen,calc}
\newcounter{y}
\newcommand{\thumb}
{\unitlength1cm
\begin{picture}(0,0)
\ifthenelse{\value{chapter}>0}
{% 3 = 1cm Hoehe + 2 cm Abstand
\setcounter{y}{-3*\value{chapter}-2}
\put(2,\value{y}){\makebox(0,0){\rule{2cm}{1cm}}}
}
{}
\end{picture}
}
% Minimaler Seitenstil
\newcommand{\ps@thumb}
{\renewcommand{\@oddhead}{\hfil\thepage\thumb}
\renewcommand{\@evenhead}{\thepage\hfil}
}
|