Bilatex et Thumbs

Tout ce qui concerne le langage TeX/LaTeX et ses variantes. Ce langage est utilisable sur le forum via les balises tex.
[participation réservée aux utilisateurs inscrits]
Règles du forum
Merci de soigner la rédaction de vos messages et de consulter ce sujet avant de poster. Pensez également à utiliser la fonction recherche du forum.
anonyme74170
Utilisateur éprouvé
Utilisateur éprouvé
Messages : 111
Inscription : jeudi 21 avril 2016, 11:34

Bilatex et Thumbs

Message non lu par anonyme74170 »

Bonjour,

Si dans le code qui suit, j'utilise les package "biblatex" et "thumbs", j'obtiens pour la page résumant les onglets que les chapitres 1 à 6 (page 5 document)
Si au contraire, je supprime du préambule les packages "biblatex" et "csquotes" alors là j'obtiens bien mes 13 chapitres.

Dans tous les cas, les onglets sont bien affichés à chaque page de chaque chapitre.

Code : Tout sélectionner

% Corrigé après la réponse de JJR
\documentclass[twoside]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[frenchb]{babel}
\usepackage[hyperindex=false, linktoc=all]{hyperref}  
\hypersetup{colorlinks=true,linkcolor=blue, citecolor=blue} 
\usepackage[thumblink=none,linefill=dots,height={auto},minheight={33pt},%
            width={40pt},distance={2mm},topthumbmargin={40pt},bottomthumbmargin={40pt},%
            nophantomsection=false,ignorehoffset=true,ignorevoffset=true,final=true,%
            hidethumbs=false,verbose=true]{thumbs}            
\usepackage{lipsum}
\usepackage[backend=bibtex, style=authoryear, backref, useprefix=true]{biblatex} 
\usepackage{csquotes}

\begin{document}
\pagenumbering{arabic}
\section*{Example for thumbs}
\tableofcontents
\addthumbsoverviewtocontents{chapter}{Thumb marks overview}
\thumbsoverview{Table of Thumbs}

\chapter{Chaptitre 1}
\addthumb{First Chap}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]

\chapter{Chaptitre 2}
\addthumb{Chaptitre 2}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]

\chapter{Chaptitre 3}
\addthumb{Chaptitre 3}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]

\chapter{Chaptitre 4}
\addthumb{Chaptitre 4}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]

\chapter{Chaptitre 5}
\addthumb{Chaptitre 5}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]

\chapter{Chaptitre 6}
\addthumb{2Chaptitre 6}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]

\chapter{Chaptitre 7}
\addthumb{Chaptitre 7}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]

\chapter{Chaptitre 8}
\addthumb{Chaptitre 8}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]

\chapter{Chaptitre 9}
\addthumb{Chaptitre 9}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]

\chapter{Chaptitre 10}
\addthumb{Chaptitre 10}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]

\chapter{Chaptitre 11}
\addthumb{Chaptitre 11}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]

\chapter{Chaptitre 12}
\addthumb{Chaptitre 12}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]

\chapter{Chaptitre 13}
\addthumb{Chaptitre 13}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]
\end{document}
Compiler 4 fois.
Je souhaite obtenir la page d'onglets avec les 13 chapitres et pouvoir utiliser la bilbiographie.
Avez-vous rencontré ce problème ? Avez-vous une solution à proposer ?

Merci pour votre aide.
BVA

Linux mint DE, Texmaker 4.5 et TeXlive.
Dernière modification par anonyme74170 le mardi 24 mai 2016, 18:37, modifié 2 fois.
marco56
Utilisateur chevronné
Utilisateur chevronné
Messages : 1143
Inscription : jeudi 25 novembre 2010, 22:10

Re: Bilatex et Thumbs

Message non lu par marco56 »

Déjà, pas de compilation chez moi :

Code : Tout sélectionner

! Package pageslts Error: etoolbox package loaded before atveryend package.
anonyme74170
Utilisateur éprouvé
Utilisateur éprouvé
Messages : 111
Inscription : jeudi 21 avril 2016, 11:34

Re: Bilatex et Thumbs

Message non lu par anonyme74170 »

Bonjour,

Merci Marco56.
Sur LMDE, Texmaker et texlive je confirme ne pas avoir de problème de compilation.
En revanche, j'ai fait un test sur Windows, texmaker 4.5, miktex 2.9 et là j'ai le même problème de compilation que Marco56 si j'utilise à la fois biblatex - csquote et thumbs :

