1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
5 \textclass ctex-article
7 %Fixme: is this really necessary?
8 \DeclareRobustCommand\nobreakspace{\leavevmode\nobreak\ }
10 \options UTF8,adobefonts
11 \use_default_options true
12 \maintain_unincluded_children false
13 \language chinese-simplified
14 \language_package none
15 \inputencoding utf8-plain
19 \font_typewriter default
20 \font_default_family default
21 \use_non_tex_fonts false
28 \default_output_format pdf4
30 \bibtex_command default
31 \index_command default
32 \paperfontsize default
44 \paperorientation portrait
53 \paragraph_separation indent
54 \paragraph_indentation default
55 \quotes_language english
58 \paperpagestyle default
59 \tracking_changes false
68 \begin_layout Standard
69 \begin_inset Note Note
72 \begin_layout Plain Layout
73 This templates creates an article.
74 To create a book or a report, change the document class to
99 \begin_layout Abstract
103 \begin_layout Standard
107 \begin_layout Section
111 \begin_layout Standard
112 本文档基于ctex宏包。它使用UTF8编码,因为UTF8是比较通用的编码。设置编码有两处注意(都可以在菜单中设置):ctex文档类的选项中需要设置UTF8,语言
113 编码也需要改为UTF8。本文档默认输出类型为XeTeX,也就是用XeLaTeX编译为PDF文档,使用Adobe字体,在Ubuntu系统下可成功编译生成PDF。如
114 果系统中没有Adobe字体,当然也可以使用普通article类配合任意中文字体,只需要用XeLaTeX编译即可;如果需要引用ctex所做的术语翻译和大量其它为了
115 适应中文文档的调整(比如缩进),那么可以在导言区(preamble)中调用:
119 usepackage[UTF8,nofonts]{ctexcap}
121 ;这样,“Section X”就会变成“第X节”。非Windows用户可以尝试用这种方法写中文LyX文档(比如用文泉驿字体,注意中英字体可以分别设置,参见xeC
125 \begin_layout Section
129 \begin_layout Standard
130 本模板来自谢益辉,若有任何疑问,请发邮件至xie@yihui.name或到
131 \begin_inset Flex URL
134 \begin_layout Plain Layout
141 留言。注意前面已经声明,本文档默认设置为使用Adobe中文字体,如果你是Linux用户,这些字体很可能不存在,这种情况下请使用任意可用的非TeX中文字体。
144 \begin_layout Section
148 \begin_layout Standard
149 \begin_inset Note Note
152 \begin_layout Plain Layout
153 Fixme: the layout files are already part of LyX since version 2.0.2.
161 \begin_layout Standard
162 本文档使用ctex-article.layout(类似的还有两种:书籍ctex-book和报告ctex-report.layout,如果你熟悉ctex宏包,这里就不
163 需要解释了),语言设置为简体中文,编码使用UTF8,字体用Adobe中文字体,输出类型设置为XeTeX。编译的时候中文与英文之间会自动加上空格,方便阅读。