Page Layout ⇒ Navigator on Margin
Navigator on Margin
I have been looking for this everywhere but couldn't find anything...
I would like to create some kind of navigator on the margin. The kind of navigation you see in dictionaries (the letters are on the side so that you know which sides you have to look up for each letter)
I have to create the layout of our yearbook. Therefore it would be really nice to have the chapter names on the margin if you understand what I mean...
Anyone an idea how I could manage this?
Thanks!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Navigator on Margin
Code: Select all
\documentclass{book}
\usepackage[english]{babel} % needed for blindtext
\usepackage{blindtext} % for autogenerating text
\usepackage{fancyhdr}
%
%
\newcommand{\rightchapname}{\thepage
\begin{picture}(0,0)
\put(20,-150){\leftmark}
\end{picture}}
\newcommand{\leftchapname}{%
\begin{picture}(0,0)
\put(-50,-150){\leftmark}
\end{picture}%
\thepage}
%
\pagestyle{fancy}
\fancyhead{}
\fancyhead[RO]{\rightchapname}
\fancyhead[LE]{\leftchapname}
%
% Remove chapter number from chapter name in headers/footers
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\begin{document}
\chapter{Beginning}
\Blindtext[10][10]
\chapter{Middle}
\Blindtext[10][10]
\chapter{End}
\Blindtext[10][10]
\end{document}
Re: Navigator on Margin
thank you very much. I didn't know how those things were called, but the thumb-indexes are exactly what I've searched for.