截取 texworks 说明书给你看。
### Special comment strings
Special comments, at the very beginning of the files, can be used to manage two other aspects of the compilation.
By default, TEXworks uses the “utf-8” encoding for loading and saving files, but some files could be saved in another encoding. Common ones are “latin1”, which is the dominant encoding on Windows when using western languages, and “Apple Roman” which is dominant on Mac OS.
To set a different encoding for a specific file one can put the following at the beginning of that file:
```tex
% !TeX program =
```
for example:
```tex
% !TeX program = xelatex
```
Pay attention to this last instruction. You have to use the name of the programme here which should be used for the whole project, as the first encountered programme when starting typesetting is used (which is the one from the sub-document you are in). TEXworks will use that programme, even if another name appears in the main document!
When opening a document which contains a `% !TeX program` line, the specified programme will become the one to use and its name will appear in the drop down menu in the toolbar; you can, however, override this by selecting a different one from the drop down list, if you want.
In addition, you can set the spell checking language by a similar comment line:
```tex
% !TeX spellcheck =
```
The language codes available on your system are listed in parentheses in Edit →Spelling next to the human-readable name of the language.
当然了,不同编辑器的名称不一样,功能和写法也各不相同。
一周热门 更多>