[XeTeX] adobe garamond font with sort&compress in natbib

Jonathan Kew jonathan at jfkew.plus.com
Tue Oct 28 01:07:15 CET 2008

On 28 Oct 2008, at 12:00 AM, Bob Yu wrote:

> Dear all, I am having a problem with Adobe Garamond font. I am using  
> the following command:
> \setromanfont{Adobe Garamond Pro}
> \usepackage[numbers,sort&compress]{natbib}
> \renewcommand{\bibnumfmt}[1]{#1.}
> However the sort&compress does not come out right. See the attached  
> figure. The line between reference 1-4 is very ugly.
> Any help will be appreciated!

Looks like you need to apply the tex-text mapping, which converts "--"  
into an en-dash, as is conventional in TeX fonts. Try:

   \setromanfont[Mapping=tex-text]{Adobe Garamond Pro}

(You'll also need this if you use things like ``TeX-style quotes'' and  
dashes---like that---in your text.)


More information about the XeTeX mailing list