Am 17.02.2008 um 10:56 schrieb Colin:
> ------------------------
> %!TEX encoding = UTF-8 Unicode
The line above is only meaningful to TeXShop – and it's a bad line! ``
%!´´ starts a PostScript file, which Emacs knows. If you want to
provide some TeXShop service then write it as
%%!TEX ...
>>
>> /Applications/Emacs.app/Contents/MacOS/Emacs &
>
> I am sorry that I don't understand this part. Do you want me to open
> "Emacs &" by Emacs? If yes, when I opened it, it was blank.
I don't know what "blank" is for you, what I wanted to express is
that a Mac OS X application is not some file but an application
bundle of some directories and files. In Finder you can make the
context menu open and you'll have the choice to see the package
contents. When the application's name is Emacs (or Emacs.app) then
the absolute path to the binary is the one above. The final ``&´´ is
meaningful only for the shell in which the binary is launched. It
tells the shell the launch the programme in the background, i.e. to
display the prompt again an be prepared for new input.
If your uncertain about the path to the Emacs executable in
Emacs.app, then open the "package" in Finder and navigate to the
MacOS sub-directory. You can drag&drop Emacs onto a Terminal and
you'll see its absolute path.
>
> ---------------------------------------
>
>> which also allows you launch Emacs with options and arguments,
>
> What options and arguments do you mean here?
When you've done what I described above you could add after the
string that has appeared in Terminal `` --help´´ and press the RETurn
button. Then you'll see options.
>
> ---------------------------------------
>
>> then XeTeX the Japanese-Chinese-English file ... Another way would be
>> to open your init file, presumingly ~/.emacs, to check whether it has
>> recorded your customisation.
>>
>
> The following is the my init file; however, I am not good enough to
> read it. I think it is all about what I have in "Tex Command List". I
> also found two more options in my Command(from Emacs menubar), which
> are XeLaTex and XeLaTeXx. No XeTeX and/or XeTeXx. Is it the problem?
>
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:
*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
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.
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!
--
Greetings
Pete
I love deadlines. I love the whooshing noise they make as they go by.
– Douglas Adams
--~--~---------~--~----~------------~-------~--~----~
Carbon Emacs User Group
http://groups.google.com/group/carbon-emacs?hl=en
-~----------~----~----~----~------~----~------~--~---