Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go

Chinese Emacs

You can use emacs to edit documents containing Chinese characters. Such a file can be loaded with:

  C-x RET c cn-gb RET C-x C-f present.tex

You can also embed in the file that the encoding to use is cn-gb with the following at the top:

  -*- coding: cn-gb -*-
Or the following line in the Local Variables: section at the bottom of the file:
  %%% Local Variables: 
  %%% mode: latex
  %%% TeX-master: t
  %%% coding: cn-gb
  %%% End: 

To insert a Chinese character:

  C-\ chinese-py RET jiu
Then simply C-\ to toggle the keyboard entry mode.

Copyright © 1995-2020 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware and the author of open source software including Rattle and wajig.
Also the author of Data Mining with Rattle and Essentials of Data Science.