[XeTeX] Unicode Watch character -> \VarClock
Nicolas Girard
girard.nicolas at gmail.com
Sun Dec 13 22:56:57 CET 2009
2009/12/13 Jonathan Kew <jfkthame at googlemail.com>:
> On 13 Dec 2009, at 12:07, Peter Dyballa wrote:
>>
>> I think that the concept XeTeX character classes would allow this...
>>
>> Besides, you could declare a font which has WATCH. Then create a command, say \watch, which selects that font and just inserts that character.
>>
>>
>> \newfontfamily{\watchfont}{Free Serif}
>> \newcommand{\watch}{{\watchfont ⌚}}
>>
>> Or name it \⌚...
>
> Or use an active character:
>
> \newfontfamily{\watchfont}{Free Serif}
> \catcode"231A=\active
> \def⌚{{\watchfont\char"231A}}
>
Thanks a lot to both of you, Jonathan's solution works fine !
Nicolas
More information about the XeTeX
mailing list