[XeTeX] Beginner questions
Arthur Reutenauer
arthur.reutenauer at normalesup.org
Fri Oct 29 19:01:01 CEST 2010
On Fri, Oct 29, 2010 at 06:30:04PM +0200, André Bellaïche wrote:
> And I have observed the following: If a tex file contains the two lines
>
> %!TEX TS-program = xelatex
> %!TEX encoding = UTF-8 Unicode
>
> and has been saved on the user-utf8 side, as a utf8 file, and you open it from the user-mac side, TeXShop does not protest, and everything is O.K. I mean, you do not see horrible √@ and the like. It seems that you can even type into the file, and it will be saved as an utf8-file.
Yes, that's precisely the point of the "%!TEX encoding" line at the
beginning of your file: it tells TeXShop that the file is encoded using
UTF-8, and overrides any defaults in the preferences (which really are
only defaults). It should also work this other way round.
Arthur
More information about the XeTeX
mailing list