General ⇒ A book with chapter names on the side of the page
A book with chapter names on the side of the page
I would also like to have it let's say in blue with white letters just like in the picture. I don't even know what to search for on the web. Any tips on how to do it or links will be highly appreciated.
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
A book with chapter names on the side of the page
the titlesec package allows you to customise the sectional headings.
Edit: I initially misunderstood your question. I designed an example to show some possibility to achieve what you desire (the code contains some remarks):
Code: Select all
\documentclass[twoside]{book}
\usepackage[absolute]{textpos}%to place the colored frame at absolute positions
\usepackage{color}%we will need colors
\usepackage{everypage}%we will perform some action (place a colored frame) in every page
\usepackage{ifthen}%but the position depends on whether the page is odd or even
\usepackage{lipsum}%just to generate some text
%declaration of the box that will contain the colored frame and its label
\newsavebox\myboxa
%creation of the colored frame
\newcommand\mylabel[1]{%
\savebox\myboxa{\colorbox{blue}{\parbox[c][2cm][c]{3cm}{\centering\textcolor{white}{\Huge #1}}}}}
%placement of the colored box at the right extreme for even pages and at the left extreme for odd pages
\AddEverypageHook{%
\ifthenelse{\isodd{\thepage}}%
{%
\begin{textblock*}{3cm}(18.4cm,2cm)
\usebox\myboxa
\end{textblock*}
}%
{%
\begin{textblock*}{3cm}(0cm,2cm)
\usebox\myboxa
\end{textblock*}
}}
\begin{document}
\chapter{First chapter}
\mylabel{A}
\lipsum[1-50]
\chapter{Second chapter}
\mylabel{B}
\lipsum[1-50]
\end{document}
2) In the CTAN site you can find information about the packages that I used.