Generalhyperref

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
bbouling
Posts: 11
Joined: Tue Aug 05, 2008 11:17 am

hyperref

Post by bbouling »

Hi all,

I'm trying to tackle a problem due to the usage of the hyperref package.

Without the usage of the package, everything goes fine with the document and I obtain the PDF I want. When I try to implement hyper links in the document, the compilation crashes and I get this error in the log:

Code: Select all

<inserted text> 
                \par 
l.4 \contentsline
                  {figure}{\numberline {1.2}{\ignorespaces }}{7}
Here is how I call the packages:

Code: Select all

\documentclass[11pt]{book}
%% En 12pt c'est possible aussi

%% packages utilises
\usepackage[T1]{fontenc}
\usepackage[frenchb]{babel}
\usepackage{times} %palatino,times

\usepackage{lscape,pdflscape}%Rotation landscape

\usepackage{graphicx}
\graphicspath{{./chapitre1/graph/},{./chapitre2/graph/},{./chapitre3/graph/}}


\usepackage{amsmath}
\usepackage{amssymb,textcomp,txfonts,amsfonts}

\usepackage[compress]{natbib}

\usepackage[version=3]{mhchem}

\usepackage[hmargin=3cm,vmargin=2cm]{geometry}

\usepackage{tabulary}
\usepackage{tabularx}
\usepackage{array}
\usepackage[table,x11names]{xcolor}
\usepackage{booktabs}

\usepackage[breaklinks=true]{hyperref}
I use the addcontents command to add in the TOC the chapters "Bibliographie" and "Table des figures" as follows

Code: Select all

\newpage
\cleardoublepage
\addcontentsline{toc}{chapter}{Table des figures}
\markboth{Table des figures}{Table des figures}
\listoffigures
Can anybody give me a hint on my problem?

Regards

Recommended reading 2024:

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

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

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

hyperref

Post by gmedina »

Hi,

the code snippets that you posted are not enough to reproduce the mentioned error. Please post some minimal, compilable code (in the sense of a minimal working example) allowing us to reproduce your problem.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
bbouling
Posts: 11
Joined: Tue Aug 05, 2008 11:17 am

Re: hyperref

Post by bbouling »

Hi,

I restarted the computer (the lunch break did it for me, indeed) and now it works...
I haven't changed any accent in the file... don't get it but it works fine
Post Reply