]> git.lyx.org Git - lyx.git/blob - lib/templates/ctex.lyx
Customization: update the list of colors.
[lyx.git] / lib / templates / ctex.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 544
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/templates/
7 \textclass ctex-article
8 \begin_preamble
9 % 如果没有这一句命令,XeTeX会出错,原因参见
10 % http://bbs.ctex.org/viewthread.php?tid=60547
11 \DeclareRobustCommand\nobreakspace{\leavevmode\nobreak\ }
12 \end_preamble
13 \options UTF8
14 \use_default_options true
15 \maintain_unincluded_children false
16 \language chinese-simplified
17 \language_package none
18 \inputencoding utf8-plain
19 \fontencoding global
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
26 \font_sc false
27 \font_osf false
28 \font_sf_scale 100 100
29 \font_tt_scale 100 100
30 \use_microtype false
31 \use_dash_ligatures false
32 \graphics default
33 \default_output_format pdf4
34 \output_sync 0
35 \bibtex_command default
36 \index_command default
37 \paperfontsize default
38 \spacing single
39 \use_hyperref false
40 \papersize default
41 \use_geometry false
42 \use_package amsmath 1
43 \use_package amssymb 1
44 \use_package cancel 0
45 \use_package esint 1
46 \use_package mathdots 1
47 \use_package mathtools 0
48 \use_package mhchem 1
49 \use_package stackrel 0
50 \use_package stmaryrd 0
51 \use_package undertilde 0
52 \cite_engine basic
53 \cite_engine_type default
54 \biblio_style plain
55 \use_bibtopic false
56 \use_indices false
57 \paperorientation portrait
58 \suppress_date false
59 \justification true
60 \use_refstyle 1
61 \index Index
62 \shortcut idx
63 \color #008000
64 \end_index
65 \secnumdepth 3
66 \tocdepth 3
67 \paragraph_separation indent
68 \paragraph_indentation default
69 \is_math_indent 0
70 \math_numbering_side default
71 \quotes_style english
72 \papercolumns 1
73 \papersides 1
74 \paperpagestyle default
75 \tracking_changes false
76 \output_changes false
77 \html_math_output 0
78 \html_css_as_file 0
79 \html_be_strict false
80 \use_minted 0
81 \end_header
82
83 \begin_body
84
85 \begin_layout Standard
86 \begin_inset Note Note
87 status open
88
89 \begin_layout Plain Layout
90 The below text refers to if we add 
91 \begin_inset Quotes eld
92 \end_inset
93
94 adobefonts
95 \begin_inset Quotes erd
96 \end_inset
97
98  to the custom class options.
99  The text is outdated and will be updated to reflect this change soon.
100  The change was made because we no longer need proprietary fonts to compile
101  this document.
102  For example, it can be compiled with out-of-the-box TeX Live 2015.
103 \end_layout
104
105 \end_inset
106
107
108 \end_layout
109
110 \begin_layout Standard
111 \begin_inset Note Note
112 status open
113
114 \begin_layout Plain Layout
115 这是一份文章模板,如果要使用书籍或报告,请设置文档类为
116 \family sans
117 book (C\SpecialChar TeX
118 )
119 \family default
120 或者
121 \family sans
122 report (C\SpecialChar TeX
123 )
124 \end_layout
125
126 \end_inset
127
128
129 \end_layout
130
131 \begin_layout Title
132 基于C\SpecialChar TeX
133 的\SpecialChar LyX
134 文档模板
135 \end_layout
136
137 \begin_layout Author
138 作者
139 \end_layout
140
141 \begin_layout Abstract
142 这里是摘要内容。
143 \end_layout
144
145 \begin_layout Standard
146 下面开始正文。
147 \end_layout
148
149 \begin_layout Section
150 简介
151 \end_layout
152
153 \begin_layout Standard
154 本文档基于ctex宏包。它使用UTF8编码,因为UTF8是比较通用的编码。设置编码有两处注意(都可以在菜单中设置):ctex文档类的选项中需要设置UTF8,语言
155 编码也需要改为UTF8。本文档默认输出类型为Xe\SpecialChar TeX
156 ,也就是用Xe\SpecialChar LaTeX
157 编译为PDF文档,使用Adobe字体,在Ubuntu系统下可成功编译生成PDF。如果系统中没有Ad
158 obe字体,当然也可以使用普通article类配合任意中文字体,只需要用Xe\SpecialChar LaTeX
159 编译即可;如果需要引用ctex所做的术语翻译和大量其它为了适应中文文档的调整(比如缩
160 进),那么可以在导言区(preamble)中调用:
161 \family typewriter
162
163 \backslash
164 usepackage[UTF8,nofonts]{ctexcap}
165 \family default
166 ;这样,“Section X”就会变成“第X节”。非Windows用户可以尝试用这种方法写中文\SpecialChar LyX
167 文档(比如用文泉驿字体,注意中英字体可以分别设置,参见xeCJK包
168 )。
169 \end_layout
170
171 \begin_layout Section
172 获取帮助
173 \end_layout
174
175 \begin_layout Standard
176 本模板来自谢益辉,若有任何疑问,请发邮件至xie@yihui.name或到 
177 \begin_inset Flex URL
178 status collapsed
179
180 \begin_layout Plain Layout
181
182 http://yihui.name
183 \end_layout
184
185 \end_inset
186
187 留言。注意前面已经声明,本文档默认设置为使用Adobe中文字体,如果你是Linux用户,这些字体很可能不存在,这种情况下请使用任意可用的非\SpecialChar TeX
188 中文字体。
189 \end_layout
190
191 \begin_layout Section
192 小结
193 \end_layout
194
195 \begin_layout Standard
196 本文档使用article (C\SpecialChar TeX
197 )文档类,语言设置为简体中文,编码使用UTF8,字体用Adobe中文字体,输出类型设置为Xe\SpecialChar TeX
198 。编译的时候中文与英文之间会自动加上空
199 格,方便阅读。
200 \end_layout
201
202 \end_body
203 \end_document