Text FormattingHyColor / Undeclaredcolor ?

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

HyColor / Undeclaredcolor ?

Post by nicolasgr »

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.
<to be read again>
\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,
plainpages=false,colorlinks=true]{hyperref}

\hypersetup{urlcolor=blue,linkcolor=black,citecolor=black,colorlinks=true, pdfauthor={Moi},
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-

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

nicolasgr
Posts: 2
Joined: Thu Sep 29, 2011 10:28 am

Re: HyColor / Undeclaredcolor ?

Post by nicolasgr »

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.
Post Reply