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