Lyx Chinese Configuration

Source: Internet
Author: User

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}

#

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.