[XeTeX] Unicode Watch character -> \VarClock
Nicolas Girard
girard.nicolas at gmail.com
Sat Dec 12 15:28:36 CET 2009
Hi,
I'm trying to get the Unicode U+231A (WATCH) character to appear as
\VarClock (from ifsym).
It works fine using pdflatex but not with xelatex.
Using the following document, I'm experiencing two independant issues:
1. \DeclareUTFcharacter seems to do nothing
2. \VarClock doesn't appear
Any thoughts ?
Thanks in advance,
Nicolas
%===========
\documentclass{article}
\usepackage[clock]{ifsym}
\usepackage{ifxetex}
\ifxetex
\usepackage{fontspec,xunicode,xltxtra}
\DeclareUTFcharacter{x00C0}{\VarClock} % À
\DeclareUTFcharacter{x231A}{\VarClock} % U+231A WATCH
\else
\usepackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\usepackage{lmodern}
\DeclareUnicodeCharacter{00C0}{\VarClock} % À
\DeclareUnicodeCharacter{231A}{\VarClock} % U+231A WATCH
\fi
\begin{document}
À/⌚
\VarClock
\end{document}
%===========
More information about the XeTeX
mailing list