Environment: OS X 10.9; MacTeX-2014; lyx version 2.1.0
Lyx is a text Layout System of "What you see is what you mean. Its native Chinese support is not satisfactory, but the problem of Chinese support can be solved through simple settings.
I. Chinese font
You need to use the xetex engine-PDF (xetex) to view or print the output.
Lyx-documents-settings-language:
- Language:Chinese (simplified)
- Encoding-Other:Unicode (xetex) (utf8)
Lyx-documents-settings-latex Preamble:
\usepackage{fontspec} \setmainfont{Songti SC}
(Songti SC can be replaced with other ones. In MAC systems, all programs included in the font book can be used, and other systems are similar)
Ii. Automatic line feed
Because there is no space between Chinese words, lyx will not automatically wrap. In fact, lyx does not automatically wrap a long string of characters without spaces.
Lyx-documents-settings-latex Preamble:
\XeTeXlinebreaklocale "zh"\XeTeXlinebreakskip = 0pt plus 1pt
Iii. Chinese abstract
By default, in environment-Abstract mode, "abstract" is displayed as "abstract ". To display as Chinese:
Lyx-documents-settings-latex Preamble:
\ Renewcommand \ abstractname {abstract \ want}
#