1) commenter les 2 lignes des packages "biblatex" et "csquote" : je n'ai pas de problème de compilation
2) décommenter les lignes ci-dessus et commenter les lignes du package "thumbs" ainsi que les lignes relatives à thumbs, je n'ai pas de problème de compilation.
Dans ce dernier cas, j'ai bien ma page "résumé des onglets".

Ma réponse apporte-t-elle un éclairage ?
Merci bien.
BVA
gigiair
Utilisateur chevronné
Utilisateur chevronné
Messages : 2834
Inscription : samedi 08 juillet 2006, 20:56
Localisation : Saint Bonnet Elvert

Re: Bilatex et Thumbs

Message non lu par gigiair »

Je ne comprend pas tout dans ce problème, j'ai juste compilé rapidement et obtenu la même erreur que marco56.
Par contre, si je déplace les deux lignes

Code : Tout sélectionner

   \usepackage[backend=bibtex, style=authoryear, backref, useprefix=true]{biblatex} 
    \usepackage{csquotes}
en fin du préambule, la compilation (pdflatex) se déroule sans erreur et le document comporte 32 pages.
JJR.
LaTeXien migrateur.
anonyme74170
Utilisateur éprouvé
Utilisateur éprouvé
Messages : 111
Inscription : jeudi 21 avril 2016, 11:34

Re: Bilatex et Thumbs

Message non lu par anonyme74170 »

Bonjour JJR

Merci pour la réponse concernant le déplacement des lignes. Le problème de compilation est résolu avec Miktex.

Reste le problème de fond : il y a 13 chapitres et la page 5 du document, qui reprend tous les onglets, ne présente que les 6 premiers et non les 13. J'obtiens bien les 13 si je commente les 2 lignes biblatex et csquote.
En complément le fichier auxiliaire "onglet.tmb" qui est créé pour les onglets. Il contient bien les 13 chapitres.

Code : Tout sélectionner

\defcounter {refsection}{0}\relax 
\thumbcontents {First Chap}{\relax \fontsize {24.88}{30}\selectfont {\textbf {1}}}{white}{gray}{7}{thumbs.1}{0}
\defcounter {refsection}{0}\relax 
\thumbcontents {Chaptitre 2}{\relax \fontsize {24.88}{30}\selectfont {\textbf {2}}}{white}{gray}{9}{thumbs.2}{0}
\defcounter {refsection}{0}\relax 
\thumbcontents {Chaptitre 3}{\relax \fontsize {24.88}{30}\selectfont {\textbf {3}}}{white}{gray}{11}{thumbs.3}{0}
\defcounter {refsection}{0}\relax 
\thumbcontents {Chaptitre 4}{\relax \fontsize {24.88}{30}\selectfont {\textbf {4}}}{white}{gray}{13}{thumbs.4}{0}
\defcounter {refsection}{0}\relax 
\thumbcontents {Chaptitre 5}{\relax \fontsize {24.88}{30}\selectfont {\textbf {5}}}{white}{gray}{15}{thumbs.5}{0}
\defcounter {refsection}{0}\relax 
\thumbcontents {2Chaptitre 6}{\relax \fontsize {24.88}{30}\selectfont {\textbf {6}}}{white}{gray}{17}{thumbs.6}{0}
\defcounter {refsection}{0}\relax 
\thumbcontents {Chaptitre 7}{\relax \fontsize {24.88}{30}\selectfont {\textbf {7}}}{white}{gray}{19}{thumbs.7}{0}
\defcounter {refsection}{0}\relax 
\thumbcontents {Chaptitre 8}{\relax \fontsize {24.88}{30}\selectfont {\textbf {8}}}{white}{gray}{21}{thumbs.8}{0}
\defcounter {refsection}{0}\relax 
\thumbcontents {Chaptitre 9}{\relax \fontsize {24.88}{30}\selectfont {\textbf {9}}}{white}{gray}{23}{thumbs.9}{0}
\defcounter {refsection}{0}\relax 
\thumbcontents {Chaptitre 10}{\relax \fontsize {24.88}{30}\selectfont {\textbf {10}}}{white}{gray}{25}{thumbs.10}{0}
\defcounter {refsection}{0}\relax 
\thumbcontents {Chaptitre 11}{\relax \fontsize {24.88}{30}\selectfont {\textbf {11}}}{white}{gray}{27}{thumbs.11}{0}
\defcounter {refsection}{0}\relax 
\thumbcontents {Chaptitre 12}{\relax \fontsize {24.88}{30}\selectfont {\textbf {12}}}{white}{gray}{29}{thumbs.12}{0}
\defcounter {refsection}{0}\relax 
\thumbcontents {Chaptitre 13}{\relax \fontsize {24.88}{30}\selectfont {\textbf {13}}}{white}{gray}{31}{thumbs.13}{0}
Merci bien.
BVA
marco56
Utilisateur chevronné
Utilisateur chevronné
Messages : 1143
Inscription : jeudi 25 novembre 2010, 22:10

