]> git.lyx.org Git - lyx.git/blob - lib/templates/Articles/Chinese_Article_%28CTeX%29.lyx
Do not throw away runparams settings of InsetText in InsetFoot::latex
[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 614
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_roman_osf false
28 \font_sans_osf false
29 \font_typewriter_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 \tablestyle default
81 \tracking_changes false
82 \output_changes false
83 \change_bars false
84 \postpone_fragile_content false
85 \html_math_output 0
86 \html_css_as_file 0
87 \html_be_strict false
88 \docbook_table_output 0
89 \docbook_mathml_prefix 1
90 \end_header
91
92 \begin_body
93
94 \begin_layout Standard
95 \begin_inset Note Note
96 status open
97
98 \begin_layout Plain Layout
99 The below text refers to if we add 
100 \begin_inset Quotes eld
101 \end_inset
102
103 adobefonts
104 \begin_inset Quotes erd
105 \end_inset
106
107  to the custom class options.
108  The text is outdated and will be updated to reflect this change soon.
109  The change was made because we no longer need proprietary fonts to compile this document.
110  For example,
111  it can be compiled with out-of-the-box TeX Live 2015.
112 \end_layout
113
114 \end_inset
115
116
117 \end_layout
118
119 \begin_layout Standard
120 \begin_inset Note Note
121 status open
122
123 \begin_layout Plain Layout
124 这是一份文章模板,
125 如果要使用书籍或报告,
126 请设置文档类为
127 \family sans
128 book (C\SpecialChar TeX
129 )
130 \family default
131 或者
132 \family sans
133 report (C\SpecialChar TeX
134 )
135 \end_layout
136
137 \end_inset
138
139
140 \end_layout
141
142 \begin_layout Title
143 基于C\SpecialChar TeX
144 的\SpecialChar LyX
145 文档模板
146 \end_layout
147
148 \begin_layout Author
149 作者
150 \end_layout
151
152 \begin_layout Abstract
153 这里是摘要内容。
154
155 \end_layout
156
157 \begin_layout Standard
158 下面开始正文。
159
160 \end_layout
161
162 \begin_layout Section
163 简介
164 \end_layout
165
166 \begin_layout Standard
167 本文档基于ctex宏包。
168 它使用UTF8编码,
169 因为UTF8是比较通用的编码。
170 设置编码有两处注意(都可以在菜单中设置):
171 ctex文档类的选项中需要设置UTF8,
172 语言编码也需要改为UTF8。
173 本文档默认输出类型为Xe\SpecialChar TeX
174
175 也就是用Xe\SpecialChar LaTeX
176 编译为PDF文档,
177 使用Adobe字体,
178 在Ubuntu系统下可成功编译生成PDF。
179 如果系统中没有Adobe字体,
180 当然也可以使用普通article类配合任意中文字体,
181 只需要用Xe\SpecialChar LaTeX
182 编译即可;
183 如果需要引用ctex所做的术语翻译和大量其它为了适应中文文档的调整(比如缩进),
184 那么可以在导言区(preamble)中调用:
185
186 \family typewriter
187
188 \backslash
189 usepackage[UTF8,nofonts]{ctexcap}
190 \family default
191
192 这样,
193 “Section X”就会变成“第X节”。
194 非Windows用户可以尝试用这种方法写中文\SpecialChar LyX
195 文档(比如用文泉驿字体,
196 注意中英字体可以分别设置,
197 参见xeCJK包)。
198
199 \end_layout
200
201 \begin_layout Section
202 获取帮助
203 \end_layout
204
205 \begin_layout Standard
206 本模板来自谢益辉,
207 若有任何疑问,
208 请发邮件至xie@yihui.name或到 
209 \begin_inset Flex URL
210 status collapsed
211
212 \begin_layout Plain Layout
213
214 http://yihui.name
215 \end_layout
216
217 \end_inset
218
219 留言。
220 注意前面已经声明,
221 本文档默认设置为使用Adobe中文字体,
222 如果你是Linux用户,
223 这些字体很可能不存在,
224 这种情况下请使用任意可用的非\SpecialChar TeX
225 中文字体。
226
227 \end_layout
228
229 \begin_layout Section
230 小结
231 \end_layout
232
233 \begin_layout Standard
234 本文档使用article (C\SpecialChar TeX
235 )文档类,
236 语言设置为简体中文,
237 编码使用UTF8,
238 字体用Adobe中文字体,
239 输出类型设置为Xe\SpecialChar TeX
240
241 编译的时候中文与英文之间会自动加上空格,
242 方便阅读。
243
244 \end_layout
245
246 \end_body
247 \end_document