[XeTeX] xetex and xfrac?

Axel E. Retif axel.retif at mac.com
Thu Dec 4 11:50:57 CET 2008

On  3 Dec, 2008, at 10:46, Stephen Moye wrote:

> I have tried to get xfrac to work using xetex and fontspec, but have  
> had only limited success. If, for example, I set
>   \setmainfont{Goudy Std}
> and
>    \sfrac{1}{2}
> (notice, not in math mode, but in text mode) there is a 1/2  
> fraction, but the spacing is not optimal. I tried:
> \DeclareInstance{xfrac}{"Goudy Std"}{text}{%
> 	slash-right-kern = 1pt,
> 	slash-left-kern	= 1pt,
> }
> but this does not seem to do anything.
> I understand that xfrac is an experimental package at present, but  
> just want to make sure that I am doing the right thing -- or not.

I guess xfrac doesn't understand fonts that way, but with the tfm  
family names (cmr, for Computer Modern; hlh, for Lucida, etc.); but try

	slash-right-kern = 1pt,
	slash-left-kern	= 1pt,

This will affect sfrac in san serif and italics as well, though.



More information about the XeTeX mailing list