Am 17.02.2008 um 15:12 schrieb Colin:
> I guess I do not need to add the four lines above. Am I right?
>
>> *These* are meaningful to Emacs, not the faulty ``%!TEX´´ marker
>> for
>> TeXShop. If you want to save also the encoding of the file and the
>> buffer you could add the following line:
>>
>> %%% coding: utf-8-unix
>
> I guess the line above is an optional to save. Am I right?
AUCTeX should add them automatically.
>
>
>> The next line tells AUCTeX to select a particular TeX command for
>> compiling the file when C-c C-c is typed:
>>
>> %%% TeX-command-default: "XeLaTeX"
>>
>> It's useful to read the AUCTeX manual. There it's explained that
>> AUCTeX is able to find whether a file is a TeX file or a LaTeX file.
>
> To be honest, I cannot see the difference between a Tex file and a
> LaTeX file. Are they not .tex files?
LaTeX files have \documentclass, TeX files don't use this and some more.
>
>
>> The commands meaningful only to the wrong mode are not shown. Save a
>> LaTeX file with
>>
>> %%% mode: tex
>>
>> and without
>>
>> %%% TeX-command-default: "XeLaTeX"
>>
>> and you'll see the XeTeX commands!
>
> Do you want me to save a LaTeX file like the following?
>
> -------------------------
> %%% mode: tex
>
> \documentclass[12pt]{article}
> \usepackage{CJKutf8}
> \begin{document}
> \begin{CJK}{UTF8}{bsmi}
> This is a test. 中文字
> \end{CJK}
> \end{document}
This above is not a XeLaTeX file – but for a test it's OK.
--
Greetings
Pete
If you're not confused, you're not paying attention.
--~--~---------~--~----~------------~-------~--~----~
Carbon Emacs User Group
http://groups.google.com/group/carbon-emacs?hl=en
-~----------~----~----~----~------~----~------~--~---