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