[OS X TeX]

Jérôme Laurens jerome.laurens at u-bourgogne.fr
Tue Sep 14 04:16:17 EDT 2004

Le 14 sept. 04, à 09:39, Will Robertson a écrit :

> On 14 Sep 2004, at 4:54 PM, Jérôme Laurens wrote:
>> IMO, the encoding information is the only one that should be 
>> available from the TeX file itself.
>> It seems that this information is available as a universal standard 
>> only for UTF16 text files.
>> Wait for final TeXShop to have the exact syntax to declare the 
>> encoding, something like
>> %!TeX encoding = blah
> Is there a way you could even eliminate the need for this line at all 
> if the editor looked for a \usepackage[whatever]{inputenc} line (or as 
> appropriate for ConTeXt, etc.) and if not then assume the file is 
> ascii? (I think this was suggested a while ago.)

Actually iTeXMac retrieves string encoding from one of 5 hints

1- %!iTeXMac(charset): encoding
2a- LaTeX: \usepackage[encoding]{inputenc}
2b- ConTeXt: \enableregime[encoding]
3- emacs: % *-* coding: encoding; *-*
4- 2 bytes header for UTF16

However, this does not work for input file.

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>

More information about the MacOSX-TeX mailing list