Hi,
Many thanks for your reply.
I indeed use the hyperref package but disabling this package does not have any effect (even after deleting the .lof and .lot files).
As requested, here is my tex main file.
Code: Select all
\documentclass[a4paper,12pt,twoside]{report}
%\inputonly{chap1, chap3}
\usepackage[latin1]{inputenc}
\usepackage[round,authoryear]{natbib}
\usepackage{myenv}
\geometry{top=30mm,bottom=25mm,left=25mm,right=25mm}
\usepackage{textcomp}
\usepackage{multicol}
\usepackage{setspace}
\usepackage{chapterbib}
\usepackage{pdflscape}
\usepackage{envmath}
\usepackage{amsmath}
\usepackage[T1]{fontenc}
\usepackage[inline]{enumitem}
\usepackage{cases}
\usepackage{subcaption}
\usepackage{stfloats}
\usepackage{diagbox}
\usepackage[none]{hyphenat}
\usepackage[pdftex,hidelinks,bookmarksdepth=4]{hyperref}
\newcommand{\nc}{\vspace{0.5cm}}
\newcommand{\np}{\newpage}
\newcommand\eq[1]{(\ref{eq#1})}
%\usepackage{url}
\graphicspath{{../illustrations/}}
\definecolor{Gray}{gray}{0.9}
\frenchbsetup{ReduceListSpacing=false, StandardItemizeEnv=true,
StandardEnumerateEnv=true, StandardItemLabels=true}
\pdfminorversion=6
\pdfcompresslevel=9
\pdfobjcompresslevel=9
\setcounter{secnumdepth}{5}
\renewcommand\thesubparagraph{\textbf{(\roman{subparagraph})}}
\setlength{\headheight}{20pt}
\begin{document}
\input{Titre}
\dominitoc
\cleartooddpage
\input{chapitres/Remerciements}
\cleartooddpage
\input{chapitres/Resume}
\cleartooddpage
\input{chapitres/Abstract}
\cleartooddpage
\pdfbookmark[0]{Table des matières}{tableofcontents}\tableofcontents
\cleartooddpage
\pagenumbering{arabic}
\setcounter{page}{1}
%\input{chapitres/chapitre1}
\input{chapitres/chapitre2}
%\input{chapitres/chapitre3}
%\input{chapitres/chapitre4}
%\input{chapitres/chapitre5}
\newpage
\addcontentsline{toc}{chapter}{\bibname}
\bibliographystyle{abbrvnat}
\bibliography{ ../bib/bibtex}
\cleartooddpage
\listoffigures
\cleartooddpage
\listoftables
\end{document}
The myenv package is one package I created with my settings for all my documents. It contains :
Code: Select all
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{myenv}[2013/07/22 Personal extension with common settings, V1.0]
%%PACKAGES%%
\RequirePackage{standalone}
\RequirePackage[top=25mm,bottom=25mm,right=25mm,left=25mm,a4paper]{geometry}
\RequirePackage[french]{babel}
\RequirePackage[T1]{fontenc}
\RequirePackage{graphicx,epstopdf}
\RequirePackage{setspace}
\RequirePackage{lipsum}
\RequirePackage{fancyhdr,fancybox}
\RequirePackage{amsmath,amssymb}
%\RequirePackage[scaled]{helvet}
%\RequirePackage{arevmath}
\RequirePackage[subfigure]{tocloft}
\RequirePackage{color, colortbl}
\RequirePackage[dvipsnames,svgnames]{xcolor}
\RequirePackage{eqnarray}
\RequirePackage{tabularx}
\RequirePackage{multirow}
\RequirePackage[nohints]{minitoc}
\RequirePackage{floatrow}
%\RequirePackage{lastbib}
\RequirePackage{fmtcount}
% \RequirePackage{slashbox}
% \RequirePackage{booktabs}
%
% \RequirePackage{makecell}
%
% %\RequirePackage{titlesec}
%
% \RequirePackage{rotating}
\RequirePackage{nextpage}
%
% \RequirePackage{datetime}
\pretolerance=150
\tolerance=10000
\hbadness=10000
\hfuzz=30pt
\emergencystretch=0em
\setlength{\headheight}{15pt}
\setlength{\parskip}{1mm plus2mm}
%%%% HEADER/FOOTER %%%%%
\pagestyle{fancyplain}
\fancyhf{}
\fancyhead[EL,OR]{\nouppercase{\color{chaptercolor}\small\bfseries\sc\leftmark}}
\fancyfoot[EL,OR]{\thepage}
\fancyfoot[ER,OL]{\tiny\sc XXX}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
%%NEW ENVIRONMENTS AND COMMANDS%%%
\newlength{\arrayrulewidthOriginal}
\newcommand{\Cline}[2]{%
\noalign{\global\setlength{\arrayrulewidthOriginal}{\arrayrulewidth}}%
\noalign{\global\setlength{\arrayrulewidth}{#1}}\cline{#2}%
\noalign{\global\setlength{\arrayrulewidth}{\arrayrulewidthOriginal}}}
%%%Editing chapter and section styles%%%
\addtolength\cftchapnumwidth{2mm}
\addtolength\cftsecnumwidth{2mm}
\renewcommand{\cftchapfont}{\bfseries\sc\bfseries}
\renewcommand{\cftchappagefont}{\bfseries\sc\bfseries}
\renewcommand{\cftsecfont}{\bfseries}
\renewcommand{\cftsecpagefont}{\bfseries}
%%%Editing paragraph styles%%%
%\titleformat{\paragraph}{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
%\titleformat{\subparagraph}{\normalfont\normalsize\bfseries}{\thesubparagraph}{1em}{}
%\titlespacing*{\paragraph}{0pt}{3.25ex plus 1ex minus .2ex}{0em}
%\titlespacing*{\subparagraph} {\parindent}{3.25ex plus 1ex minus .2ex}{0em}
%%%Mini-toc settings%%%
\setlength{\mtcindent}{24pt}
\renewcommand{\mtcfont}{\small\rm}
\renewcommand{\mtcSfont}{\small\bf}
\renewcommand{\mtctitle}{}
%%%Chapter styles%%%
\newcommand\MyColor{black}
\xdefinecolor{chaptercolor}{named}{Bittersweet}
\xdefinecolor{numchapcolor}{named}{Violet}
\renewcommand{\cfttoctitlefont}{\hfill\huge\sc\bfseries\color{chaptercolor}}
\renewcommand{\cftaftertoctitle}{\hfill}
\renewcommand{\cftloftitlefont}{\hfill\huge\sc\bfseries\color{chaptercolor}}
\renewcommand{\cftafterloftitle}{\hfill}
\renewcommand{\cftlottitlefont}{\hfill\huge\sc\bfseries\color{chaptercolor}}
\renewcommand{\cftafterlottitle}{\hfill}
\makeatletter
\def\@makechapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@ \centering\normalfont
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\huge\sc\bfseries \color{numchapcolor}Chapitre\space\thechapter\space
| {\color{chaptercolor}#1}\par\nobreak \par\nobreak
\vskip 20\p@
\fi
\fi
\interlinepenalty\@M
\vskip 40\p@
}
\minitoc
\vspace{5ex}
\markboth{\footnotesize\color{numchapcolor}Chapitre\space\thechapter\space
| {\color{chaptercolor}#1}}{\color{red}Chapitre\space\thechapter\space
| {\color{chaptercolor}#1}}
}
\def\@makeschapterhead#1{%
\vspace*{50\p@}%
{\color{chaptercolor}\parindent \z@ \centering
\normalfont
\interlinepenalty\@M
\Huge \sc\bfseries #1\par\nobreak
\vskip 40\p@
}
\markboth{\footnotesize #1}{\footnotesize #1}}
\def\ps@headings{%
\let\@oddfoot\@empty\let\@evenfoot\@empty
\def\@evenhead{\thepage\hfil\slshape\leftmark}%
\def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
\let\@mkboth\markboth
\def\chaptermark##1{%
\markboth {\footnotesize\color{numchapcolor}Chapitre\space
\thechapter\space | {\color{chaptercolor} ##1}}{}}%
\def\sectionmark##1{%
\markright {\MakeUppercase{%
\ifnum \c@secnumdepth >\z@
\thesection \ %
\fi
##1}}}}
\renewcommand \thefigure{\ifnum \c@chapter>\z@ \thechapter-\fi\@arabic\c@figure}
\makeatother
\renewcommand\thechapter{\Roman{chapter}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\titlestyleA}[1]{{\normalfont\Large\textbf{\uppercase{#1}}}}
\newcommand{\titlestyleB}[1]{{\normalfont\large\textsc{#1}}}
\newcommand{\titlestyleC}[1]{{\normalfont\textit{#1}}}
\newcommand{\titlespaceA}{\vspace{5mm}}
\newcommand{\titlenewline}{\vspace{\baselineskip}}
\renewcommand{\chaptermark}[1]{
\markboth{\small
\color{numchapcolor}\thechapter\space |
\color{chaptercolor}#1}{}
}
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{2}
\setcounter{minitocdepth}{2}
\renewcommand\theparagraph{(\alph{paragraph})}
%% New colors %%
\definecolor{LightCyan}{rgb}{0.88,1,1}
Do I have some incompatible packages that implies that issue ?
Many thanks in advance.
Cheers, DC