[XeTeX] Help with UTF8 in XeTeX

Marco Pessotto melmothx at gmail.com
Sun Jan 9 18:53:46 CET 2011


Bogdan Butnaru <bogdanb at gmail.com> writes:

> Hello! I’m pretty sure I’m forgetting something stupid, but I hope
> someone can point me in the right direction. Take this very simple
> document (the source is UTF8 encoded):
>
> *******************
> \documentclass{memoir}
>
> \usepackage{ucs}
> \usepackage[utf8x]{inputenc}
>
> \begin{document}
> 101 × 101
> \end{document}
> *******************

You must not use the packages ucs and inputenc, but you need a font with
that symbol (here I use Linux Libertine).

\documentclass{memoir}
\usepackage{xltxtra}
\setmainfont[Mapping=tex-text]{Linux Libertine O}
\begin{document}
101 × 101
\end{document}

Cheers

-- 
Marco



More information about the XeTeX mailing list