]> git.lyx.org Git - features.git/blob - autotests/export/xhtml/zh_CN_Tutorial.lyx
DocBook: for books only, create a preface around the first few elements so that the...
[features.git] / autotests / export / xhtml / zh_CN_Tutorial.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 598
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin unavailable
7 \textclass book
8 \begin_preamble
9 % Chinese localization
10 \@ifpackageloaded{fontspec}%
11 {\usepackage{ctex}}% ctex with non-TeX fonts
12 {%\usepackage[UTF8]{ctex}% error with font setup (missing font?)
13 }
14 \end_preamble
15 \options cjk
16 \use_default_options true
17 \maintain_unincluded_children no
18 \language chinese-simplified
19 \language_package default
20 \inputencoding utf8-cjk
21 \fontencoding auto
22 \font_roman "lmodern" "default"
23 \font_sans "default" "default"
24 \font_typewriter "default" "default"
25 \font_math "auto" "auto"
26 \font_default_family default
27 \use_non_tex_fonts false
28 \font_sc false
29 \font_roman_osf false
30 \font_sans_osf false
31 \font_typewriter_osf false
32 \font_sf_scale 100 100
33 \font_tt_scale 100 100
34 \font_cjk gbsn
35 \use_microtype false
36 \use_dash_ligatures false
37 \graphics default
38 \default_output_format default
39 \output_sync 0
40 \bibtex_command default
41 \index_command default
42 \float_placement th
43 \float_alignment class
44 \paperfontsize 12
45 \spacing onehalf
46 \use_hyperref true
47 \pdf_title "The LyX Tutorial"
48 \pdf_author "LyX Team"
49 \pdf_subject "LyX-documentation Tutorial"
50 \pdf_keywords "LyX, documentation"
51 \pdf_bookmarks true
52 \pdf_bookmarksnumbered true
53 \pdf_bookmarksopen true
54 \pdf_bookmarksopenlevel 1
55 \pdf_breaklinks false
56 \pdf_pdfborder false
57 \pdf_colorlinks true
58 \pdf_backref section
59 \pdf_pdfusetitle false
60 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true,pdfstartview=XYZ, plainpages=false"
61 \papersize a4
62 \use_geometry false
63 \use_package amsmath 1
64 \use_package amssymb 1
65 \use_package cancel 1
66 \use_package esint 1
67 \use_package mathdots 1
68 \use_package mathtools 1
69 \use_package mhchem 1
70 \use_package stackrel 1
71 \use_package stmaryrd 1
72 \use_package undertilde 1
73 \cite_engine basic
74 \cite_engine_type default
75 \biblio_style plain
76 \use_bibtopic false
77 \use_indices false
78 \paperorientation portrait
79 \suppress_date false
80 \justification true
81 \use_refstyle 0
82 \use_minted 0
83 \use_lineno 0
84 \index 索引
85 \shortcut idx
86 \color #008000
87 \end_index
88 \secnumdepth 3
89 \tocdepth 3
90 \paragraph_separation indent
91 \paragraph_indentation default
92 \is_math_indent 0
93 \math_numbering_side default
94 \quotes_style english
95 \dynamic_quotes 0
96 \papercolumns 1
97 \papersides 2
98 \paperpagestyle default
99 \tablestyle default
100 \tracking_changes false
101 \output_changes false
102 \change_bars false
103 \postpone_fragile_content false
104 \html_math_output 0
105 \html_css_as_file 0
106 \html_be_strict false
107 \docbook_table_output 0
108 \end_header
109
110 \begin_body
111
112 \begin_layout Title
113 The \SpecialChar LyX
114  Tutorial
115 \end_layout
116
117 \begin_layout Chapter
118 介绍
119 \end_layout
120
121 \begin_layout Section
122 欢迎来到 \SpecialChar LyX
123 !
124 \end_layout
125
126 \begin_layout Standard
127 这个文档是为那些不知道 \SpecialChar LaTeX
128  或知之甚少的人准备的。不必担心,使用 \SpecialChar LyX
129  不必学习 \SpecialChar LaTeX
130 。\SpecialChar LyX
131  的目标就是提供一个所见即所得的 \SpecialChar LaTeX
132  应用。为了高效的使用 \SpecialChar LyX
133 ,还是需要学习一些东西的
134
135 \end_layout
136
137 \begin_layout Standard
138 你会发现在其它字处理软件中常用的排版方式在 \SpecialChar LyX
139  中都不能使用了,比如:在“.”后边输入两个空格,在段间输入三个空行。你以前使用的软件允许手动调整间距、字体等东西,所
140 以你不得不即录入又排版。\SpecialChar LyX
141 会做好排版的事情的,而你只需要转注于重要的东西:你正在写的内容。
142 \end_layout
143
144 \begin_layout Standard
145 继续读下去,了解更多 \SpecialChar LyX
146 。读完这篇教程,你会觉得物有所值的。
147 \end_layout
148
149 \begin_layout Section
150 本教程简介
151 \end_layout
152
153 \begin_layout Standard
154 在开始之前建议您先读一下 Introduction,那里解释了本文使用的注释方式。当你了解了各种字体的意义之后,我们先来说说本篇教程是干什么的。
155 \end_layout
156
157 \begin_layout Subsection
158 学习方式
159 \end_layout
160
161 \begin_layout Standard
162 本教程包含了例子和练习。学习中您应该试着输入我们让你输入的东西,完成所有练习,看看您是不是得到了正确的东西。为了方便,将本文档打印出来会是一个好选择。
163 \end_layout
164
165 \begin_layout Standard
166 如果对 \SpecialChar LaTeX
167  比较熟悉的话,你将能够较快的阅读本教程,因为 \SpecialChar LyX
168  的思想就是 \SpecialChar LaTeX
169  思想的一种包装。\SpecialChar LyX
170  自身也有很多特性是你想了解的。就算不想继续读下去,你也应该看看
171  
172 \begin_inset CommandInset ref
173 LatexCommand ref
174 reference "sec:LaTeX-用户必读"
175
176 \end_inset
177
178 ,它是专门写给熟练的 \SpecialChar LaTeX
179  用户的。
180 \end_layout
181
182 \begin_layout Subsection
183 本教程没有的
184 \end_layout
185
186 \begin_layout Itemize
187 \SpecialChar LyX
188  全部特性的详细解释。
189 \end_layout
190
191 \begin_deeper
192 \begin_layout Standard
193 需要的话,请阅读 the 
194 \emph on
195 User's Guide。
196 \end_layout
197
198 \end_deeper
199 \begin_layout Itemize
200 \SpecialChar LaTeX
201  的详细解释。
202 \end_layout
203
204 \begin_deeper
205 \begin_layout Standard
206 没必要这样做。要想知道用 \SpecialChar LaTeX
207  在 \SpecialChar LyX
208  中能做些什么,可以看看 the 
209 \emph on
210 Embedded
211 \begin_inset space ~
212 \end_inset
213
214 Objects
215 \emph default
216  manual。
217 \end_layout
218
219 \end_deeper
220 \begin_layout Standard
221 现在是开始你的第一个文档的时候了。
222 \end_layout
223
224 \begin_layout Chapter
225 初识 \SpecialChar LyX
226
227 \end_layout
228
229 \begin_layout Section
230 第一个 \SpecialChar LyX
231  文档
232 \end_layout
233
234 \begin_layout Standard
235 开始之前说几件事情,这会使本教程发挥更大的作用。
236 \end_layout
237
238 \begin_layout Standard
239 由于本教程不会提供所有信息,所以你需要找到其它的帮助文件。这很简单:启动 \SpecialChar LyX
240 ,在帮助菜单中就有 the 
241 \emph on
242 User's Guide。
243 \shape italic
244 在写自己的文件时就可以读到它们了(它们本身就是很好的例子)。注意,当打开多个文件时,可以通过 View 菜单或文档标签进行切换。
245 \end_layout
246
247 \begin_layout Standard
248 我们假设你已经有了全功能的 \SpecialChar LyX
249  和 \SpecialChar LaTeX
250 ,包括 DVI、PDF 文件浏览器。一般来说,在各种操作系统上,在安装 \SpecialChar LyX
251  的时候就已经做好了。
252 \end_layout
253
254 \begin_layout Standard
255 最后,我们提供了一个文件 
256 \family typewriter
257 example_raw.lyx,
258 \family default
259 给你练习使用。假想这个文件是由一个完全不知道 \SpecialChar LyX
260  特性的人写的,在学习的过程中,我们会建议你修改这个文件的。example_raw.lyx 中也包含了修改的提示信息
261 。为了对比,我们还提供了一份 \SpecialChar LyX
262  高手写的同样内容的文档:example_lyxified.lyx。
263 \end_layout
264
265 \begin_layout Standard
266 示例文档存在于 \SpecialChar LyX
267  安装路径的 examples 目录下。打开示例文档,另存到自己的目录下,修改后输出到 DVI 文件看效果。
268 \end_layout
269
270 \begin_layout Standard
271 另外,examples 目录中还有很多其它的示例文件,它们将向您展示 \SpecialChar LyX
272  的强大功能。当你忘记了某个功能怎么使用的时候,也可以回来看看这些文档。
273 \end_layout
274
275 \begin_layout Subsection
276 录入、查看、输出
277 \end_layout
278
279 \begin_layout Itemize
280 使用菜单 
281 \family sans
282 File\SpecialChar menuseparator
283 New 打开新文件。
284 \end_layout
285
286 \begin_layout Itemize
287 输入一个句子: 
288 \family typewriter
289 This is my first \SpecialChar LyX
290  document!
291 \end_layout
292
293 \begin_layout Itemize
294 使用菜单 
295 \family sans
296 File\SpecialChar menuseparator
297 Save
298 \begin_inset space ~
299 \end_inset
300
301 As 保存文件。
302 \end_layout
303
304 \begin_layout Itemize
305 运行 \SpecialChar LaTeX
306  生成 DVI 文件,使用菜单 
307 \family sans
308 Document\SpecialChar menuseparator
309 View
310 \family default
311  或 工具栏按钮 
312 \begin_inset Info
313 type  "icon"
314 arg   "buffer-view"
315 \end_inset
316
317 。 \SpecialChar LyX
318  将打开 DVI-viewer 程序显示文档打印时的样子。 
319 \begin_inset Foot
320 status collapsed
321
322 \begin_layout Plain Layout
323 保持 DVI-viewer在后台运行会节省时间。以后可以点击 
324 \family sans
325 Document\SpecialChar menuseparator
326 Update\SpecialChar menuseparator
327 DVI
328 \family default
329  或工具栏按钮 
330 \begin_inset Info
331 type  "icon"
332 arg   "buffer-update"
333 \end_inset
334
335 ,等 \SpecialChar LyX
336  运算完成后切换到 DVI-viewer即可。
337 \end_layout
338
339 \end_inset
340
341
342 \end_layout
343
344 \begin_layout Itemize
345 使用菜单 
346 \family sans
347 File\SpecialChar menuseparator
348 Export
349 \family default
350  将文档输出成希望的格式。
351 \end_layout
352
353 \begin_layout Standard
354 恭喜!你已经写出了第一个 \SpecialChar LyX
355  文档。其余的细节,你会在其它手册中读到。
356 \end_layout
357
358 \begin_layout Subsection
359 简单操作
360 \end_layout
361
362 \begin_layout Standard
363 \SpecialChar LyX
364  能够做到其它软件能做的绝大部分事情,如:自动换行、段落缩进……以下是几个简单操作的使用方法。
365 \end_layout
366
367 \begin_layout Description
368 撤消 \SpecialChar LyX
369  有多级撤消功能,你可以使用 
370 \family sans
371 Edit\SpecialChar menuseparator
372 Undo
373 \family default
374  (或工具拦按钮 
375 \begin_inset Info
376 type  "icon"
377 arg   "undo"
378 \end_inset
379
380 )来撤消本次编辑会话开始以来的所有操作。如果撤消过头了,可以选择 
381 \family sans
382 Edit\SpecialChar menuseparator
383 Redo
384 \family default
385  (或工具栏按钮 
386 \begin_inset Info
387 type  "icon"
388 arg   "redo"
389 \end_inset
390
391 )恢复。 
392 \end_layout
393
394 \begin_deeper
395 \begin_layout Standard
396 目前撤消操作支持100步,而且撤消也不是能够支持所有更改的,比如对文档布局的更改就不能被撤消,这的确是一个 bug。
397 \end_layout
398
399 \end_deeper
400 \begin_layout Description
401 剪切/粘贴/复制 使用 
402 \family sans
403 Edit\SpecialChar menuseparator
404 Cut
405 \family default
406  (工具栏按钮 
407 \begin_inset Info
408 type  "icon"
409 arg   "cut"
410 \end_inset
411
412 ), 
413 \family sans
414 Edit\SpecialChar menuseparator
415 Copy
416 \family default
417  (工具栏按钮 
418 \begin_inset Info
419 type  "icon"
420 arg   "copy"
421 \end_inset
422
423 ),和 
424 \family sans
425 Edit\SpecialChar menuseparator
426 Paste
427 \family default
428  (工具栏按钮 
429 \begin_inset Info
430 type  "icon"
431 arg   "paste"
432 \end_inset
433
434 ) 来实现剪切、复制和粘贴操作。或者也可通过鼠标中键来粘贴选中的文本(包括其它程序中选定的文本)。
435 \end_layout
436
437 \begin_layout Description
438 查找/替换 点击 
439 \family sans
440 Edit\SpecialChar menuseparator
441 Find
442 \begin_inset space ~
443 \end_inset
444
445 &
446 \begin_inset space ~
447 \end_inset
448
449 Replace
450 \family default
451  (工具栏按钮 
452 \begin_inset Info
453 type  "icon"
454 arg   "dialog-show findreplace"
455 \end_inset
456
457 ) ,在出现的对话框中点击按钮“
458 \family sans
459 Find
460 \begin_inset space ~
461 \end_inset
462
463 Next”
464 \family default
465  进行搜索,点击按钮“ 
466 \family sans
467 Replace”替换搜到的字词。
468 \family default
469
470 \begin_inset Foot
471 status open
472
473 \begin_layout Plain Layout
474 完成后关闭窗口,如果觉得方便的话也可一直开着它。\SpecialChar LyX
475  中的大部分窗口都可以这样。使用时注意焦点的切换即可。
476 \end_layout
477
478 \end_inset
479
480  你还可以指定区分大小写或全字匹配,当然也可以反向搜索文档。
481 \end_layout
482
483 \begin_layout Description
484 字符格式 用 
485 \family sans
486 Edit\SpecialChar menuseparator
487 Text
488 \begin_inset space ~
489 \end_inset
490
491 Style
492 \family default
493  对话框中的 toggle buttons ,可以
494 \shape italic
495 强调
496 \shape default
497 (默认斜体)、加粗或设置为
498 \noun on
499 无格式(
500 \noun default
501 字体一般较小,用于人名)。
502 \end_layout
503
504 \begin_layout Description
505 工具栏 菜单支边的工具栏提供了一些常用功能的按钮,例如:粘贴、打印。
506 \end_layout
507
508 \begin_layout Standard
509 当然,目前还没有输入足够多的内容以使所有这些功能可用。
510 \end_layout
511
512 \begin_layout Subsection
513 所见即所想:\SpecialChar LyX
514  中的空白
515 \end_layout
516
517 \begin_layout Standard
518 对新用户来说,最难理解的是 \SpecialChar LyX
519  处理空白的方式。敲多次回车只能得到一个空行;敲多次空格只能得到一个空格。在空白行上,连一个空格都无法得到。按下 Tab
520  键也不会移动一个 Tab 位;实际上就没有 Tab 位!在页面上方也没有标尺可供设置 Tab 位和边距。
521 \end_layout
522
523 \begin_layout Standard
524 很多字处理软件建立在 WYSIWYG 理念之上,也就是:看到的就是得到的(所见即所得)。\SpecialChar LyX
525  不同,它建立在 WYSIWYM (所想即所得)的理念之上。你想什么就输
526 入什么,\SpecialChar LyX
527  会处理排版的问题,这样保证了输出文件的美观。回车分段,空格断词,没理由在一行中输入好几次空格。Tab 根本就没有语法意义,所以 \SpecialChar LyX
528  不支持它。使用
529  \SpecialChar LyX
530 ,你将花费更多的时间去考虑文档的
531 \series bold
532 内容
533 \series default
534 ,而不是它的
535 \series bold
536 格式
537 \series default
538 。更多关于 WYSIWYM 的解释参见 
539 \emph on
540 Introduction。
541 \end_layout
542
543 \begin_layout Standard
544 \SpecialChar LyX
545  的确也有不少精细调整文档格式的方法。毕竟 \SpecialChar LyX
546  可能不会 100% 精确的按照你想的去排版。
547 \emph on
548 User's Guide
549 \emph default
550  包含了调整文档格式的详细方法,包括水平填充(HFills)和垂直距离(它们比空格、回车更加强大灵活);设置字体大小 、样式的方法;调整段落对齐方式的手段。你只
551 需要专心写你的文档,在最后细调一下文档格式就好了。使用普通的字处理软件,你会在写文档的整个过程中都被格式排版所困扰。
552 \begin_inset Foot
553 status open
554
555 \begin_layout Plain Layout
556 译注:连 AbiWord 这样轻量级的字处理软件都有样式了,就不要说 MS Word、OOo 了。
557 \end_layout
558
559 \end_inset
560
561
562 \end_layout
563
564 \begin_layout Section
565 环境
566 \end_layout
567
568 \begin_layout Standard
569 文档的不同部分有不同的作用,我们称这些部分为“环境”(
570 \emph on
571 environments
572 \emph default
573 )。标题告诉读者新的话题(子话题)将会开始。某些文档含有特殊的环境,比如:期刊会有摘要和题目;书信就没有摘要和题目,但它有地址。
574 \end_layout
575
576 \begin_layout Standard
577 环境是 \SpecialChar LyX
578  所见即所得哲学的重要部分。一个环境需要具体的定义:字体大小、样式、缩进、行间距等等。这个问题非常重要,因为一个给定环境的具体定义会随着文档类型的变化而
579 变化。比如:某期刊要求标题是黑体、18pt、居中,而另一个可能要求斜体、15pt、左对齐;不同的语言也有不同的缩进标准;参考文献的格式就变化更大了。\SpecialChar LyX
580
581  会把你从这些格式中间拯救出来。
582 \end_layout
583
584 \begin_layout Standard
585 你可以使用工具栏上的环境下拉菜单
586 \begin_inset Graphics
587         filename ../../../lib/doc/clipart/ToolbarEnvBox.png
588         scale 50
589         groupId In line
590
591 \end_inset
592
593 来选择环境,它也能告诉你当前的环境是什么,其中“Standard”是文本的默认环境。现在我们将在你的新文档中添加几个环境,来看看它们是怎么工作的吧。
594 \end_layout
595
596 \begin_layout Subsection
597 节(
598 \family sans
599 Section
600 \family default
601 )与子节(Subsection)
602 \end_layout
603
604 \begin_layout Standard
605 在 \SpecialChar LyX
606  文档的第一行输入“
607 \family typewriter
608 Introduction
609 \family default
610 ”,在环境下拉菜单中设为“节”(
611 \family sans
612 Section
613 \family default
614
615 \begin_inset Foot
616 status collapsed
617
618 \begin_layout Plain Layout
619 设定环境不需要选择整行(段),光标停留其中即可。若想一次改变多行的环境,则需要选定之。
620 \end_layout
621
622 \end_inset
623
624 , 确定你选择了“节”(
625 \family sans
626 Section
627 \family default
628 )而不是“节
629 \family sans
630 *
631 \family default
632 ”(
633 \family sans
634 Section*
635 \family default
636 )。\SpecialChar LyX
637  将在前边加上“1”并把字体调大。现在敲回车,环境将从“节”(
638 \family sans
639 Section
640 \family default
641 )变回“标准”(Standard)。和多数环境类似,敲回车后环境将终止。输入文本:
642 \end_layout
643
644 \begin_layout LyX-Code
645 This is an introduction to my first \SpecialChar LyX
646  document.
647 \end_layout
648
649 \begin_layout Standard
650 再次回车,选择“节”(
651 \family sans
652 Section
653 \family default
654 )环境,\SpecialChar LyX
655  将写上“2”并等待输入。现在输入“
656 \family typewriter
657 More Stuff
658 \family default
659 ”,\SpecialChar LyX
660  会把它设置成节(
661 \family sans
662 Section
663 \family default
664 )标题的样式。
665 \end_layout
666
667 \begin_layout Standard
668 将光标定位到节 1 (Section
669 \begin_inset space ~
670 \end_inset
671
672 1)末尾,敲回车,再次设置为“节”(
673 \family sans
674 Section
675 \family default
676 ),\SpecialChar LyX
677  会写上“2”并等待输入。输入“
678 \family typewriter
679 About This Document
680 \family default
681 ”。刚才的节 2 (Section
682 \begin_inset space ~
683 \end_inset
684
685 2),“More Stuff”,现在已经被改成了节 3 (Section
686 \begin_inset space ~
687 \end_inset
688
689 3)。你只需要确定哪些文字是节(
690 \family sans
691 Section
692 \family default
693 )标题,\SpecialChar LyX
694  会处理编号和排版格式的,这就是所见即所想(WYSIWYM)的风格。
695 \end_layout
696
697 \begin_layout Standard
698 敲回车,回到“标准”(Standard)环境,输入下边 5 行文字:
699 \end_layout
700
701 \begin_layout LyX-Code
702 Sections and subsections are described below.
703 \end_layout
704
705 \begin_layout LyX-Code
706 Section Description
707 \end_layout
708
709 \begin_layout LyX-Code
710 Sections are bigger than subsections.
711 \end_layout
712
713 \begin_layout LyX-Code
714 Subsection description
715 \end_layout
716
717 \begin_layout LyX-Code
718 Subsections are smaller than sections.
719 \end_layout
720
721 \begin_layout Standard
722 点击第二行,在环境下拉菜单中设为“子节”(Subsection)。\SpecialChar LyX
723  将会在前边加上“2.1”,并把字体调整的比正文大,比节(Section)标题小。接着把第
724  4 行也设置成为“子节”(Subsection),\SpecialChar LyX
725  将在它前边加上“2.2”。如果在节 2 (Section 2)前边加上了别的节,节 2 将会自动变为节
726  3(Section 3),后边的子节也会跟着变成“3.1”和“3.2”。
727 \end_layout
728
729 \begin_layout Standard
730 文档的层级结构还有次子节 ( Subsubsection )、段 ( Paragraph ) 和子段 ( Subparagraph ),这些就由读者自行把玩吧。
731 段和子段的标题默认是不编号的,而且子段还有缩进,参阅 
732 \emph on
733 User's Guide
734 \emph default
735  得到更多解释以及如何改变它们。章(Chapter)是文档层级结构中最高的一级,只能在某些特定的 \SpecialChar LyX
736  文档类型中才能使用它(见 
737 \begin_inset CommandInset ref
738 LatexCommand ref
739 reference "sec:文档类"
740
741 \end_inset
742
743 )。
744 \end_layout
745
746 \begin_layout Standard
747 你可能还希望一些节和子节是不编号的,\SpecialChar LyX
748  有专门的环境实现这个功能。当把节的标题环境改为“节*
749 \begin_inset Quotes erd
750 \end_inset
751
752 (Section*)后,\SpecialChar LyX
753  还将对它使用相同的字体,只是不再对它进行编号。相应的也有带“星”的子节和次子节环境。试着把一些节或子节的标题环境改为带星的,同时看看其
754 它的编号怎么随之改变。
755 \end_layout
756
757 \begin_layout Standard
758 练习:修改 example_raw.lyx 中的节和子节标题。
759 \end_layout
760
761 \begin_layout Subsection
762 列表(Lists)和子列表(sublists)
763 \end_layout
764
765 \begin_layout Standard
766 \SpecialChar LyX
767  有好几种列表环境,在写提纲或者重新排序一个已有的列表时,这些列表环境会帮上大忙。不同的文档类型需要不同的列表环境:
768 \end_layout
769
770 \begin_layout Itemize
771 幻灯片使用带圆点的条目环境(
772 \family sans
773 Itemize
774 \family default
775 )。
776 \end_layout
777
778 \begin_layout Itemize
779 大纲使用带编号的枚举环境(
780 \family sans
781 Enumerate
782 \family default
783 )。
784 \end_layout
785
786 \begin_layout Itemize
787 名词解释常用描述环境(
788 \family sans
789 Description
790 \family default
791 )。
792 \end_layout
793
794 \begin_layout Itemize
795 列表环境(
796 \family sans
797 List
798 \family default
799 )和描述环境(
800 \family sans
801 Description
802 \family default
803 )差不多,只是对齐方式稍有不同。
804 \end_layout
805
806 \begin_layout Standard
807 现在我们写一个 \SpecialChar LyX
808  有关优点的列表。在文档中输入:
809 \end_layout
810
811 \begin_layout Standard
812
813 \family typewriter
814 \SpecialChar LyX
815  is better than other word processors because: 
816 \end_layout
817
818 \begin_layout Standard
819 然后敲回车,并在环境下拉列表中选择条目环境(
820 \family sans
821 Itemize
822 \family default
823 )。\SpecialChar LyX
824  会在行首加上圆点。继续输入:
825 \end_layout
826
827 \begin_layout LyX-Code
828 Typesetting is done for you.
829 \end_layout
830
831 \begin_layout LyX-Code
832 Math is WYSIWYG
833 \end_layout
834
835 \begin_layout LyX-Code
836 Lists are very easy to create!
837 \end_layout
838
839 \begin_layout Standard
840 和标题不同,列表环境在敲回车时不会终止,\SpecialChar LyX
841  会认为你将继续写下一个条目。所以上边的输入将会产生三个列表项。重新选择标准环境(
842 \family sans
843 Standard
844 \family default
845 )或使用快捷键 
846 \family sans
847 Alt+P
848 \begin_inset space ~
849 \end_inset
850
851 S
852 \family default
853  才能退出列表环境。要在一个列表项中使用多个段落,可使用保护性中断(
854 \family sans
855 Protected
856 \begin_inset space ~
857 \end_inset
858
859 Break
860 \family default
861 ),按下 Ctrl + 回车即可。
862 \end_layout
863
864 \begin_layout Standard
865 你已经得到了一个漂亮的条目列表,你是不是已经迫不及待的想运行 \SpecialChar LaTeX
866  看看它们打印出来的样子了?可如果您想给它们加上编号呢?你只需要选定整个列表
867 \begin_inset Foot
868 status collapsed
869
870 \begin_layout Plain Layout
871 如果不连前边一段也一起选上的话,你是无法选上第一个条目前边的圆点的;类似的,你也无法选定章节编号。这是有意如此的,因为随着文档类型和文字位置的不同,这些圆点和编
872 号也会发生变化。
873 \end_layout
874
875 \end_inset
876
877 ,然后选择枚举环境(
878 \family sans
879 Enumerate
880 \family default
881 )即可。如果你增删条目的话,\SpecialChar LyX
882  会自动修改枚举编号的。
883 \end_layout
884
885 \begin_layout Standard
886 现在列表项还是处于被选定状态的,你可以再试试描述(
887 \family sans
888 Description
889 \family default
890 )和列表(
891 \family sans
892 List
893 \family default
894 )两种环境。这两种环境都是名词加定义的形式,描述环境前边的名词用黑体,列表环境的名词和后边的定义由“Tab”
895 \begin_inset Foot
896 status collapsed
897
898 \begin_layout Plain Layout
899 这里的Tab是排版Tab(它会自适应到最长的名词长度),而不是定长的打字机Tab。
900 \end_layout
901
902 \end_inset
903
904 分隔。前边的名词如果多于一个词的话,需要使用保护性空格(
905 \family sans
906 Protected
907 \begin_inset space ~
908 \end_inset
909
910 Blank
911 \family default
912 s)将它们分开。
913 \end_layout
914
915 \begin_layout Standard
916 练习:排版 
917 \family typewriter
918 example_raw.lyx
919 \family default
920  中的列表。
921 \end_layout
922
923 \begin_layout Standard
924 这些列表环境还可以嵌套使用,提纲就是最常见的例子。带编号或圆点的列表在子列表中会有不同的表现形式。更多详情参见 
925 \emph on
926 User's Guide
927 \emph default
928  。
929 \end_layout
930
931 \begin_layout Subsection
932 其它环境:诗、引用和更多
933 \end_layout
934
935 \begin_layout Standard
936 有两种引用环境:短一点的引用使用引用环境(
937 \family sans
938 Quote
939 \family default
940 );长一点的引用使用引文环境(
941 \family sans
942 Quotation
943 \family default
944 )。计算机代码使用代码环境(
945 \family sans
946 \SpecialChar LyX
947 -Code
948 \family default
949 ),该环境使用
950 \family typewriter
951 typewriter
952 \family default
953  字体,而且这里是 \SpecialChar LyX
954  中唯一允许使用多个空格的地方。你还可以使用诗环境(
955 \family sans
956 Verse
957 \family default
958 )来写诗:回车分节,Ctrl + 回车断行。对所有环境的完整描述参见
959 \emph on
960  User's Guide
961 \emph default
962
963 \end_layout
964
965 \begin_layout Standard
966 练习:修改 
967 \family typewriter
968 example_raw.lyx
969 \family default
970  中的引用、代码、诗环境。
971 \end_layout
972
973 \end_body
974 \end_document