[XeTeX] Problem with compling an xelatex file

Ulrike Fischer news3 at nililand.de
Mon Dec 3 10:56:28 CET 2012


Am Mon, 3 Dec 2012 14:03:19 +0530 schrieb Sasi Kumar:

> I started using XeLaTeX recently with help from you all. 

> \usepackage[utf8]{inputenc}

Don't use inputenc with xelatex. Never!


> ! Undefined control sequence.
> <recently read> \setmainfont

You should load the fontspec package. Either directly or by loading
packages like polyglossia or unicode-math which will do it for you.

-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



More information about the XeTeX mailing list