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