[XeTeX] \newfontinstance

Herbert Schulz herbs at wideopenwest.com
Sun Nov 20 18:41:53 CET 2005

On Nov 20, 2005, at 11:19 AM, Martin Henning wrote:

> moin,
> i am desperately trying to craete a new command, which inserts a  
> small \textregistered. i'm using charis SIL and the (R) is really  
> big and ugly. i manage to create the command, and use it, but  
> unfortunately after fist usage, the whole rest of the document is  
> in the font which has been defined in \newfontinstance, so i'm  
> obviously doing something wrong. looking through the fontspec  
> documentation i can't seem to grasp my mistake... it all looks the  
> same!
> currently i have something like that:
> \newfontinstance\trexfont{HiraMaruPro-W4}
> \newcommand\trex{\trexfont \textregistered}
> ...


First try adding an extra set of braces:

\newcommand\trex{{\trexfont \textregistered}}

since that will ``protect'' the font change to that group.

Good Luck,

Herb Schulz
(herbs at wideopenwest.com)

More information about the XeTeX mailing list