Search:   Help

Navigation

Groups

LyX documentation

Edit

Shared groups

Links

LyX /

Chinese

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.

pinyin:

5.  Alternative

An alternative approach could be the following:

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

\usepackage{CJKutf8}
\usepackage[overlap, CJK]{ruby}
\newenvironment{SChinese}{%
\CJKfamily{gbsn}%
\CJKtilde
\CJKnospace}{}
\newcommand{\cntxt}[1]{\begin{CJK}{UTF8}{}\begin{SChinese}#1\end{SChinese}\end{CJK}}

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].

\cntxt{% YOUR CHINESE TEXT HERE %} or
\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. http://www.ntg.nl/maps/19/16.pdf (in Dutch)
  2. http://en.wikipedia.org/wiki/List_of_CJK_fonts
  3. http://www.wazu.jp/gallery/Fonts_ChineseSimplified.html(approve sites)
  4. http://latex-my.blogspot.com/2010/06/cjk-support-in-latex.html(approve sites)
  5. http://www.tug.org/tugboat/tb18-3/cjkintro600.pdf

8.  Categories

CJK

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