> So the additional TeX commands are saved now. If you create the empty  
> TeX file in Emacs, AUCTeX will automatically add some lines, buffer  
> local variables, into the buffer:
>
>         %%% Local Variables:
>         %%% mode: latex
>         %%% TeX-master: t
>         %%% End:
>

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?


> 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?


> 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}

-------------------------
--~--~---------~--~----~------------~-------~--~----~
Carbon Emacs User Group
http://groups.google.com/group/carbon-emacs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to