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