[XeTeX] accented input
Bruno Voisin
bvoisin at mac.com
Sat Feb 10 12:01:01 CET 2007
Le 10 févr. 07 à 11:29, Valentino Volonghi a écrit :
> Hi all when I try to compile a tex document like the following:
>
> ==
> \documentclass[12pt]{report}
> \usepackage[utf8x]{inputenc}
> \usepackage{xunicode}
> \usepackage{fontspec}
> \usepackage{xltxtra}
> \usepackage{pdfsync}
>
> \begin{document} \setromanfont{Times}
>
> é à
>
> \end{document}
> ==
>
> I get:
>
> ==
> This is XeTeXk, Version 3.141592-2.2-0.995 (Web2C 7.5.5)
> Typesetting: ./main.tex
>
>
> Document Class: report 2005/09/16 v1.4f Standard LaTeX document class
> ./main.tex:11: Paragraph ended before é was complete.
> ==
Does it help if you comment out the line
\usepackage[utf8x]{inputenc}
inputenc should not be used together with XeLaTeX: XeLaTeX expects
native UTF-8 (actually even UTF-16) input, while the package inputenc
(with option utf8) precisely converts UTF-8 "characters" into 8-bit
equivalents for processing by standard LateX (like pdfLaTeX). (I'm
not sure what the "x" in utf8x means.)
For this to work, you also need to make sure your text editor
(TextMate) is using UTF-8 encoding.
By the way, pdfsync won't work with XeTeX (it expects pdfTeX).
Hope this helps,
Brunon Voisin
More information about the XeTeX
mailing list