Search:   Help



LyX documentation


Shared groups


LyX /


Categories: CJK
<< | Page list | >>

How to write Chinese with LyX ?

Table of contents (hide)

  1.   1.  Ubuntu TexLive
  2.   2.  MikTeX:
  3.   3.  Fonts:
  4.   4.  Examples:
  5.   5.  Alternative
  6.   6.  Notes
  7.   7.  Links
  8.   8.  Categories

1.  Ubuntu Linux/TexLive

Required packages:

latex-cjk-all (does this require to run 'fc-cache -fv' ?)

LyX Document Settings:

  • Document→Settings→Language→Encoding→Other:
    • UTF8: "Unicode (CJK) utf8"
  • Document→Settings→Fonts→CJK:
    • "bsmi" (AR PL Mingti2L Big5 font) or
    • "bkai" (AR PL KaitiM Big5 font).

2.  Windows/MikTeX:

Required packages:

  • cjk, arphic

LyX Document Settings:

  • Document→Settings→Language→Encoding→Other:
    • GB: "Chinese (simplified) (EUC-CN)" (Language Default)
    • UTF8: "Unicode (CJK) utf8", or
  • Document→Settings→Fonts→CJK:
    • "gbsn" (AR PL SungtiL GB font) or
    • "gkai" (AR PL KaitiM GB font).

3.  Fonts:

In the arphic package are the following fonts available:

  • "gbsn" (AR PL SungtiL GB font; 简体宋体; Simplified Times New Roman)
  • "gkai" (AR PL KaitiM GB font;简体楷体; Simplified italics)
  • "bsmi" (AR PL Mingti2L Big5 font; 繁体细上海宋体; Traditional Fine Shanghai Times New Roman
  • "bkai" (AR PL KaitiM Big5 font; 繁体标楷体; Traditional Times New Roman)

Note: It seems MikTeX 2.9 has some problems with other CJK fonts.

4.  Examples:

gbsn (or bsmi ?):
gkai (or bkai ?):

Chinese pinyin: add "\input pinyin.sty" to the preamble, and use macros like "\Jin1\tian1 \wo3\men5 \de5 \lao3\shi1 \lai2" in your document.


5.  Alternative

An alternative approach could be the following:

1. Write the following code into the LaTeX Preamble (menu Document→ Settings→LaTeX Preamble):

\usepackage[overlap, CJK]{ruby}

2. Then, when you want to write Chinese in the text, do the following:

Open a TeX Box (in menu, 6th button from right). Into the TeX box then write the following command [replacing the characters below with whatever Chinese you want to write].

\begin{CJK}{UTF8}{}\begin{SChinese} % YOUR CHINESE TEXT HERE % \end{SChinese}\end{CJK}

Should the above steps not produce the desired result manually altering the encoding and font setting (cf. above) might solve it.

6.  Notes

  • What is the difference between gbsn/gkai and bsmi/bkai ?
  • How does XeTeX come into this ?

7.  Links

  1. (in Dutch)
  3. sites)
  4. sites)

8.  Categories


Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2012-10-14 00:09 UTC