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