## LaTeX forum ⇒ Text Formatting ⇒ HyColor / Undeclaredcolor ?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
nicolasgr
Posts: 2
Joined: Thu Sep 29, 2011 10:28 am

### HyColor / Undeclaredcolor ?

Hi there,
When I compile my code, I get some errors. Then it turns out that the pdf is not built. The errors occur several times, for different lines. Here are some examples of these errors :
\! Use of \@undeclaredcolor doesn't match its definition.
\@ifnextchar ... \reserved@d =#1\def \reserved@a {
#2}\def \reserved@b {#3}\f...
l.89 ...ntsline {part}{Glossaire}{129}{appendix.B}

! Argument of \HyColor@@@@UseColor has an extra }.
<inserted text>
\par
l.89 ...ntsline {part}{Glossaire}{129}{appendix.B}

! Paragraph ended before \HyColor@@@@UseColor was complete.
\par
l.89 ...ntsline {part}{Glossaire}{129}{appendix.B}

It seems to me that these errors are related while I can't figure out the origin.
It's strange because everything was working before. I just included new text and figures and then I obtained the errors.
Here is the code in the begining of my document (which is long as it's a thesis manuscript, and it's in french):

\documentclass[12pt,a4paper, titlepage, openright]{book}

\usepackage[latin9]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{garamond}

\usepackage{geometry}
\usepackage[english,french]{babel}

\usepackage{graphics}
\usepackage{graphicx}

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\newcommand{\clearemptydoublepage}{%
\newpage{\pagestyle{empty}\cleardoublepage}}

\usepackage{pdfpages}

\usepackage{appendix}

\usepackage[pdffitwindow=false,
pdfview=FitH,
pdfstartview=FitH,

pdftitle={La vie},
pdfsubject={Thèse de doctorat},
pdfkeywords={mots-clés}}

\usepackage{caption}
\captionsetup{figurewithin=none}
\captionsetup{tablewithin=none}

\makeglossary

\usepackage{csquotes}

Thanks a lot for your help.
Best
-nicolas-

nicolasgr
Posts: 2
Joined: Thu Sep 29, 2011 10:28 am
So I found the solution by myself. Some of my packages were outdated and I had to remove all the accents in the references to the figures and tables.