In my bibliography database, there are several references where authors have accented characters in their names, e.g. Chagn\'e
.
The inputenc
package seems to have a problem with this. My setting is:
\usepackage[latin9]{inputenc}
This generates error referring to the particular line number in my .bib
database.
The error is repeated dozens of times before the final PDF is generated.
Can someone recommend what setting I should use for inputenc
?
Here is an example from the bib file:
@article{Chagne2003a,
author = {Chagn\'e, David and Brown, Garth and Lalanne, C\'eline and Madur, Delphine and Pot, David and Neale, David and Plomion, Christophe},
title = {Comparative genome and QTL mapping between maritime and loblolly pines},
journal = {Molecular Breeding},
pages = {185--195},
volume = {12},
issue = {3},
url = {http://dx.doi.org/10.1023/A:1026318327911},
year = {2003}
}
The reference as well as the citation is printed correctly in the PDF. However, during compilation, an error is generated at least 6 times which requires user intervention.
Edit#2 - My bibliography package is 'Biblatex' which accesses the .bib file directly. The errors are generated during compilation. I will paste it here.
l.132
?
! Package inputenc Error: Keyboard character used is undefined
(inputenc) in inputencoding `latin9'.
See the inputenc package documentation for explanation.
Type H <return> for immediate help.
...
l.132
?
Line number 132 is where the reference in question is in the bib database.
Edit # 3
Here is something strange. I removed the accent settings from the .bib file. Thus Chagn\'e is now Chagne. Then I deleted all aux, .bbl and .blg files from the compilation folder. I am still getting the exact same errors. Now I am not so sure if 1.132 refers to line #132 in the .bib.
Edit # 4 -- A minimal example:
\documentclass[12pt]{article}
\usepackage[bibstyle=authoryear,
citestyle=authoryear,
natbib=true]{biblatex}
\usepackage{filecontents}
\usepackage[latin9]{inputenc}
\begin{filecontents}{genetics.bib}
@article{Chagne2003a,
author = {Chagn\'{e}, David and Brown, Garth and Lalanne, C\'{e}line and Madur, Delphine and Pot, David and Neale, David and Plomion, Christophe},
title = {Comparative genome and QTL mapping between maritime and loblolly pines},
journal = {Molecular Breeding},
pages = {185--195},
volume = {12},
number = {3},
doi = {10.1023/A:1026318327911},
year = {2003}
}
\end{filecontents}
\addbibresource{genetics.bib}
\begin{document}
\section{Introduction}
This was first reported by \citet{Chagne2003a}.
\printbibliography
\end{document}
\documentclass{...}
and ending with\end{document}
, and an exemlary .bib file/entry.Chagn\'e
is giving problems, as it uses only seven bit ASCII, which is independent on the input encoding. Error messages by LaTeX never refer to lines in the.bib
file..bib
file. If you're on a Unix systems, try runningpdflatex
with the-file-line-error
command line option and you'll see more clearly what's the file involved.