diff options
Diffstat (limited to 'Master/texmf-doc/doc/german/latex-tipps-und-tricks/thumb.sty')
-rw-r--r-- | Master/texmf-doc/doc/german/latex-tipps-und-tricks/thumb.sty | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Master/texmf-doc/doc/german/latex-tipps-und-tricks/thumb.sty b/Master/texmf-doc/doc/german/latex-tipps-und-tricks/thumb.sty new file mode 100644 index 00000000000..7d11b522efa --- /dev/null +++ b/Master/texmf-doc/doc/german/latex-tipps-und-tricks/thumb.sty @@ -0,0 +1,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} +} |