Generaltabs ("onglets")

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
latexforever
Posts: 120
Joined: Fri Nov 14, 2008 9:40 pm

tabs ("onglets")

Post by latexforever »

Hi everybody,

I have to use tabs on the different pages of my LaTeX report so, when published, the reader reaches easier my document's different chapters.

I have tried two or three solutions, but nothing works.
Does somebody have a homemade package, or something else?

Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

tabs ("onglets")

Post by localghost »

latexforever wrote:[...] I have tried two or three solutions, but nothing works. [...]
Present these approaches and we will see. But for me it only seems to be a matter of the right settings for the hyperref package.


Best regards
Thorsten¹
latexforever
Posts: 120
Joined: Fri Nov 14, 2008 9:40 pm

tabs ("onglets")

Post by latexforever »

Evidently.

The translation of the word ``tabs'' is ``onglets'', in French. I think it is better to google using this word, because typing ``tabs'' gives results about the tabulation, and this is not the subject.

Here is a link: http://www.grappa.univ-lille3.fr/FAQ-LaTeX/6.29.html (well-known GRAPPA faq).
It is evident that we have to use the fancyhdr package.

I've tried the B. Bayart's package (``onglet''), but the square is not at the place I want, even after modification of all the parameters of the package! That's weird.

Another solution?
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

tabs ("onglets")

Post by phi »

latexforever wrote:I think it is better to google using this word
Then I find that it's something to eat:
http://en.wikipedia.org/wiki/Hanger_steak
The hanger steak has traditionally been more popular in Europe. In French, it is known as the onglet, in Italian the lombatello, and in Spanish the solomillo de pulmon.
But I found what you mean:
http://fr.wikipedia.org/wiki/Onglet_(informatique)
So the question is how you want to implement tabs in a page-based system like PDF. Do you have any examples how this should look like?
latexforever
Posts: 120
Joined: Fri Nov 14, 2008 9:40 pm

tabs ("onglets")

Post by latexforever »

phi wrote:
latexforever wrote:I think it is better to google using this word
Then I find that it's something to eat:
http://en.wikipedia.org/wiki/Hanger_steak
The hanger steak has traditionally been more popular in Europe. In French, it is known as the onglet, in Italian the lombatello, and in Spanish the solomillo de pulmon.
I was completely laughing! :)
But I found what you mean:
http://fr.wikipedia.org/wiki/Onglet_(informatique)
So the question is how you want to implement tabs in a page-based system like PDF. Do you have any examples how this should look like?
I was sure not to be well understood. When you open a big book, there are sometimes black zones at the right of the pages. The aim of these forms is when you open the book to directly show you which pages are for which chapter.

Do you see what I mean?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

tabs ("onglets")

Post by localghost »

latexforever wrote:I was sure not to be well understood. When you open a big book, there are sometimes black zones at the right of the pages. The aim of these forms is when you open the book to directly show you which pages are for which chapter. [...]
This description right at the beginning would have led you much quicker to a possible solution. The fancyhdr manual introduces such thumb-indexes (Section 21, figures 4 and 5). Perhaps this is a suitable solution for you.
latexforever
Posts: 120
Joined: Fri Nov 14, 2008 9:40 pm

Re: tabs ("onglets")

Post by latexforever »

This is exactly what I wanted. The problem is that there is no further explanation about the way to implement it.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

tabs ("onglets")

Post by localghost »

latexforever wrote:This is exactly what I wanted. The problem is that there is no further explanation about the way to implement it.
Of course there is. Take a careful look at figure 5 (and its caption) which contains the according code for the picture in figure 4. That's the reason why I mentioned both figures.
latexforever
Posts: 120
Joined: Fri Nov 14, 2008 9:40 pm

Re: tabs ("onglets")

Post by latexforever »

Sorry, I didn't notice it. I'm going to think about this solution. Here will be new pieces of information soon.
latexforever
Posts: 120
Joined: Fri Nov 14, 2008 9:40 pm

tabs ("onglets")

Post by latexforever »

Directly, I notice different things.
Using the following MWE:

Code: Select all

\documentclass[10pt]{book}%report


\usepackage{fancyhdr}


\setlength{\unitlength}{18mm}
\newcommand{\blob}{\rule[-.2\unitlength]{2\unitlength}{.5\unitlength}}
\newcommand\rblob{\thepage
\begin{picture}(0,0)
\put(1,-\value{section}){\blob}
\end{picture}}
\newcommand\lblob{%
\begin{picture}(0,0)
\put(-3,-\value{section}){\blob}
\end{picture}%
\thepage}
\pagestyle{fancy}
\cfoot{}
\newcounter{line}
\newcommand{\secname}[1]{\addtocounter{line}{1}%
\put(1,-\value{line}){\blob}
\put(-7.5,-\value{line}){\Large \arabic{line}}
\put(-7,-\value{line}){\Large #1}}
\newcommand{\overview}{\thepage
\begin{picture}(0,0)
\secname{Introduction}
\secname{The first year}
\secname{Specialisation}
\end{picture}}


\begin{document}

\fancyhead[R]{\overview}\mbox{}\newpage % This produces the overview page
\fancyhead[R]{} % Front matter may follow here
\clearpage
\fancyhead[RE]{\rightmark}
\fancyhead[RO]{\rblob}
\fancyhead[LE]{\lblob}
\fancyhead[LO]{{\leftmark}

\chapter{Introduction}
\newpage
\section{The first year}
\chapter{Test}


\end{document}
, I notice that when I begin a chapter, there is no thumb-index. It appears after, but I want it to appear everywhere in the chapter, even on the first page of the chapter.

A solution?
Post Reply