]> git.lyx.org Git - features.git/blob - lib/templates/ctex.lyx
Port from branch:
[features.git] / lib / templates / ctex.lyx
1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
2 \lyxformat 413
3 \begin_document
4 \begin_header
5 \textclass ctex-article
6 \begin_preamble
7 %Fixme: is this really necessary?
8 \DeclareRobustCommand\nobreakspace{\leavevmode\nobreak\ }
9 \end_preamble
10 \options UTF8,adobefonts
11 \use_default_options true
12 \maintain_unincluded_children false
13 \language chinese-simplified
14 \language_package none
15 \inputencoding utf8-plain
16 \fontencoding global
17 \font_roman default
18 \font_sans default
19 \font_typewriter default
20 \font_default_family default
21 \use_non_tex_fonts false
22 \font_sc false
23 \font_osf false
24 \font_sf_scale 100
25 \font_tt_scale 100
26
27 \graphics default
28 \default_output_format pdf4
29 \output_sync 0
30 \bibtex_command default
31 \index_command default
32 \paperfontsize default
33 \spacing single
34 \use_hyperref false
35 \papersize default
36 \use_geometry false
37 \use_amsmath 1
38 \use_esint 1
39 \use_mhchem 1
40 \use_mathdots 1
41 \cite_engine basic
42 \use_bibtopic false
43 \use_indices false
44 \paperorientation portrait
45 \suppress_date false
46 \use_refstyle 1
47 \index Index
48 \shortcut idx
49 \color #008000
50 \end_index
51 \secnumdepth 3
52 \tocdepth 3
53 \paragraph_separation indent
54 \paragraph_indentation default
55 \quotes_language english
56 \papercolumns 1
57 \papersides 1
58 \paperpagestyle default
59 \tracking_changes false
60 \output_changes false
61 \html_math_output 0
62 \html_css_as_file 0
63 \html_be_strict false
64 \end_header
65
66 \begin_body
67
68 \begin_layout Standard
69 \begin_inset Note Note
70 status open
71
72 \begin_layout Plain Layout
73 This templates creates an article.
74  To create a book or a report, change the document class to 
75 \family sans
76 book (ctex)
77 \family default
78  or 
79 \family sans
80 report (ctex)
81 \family default
82 .
83  
84 \end_layout
85
86 \end_inset
87
88
89 \end_layout
90
91 \begin_layout Title
92 基于CTeX的LyX文档模板
93 \end_layout
94
95 \begin_layout Author
96 作者
97 \end_layout
98
99 \begin_layout Abstract
100 这里是摘要内容。
101 \end_layout
102
103 \begin_layout Standard
104 下面开始正文。
105 \end_layout
106
107 \begin_layout Section
108 简介
109 \end_layout
110
111 \begin_layout Standard
112 本文档基于ctex宏包。它使用UTF8编码,因为UTF8是比较通用的编码。设置编码有两处注意(都可以在菜单中设置):ctex文档类的选项中需要设置UTF8,语言
113 编码也需要改为UTF8。本文档默认输出类型为XeTeX,也就是用XeLaTeX编译为PDF文档,使用Adobe字体,在Ubuntu系统下可成功编译生成PDF。如
114 果系统中没有Adobe字体,当然也可以使用普通article类配合任意中文字体,只需要用XeLaTeX编译即可;如果需要引用ctex所做的术语翻译和大量其它为了
115 适应中文文档的调整(比如缩进),那么可以在导言区(preamble)中调用:
116 \family typewriter
117
118 \backslash
119 usepackage[UTF8,nofonts]{ctexcap}
120 \family default
121 ;这样,“Section X”就会变成“第X节”。非Windows用户可以尝试用这种方法写中文LyX文档(比如用文泉驿字体,注意中英字体可以分别设置,参见xeC
122 JK包)。
123 \end_layout
124
125 \begin_layout Section
126 获取帮助
127 \end_layout
128
129 \begin_layout Standard
130 本模板来自谢益辉,若有任何疑问,请发邮件至xie@yihui.name或到 
131 \begin_inset Flex URL
132 status collapsed
133
134 \begin_layout Plain Layout
135
136 http://yihui.name
137 \end_layout
138
139 \end_inset
140
141 留言。注意前面已经声明,本文档默认设置为使用Adobe中文字体,如果你是Linux用户,这些字体很可能不存在,这种情况下请使用任意可用的非TeX中文字体。
142 \end_layout
143
144 \begin_layout Section
145 小结
146 \end_layout
147
148 \begin_layout Standard
149 \begin_inset Note Note
150 status open
151
152 \begin_layout Plain Layout
153 Fixme: the layout files are already part of LyX since version 2.0.2.
154 \end_layout
155
156 \end_inset
157
158
159 \end_layout
160
161 \begin_layout Standard
162 本文档使用ctex-article.layout(类似的还有两种:书籍ctex-book和报告ctex-report.layout,如果你熟悉ctex宏包,这里就不
163 需要解释了),语言设置为简体中文,编码使用UTF8,字体用Adobe中文字体,输出类型设置为XeTeX。编译的时候中文与英文之间会自动加上空格,方便阅读。
164 \end_layout
165
166 \end_body
167 \end_document