Re: Bilatex et Thumbs

Message non lu par marco56 »

J'ai suivi le conseil de gigiair et j'obtiens bien les 13 chapitres avec 32 pages en tout.
Ubuntu 16.04 TeXLive Texstudio
dvi->ps->pdf
anonyme74170
Utilisateur éprouvé
Utilisateur éprouvé
Messages : 111
Inscription : jeudi 21 avril 2016, 11:34

Re: Bilatex et Thumbs

Message non lu par anonyme74170 »

Bonjour Marco56,

Merci pour la réponse. Je voudrais être certain d'avoir bien compris. La page 5 du document regroupe-t-elle les 13 onglets - en gris - comme dans un sommaire ?
Si oui, il va falloir que je mette les mains dans le camboui. De mon coté sur deux machines j'ai le même résultat avec seulement 6 onglets dans un sommaire de la page 5.

Si quelqu'un a une idée je suis preneur :?:

Merci bien.
BVA
marco56
Utilisateur chevronné
Utilisateur chevronné
Messages : 1143
Inscription : jeudi 25 novembre 2010, 22:10

Re: Bilatex et Thumbs

Message non lu par marco56 »

Oups !
Je n'avais pas fait attention : je n'ai que 6 chapitres d'indiqués, page 5.
Désolé...
En même temps, il vaut peut-être mieux un problème de fichier que d'installation...
anonyme74170
Utilisateur éprouvé
Utilisateur éprouvé
Messages : 111
Inscription : jeudi 21 avril 2016, 11:34

Re: Bilatex et Thumbs

Message non lu par anonyme74170 »

Voici la réponse par Ulricke Fisher :
http://tex.stackexchange.com/questions/ ... bs-package

Code : Tout sélectionner

\documentclass[twoside]{book}

%save the old definition:
\let\oldaddtocontents\addtocontents

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[frenchb]{babel}

\usepackage[backend=bibtex, style=authoryear, backref, useprefix=true]{biblatex}
\usepackage{csquotes}

\usepackage[hyperindex=false, linktoc=all]{hyperref}
\hypersetup{colorlinks=true,linkcolor=blue, citecolor=blue}

\usepackage[thumblink=none,linefill=dots,height={auto},minheight={33pt},%
            width={40pt},distance={2mm},topthumbmargin={40pt},bottomthumbmargin={40pt},%
            nophantomsection=false,ignorehoffset=true,ignorevoffset=true,final=true,%
            hidethumbs=false,verbose=true]{thumbs}

\usepackage{xpatch}
%restore (twice!) the definition in \addthumb:
\xpatchcmd{\addthumb}{\addtocontents}{\oldaddtocontents}{}{}            
\xpatchcmd{\addthumb}{\addtocontents}{\oldaddtocontents}{}{}

\usepackage{lipsum}


\begin{document}
\pagenumbering{arabic}
\section*{Example for thumbs}
\tableofcontents

\addthumbsoverviewtocontents{chapter}{Thumb marks overview}
\thumbsoverview{Table of Thumbs}

\chapter{Chaptitre 1}
\addthumb{First Chap}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]

\chapter{Chaptitre 2}
\addthumb{Chaptitre 2}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]

\chapter{Chaptitre 3}
\addthumb{Chaptitre 3}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]

\chapter{Chaptitre 4}
\addthumb{Chaptitre 4}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]

\chapter{Chaptitre 5}
\addthumb{Chaptitre 5}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]

\chapter{Chaptitre 6}
\addthumb{2Chaptitre 6}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]

\chapter{Chaptitre 7}
\addthumb{Chaptitre 7}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]

\chapter{Chaptitre 8}
\addthumb{Chaptitre 8}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]

\chapter{Chaptitre 9}
\addthumb{Chaptitre 9}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]

\chapter{Chaptitre 10}
\addthumb{Chaptitre 10}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]

\chapter{Chaptitre 11}
\addthumb{Chaptitre 11}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]

\chapter{Chaptitre 12}
\addthumb{Chaptitre 12}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]

\chapter{Chaptitre 13}
\addthumb{Chaptitre 13}{\Huge{\textbf{\arabic{chapter}}}}{white}{gray}
\newpage
\lipsum[1]
\end{document}