Here's my MWE :
\documentclass[a4paper,11pt]{article}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[frenchb]{babel}
\usepackage[pdftex,colorlinks=true,linkcolor=blue,citecolor=blue,urlcolor=blue]{hyperref}
\begin{document}
\tableofcontents
\addcontentsline{toc}{section}{this produces warnings : é}
é % or \phantom{é} this 'loads' é ?
\addcontentsline{toc}{section}{this does not produce warnings : é}
\end{document}
Took me a while to find why only the first \addcontentsline
got warnings, but it appears I can't use accentuated characters as long as I haven't used them anywhere else... Is there a fix for this ? (other than the \phantom{é}
I currently have at the beginning of my document...)
Using Miktex 2.9, I have updated all my packages recently.
Note : it works if I use \'e
instead of é
, but for various reasons I need the actual é
character.
utf8x
, bututf8
. Not related, but important: don't specify thepdftex
option.hyperref
andgraphicx
are able to guess the right option (if it should bedvips
orpdftex
) and it's best not to specify it.