1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
5 \save_transient_properties true
6 \origin /systemlyxdir/templates/
7 \textclass ctex-article
9 % 如果没有这一句命令,XeTeX会出错,原因参见
10 % http://bbs.ctex.org/viewthread.php?tid=60547
11 \DeclareRobustCommand\nobreakspace{\leavevmode\nobreak\ }
14 \use_default_options true
15 \maintain_unincluded_children false
16 \language chinese-simplified
17 \language_package none
18 \inputencoding utf8-plain
20 \font_roman "default" "default"
21 \font_sans "default" "default"
22 \font_typewriter "default" "default"
23 \font_math "auto" "auto"
24 \font_default_family default
25 \use_non_tex_fonts false
28 \font_sf_scale 100 100
29 \font_tt_scale 100 100
31 \use_dash_ligatures false
33 \default_output_format pdf4
35 \bibtex_command default
36 \index_command default
37 \paperfontsize default
42 \use_package amsmath 1
43 \use_package amssymb 1
46 \use_package mathdots 1
47 \use_package mathtools 0
49 \use_package stackrel 0
50 \use_package stmaryrd 0
51 \use_package undertilde 0
53 \cite_engine_type default
57 \paperorientation portrait
67 \paragraph_separation indent
68 \paragraph_indentation default
73 \paperpagestyle default
74 \tracking_changes false
83 \begin_layout Standard
84 \begin_inset Note Note
87 \begin_layout Plain Layout
88 The below text refers to if we add
89 \begin_inset Quotes eld
93 \begin_inset Quotes erd
96 to the custom class options.
97 The text is outdated and will be updated to reflect this change soon.
98 The change was made because we no longer need proprietary fonts to compile
100 For example, it can be compiled with out-of-the-box TeX Live 2015.
108 \begin_layout Standard
109 \begin_inset Note Note
112 \begin_layout Plain Layout
113 这是一份文章模板,如果要使用书籍或报告,请设置文档类为
115 book (C\SpecialChar TeX
120 report (C\SpecialChar TeX
139 \begin_layout Abstract
143 \begin_layout Standard
147 \begin_layout Section
151 \begin_layout Standard
152 本文档基于ctex宏包。它使用UTF8编码,因为UTF8是比较通用的编码。设置编码有两处注意(都可以在菜单中设置):ctex文档类的选项中需要设置UTF8,语言
153 编码也需要改为UTF8。本文档默认输出类型为Xe\SpecialChar TeX
154 ,也就是用Xe\SpecialChar LaTeX
155 编译为PDF文档,使用Adobe字体,在Ubuntu系统下可成功编译生成PDF。如果系统中没有Ad
156 obe字体,当然也可以使用普通article类配合任意中文字体,只需要用Xe\SpecialChar LaTeX
157 编译即可;如果需要引用ctex所做的术语翻译和大量其它为了适应中文文档的调整(比如缩
158 进),那么可以在导言区(preamble)中调用:
162 usepackage[UTF8,nofonts]{ctexcap}
164 ;这样,“Section X”就会变成“第X节”。非Windows用户可以尝试用这种方法写中文\SpecialChar LyX
165 文档(比如用文泉驿字体,注意中英字体可以分别设置,参见xeCJK包
169 \begin_layout Section
173 \begin_layout Standard
174 本模板来自谢益辉,若有任何疑问,请发邮件至xie@yihui.name或到
175 \begin_inset Flex URL
178 \begin_layout Plain Layout
185 留言。注意前面已经声明,本文档默认设置为使用Adobe中文字体,如果你是Linux用户,这些字体很可能不存在,这种情况下请使用任意可用的非\SpecialChar TeX
189 \begin_layout Section
193 \begin_layout Standard
194 本文档使用article (C\SpecialChar TeX
195 )文档类,语言设置为简体中文,编码使用UTF8,字体用Adobe中文字体,输出类型设置为Xe\SpecialChar TeX