Here's an example of the warning messages which puzzles me :
I isolated some parts of the code which triggers the messages, and I created a MWE to show the "problem" in action (I'm not even sure this is actually a problem).Package hyperref Warning: Difference (2) between bookmark levels is greater
(hyperref) than one, level fixed on input line 2048
Typically, it appears to be related to subsubsections and the ToC, that I customized :
Code: Select all
\documentclass[12pt,letterpaper,twoside]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage{lmodern}
\usepackage{textcomp}
\usepackage[total={6in,10in},left=1.5in,top=0.5in,includehead,includefoot]{geometry}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage{upgreek}
\usepackage{stmaryrd}
\usepackage[nottoc,notlof]{tocbibind}
\usepackage{tocloft}
\makeatletter
\renewcommand{\@pnumwidth}{2.3em}
\makeatother
\setcounter{tocdepth}{3}
\renewcommand{\cftchappresnum}{\chaptername\ }
\renewcommand{\cftchapaftersnumb}{\newline}
\renewcommand{\cftsecpresnum}{\hfill}
\renewcommand{\cftsecaftersnum}{\hspace*{8pt}}
\addtolength{\cftsecnumwidth}{8pt}
\renewcommand{\cftsubsecpresnum}{\hfill} %
\renewcommand{\cftsubsecaftersnum}{\hspace*{8pt}}
\addtolength{\cftsubsecnumwidth}{8pt}
\setlength{\cftchapnumwidth}{0pt}
\setlength{\cftsecindent}{12pt}
\setlength{\cftsubsecindent}{54pt}
\setlength{\cftsubsubsecindent}{114pt}
\renewcommand{\cftsubsubsecfont}{\normalfont\sffamily\footnotesize}
\renewcommand{\cftdotsep}{2}
\usepackage[unicode,colorlinks]{hyperref}
\begin{document}
\tableofcontents
\chapter{Test}
\section{section title}
\subsubsection{a sub-sub-section}
Font substitution here : $\boldsymbol{\upomega}$
\end{document}
EDIT : Hmm, I just discovered that the warnings are triggered when there's a subsubsection inside a section without any subsection.
However, I need those subsubsections, independently of the subsection, and I want them to be shown in the ToC. The subsubsection aren't numeroted.
Probably there's a better way of creating a subsubsection-like part inside a text ?
Since LaTeX fixes the level (the ToC is all fine in the PDF output), should I care about those warning messages ?