[XeTeX] fontspec doesn't like authors with accents...

Joachim Trinkwitz jtr at uni-bonn.de
Wed Jan 10 01:55:29 CET 2007


Am 09.01.2007 um 17:50 schrieb Fabrice Nauze:

> I'm wondering whether someone would know a trick to solve my problem:
> Say you have a bib file with an entry 'test' which author's name
> contains accents as follows,
>
> @book{test,
> 	Author = {M\"{o}\c{s}{\i}{\"o}},
> 	Booktitle = {Accents in Author},
> 	Publisher = {XeLaTeX},
> 	Title = {Accents in author},
> 	Year = {2006}}

No tricks, but a less complicated approach. I modified your example  
files a little bit:

@book{test,
	Author = {Möşıö},
	Booktitle = {Accents in Author},
	Publisher = {XeLaTeX},
	Title = {Accents in author},
	Year = {2006}}

\documentclass{article}
\usepackage{astron}
\usepackage{fontspec}
\setromanfont{Hoefler Text}% whatever font on your system with the  
appropriate glyphs
\begin{document}
\cite{test}
\bibliography{test}
\bibliographystyle{astron}
\end{document}

Works without any problems. – If you insist on your accents (maybe  
because of a legacy bibtex database), you have to use \usepackage 
{xunicode,fontspec} in the third line.

joachim

-- 
Dr. Joachim Trinkwitz     E-Mail: jtr at uni-bonn.de
Institut für Germanistik, Tel.: 0228-737565
Vergleichende Literatur-  Fax: 0228-737479
und Kulturwissenschaft    www.germanistik.uni-bonn.de
der Universität Bonn      53012 Bonn




More information about the XeTeX mailing list