Writer:定义阶梯式标题

出自OOo 中文指南手册翻译

跳转到: 导航, 搜索


工具 〉 章节编号定义了各文档标题的层次结构。可以对标题进行编号。在书籍里通常对章标题的下一层子标题进行编号,但更低级别的标题不再编号。一些文档(如科技文献里)需要对章节标题编号,如1,1.1,1.2,2,2.1等。当删除其中的章、节后,编号将自动修改。 Tools > Outline Numbering defines the hierarchy of headings in a document. Headings can be numbered or not; typically the first-level headings in a book-length document are the next level of headings after the chapter titles, which may be numbered, but lower-level headings are not numbered. Some chapter title and heading styles (such as those commonly used in engineering documents) number each chapter and heading level, for example 1, 1.1, 1.2, 2, 2.1, and so on. When chapters or sections are added or deleted, the numbering is automatically changed.

OOo使用段落样式来实现编号功能。OOo 内置的具有大纲层次结构的段落样式是 标题 1标题 2 等。但您可以使用其它样式代替,还可以使用自定义样式。 Paragraph styles are the key to OOo’s outline numbering feature. The default paragraph styles assigned to outline levels are the heading styles supplied with OOo: Heading 1, Heading 2, and so on. However, you can substitute any styles you wish, including custom (user-defined) styles.

具有章节编号特性的标题不仅用于生成目录(在第十二章中介绍),更可以通过字段显示在页眉和页脚里(参看第十四章),Writer 可以把大纲输出到 Impress,用作演示的基础内容(参阅《Impress指南》)。 The headings defined using the outline numbering feature can be used for more than the table of contents (described in Chapter 12). For example, fields are commonly used to display headings in headers and footers of pages (see Chapter 14), and Writer can send the outline to Impress to use as the basis for a presentation (see the Impress Guide for details).

目录

[编辑] 选择大纲级别段落样式

如果您的大纲标题使用默认的标题样式,且不需要编号,则您无需在大纲编号对话框里修改任何设置。默认的大纲编号方案使用默认的标题样式(如标题 1标题 2等)。 If you are using the default heading styles for the headings in your outline, and you do not want to use heading numbering, you do not need to do anything on the Outline Numbering dialog box. The default outline numbering scheme uses the default heading styles (Heading 1, Heading 2, and so on).

按下面的步骤来修改默认标题样式: To use custom styles in place of one or more of the default heading styles:

  1. 点击工具>章节编号打开大纲编号对话框。 Click Tools > Outline Numbering to open the Outline Numbering dialog box.
  2. 点击里面对应您要修改的标题样式的数字。 Click the number in the Level box corresponding to the heading for which you want to change the paragraph style.
  3. 编号:段落样式的下拉菜单上选择您要制定该级别的标题的段落样式。例如,在《Writer 指南》中,我们使用了 OOoHeading1 样式(用于 OOOAuthors project 的一个自定义样式)来代替第一级标题 1OOOHeader2 替代第二级标题 2。完成后点击确定按钮。 In the Numbering: Paragraph Style section, choose from the drop-down list the paragraph style you want to assign to that heading level. For example, when setting up a chapter in the Writer Guide, you would click Level 1 and choose OOoHeading1 (a custom style defined for the OOoAuthors project) to replace Heading 1 and for Level 2, OOoHeading2 to replace Heading 2.
  4. 对需要修改的各级标题重复上述步骤。完成后点击确定按钮。 Repeat for each outline level that you want to change. Click OK when done.
修改大纲标题的段落样式。

[编辑] 设置标题编号

如果要设置多个标题的编号,那么您要做多个设置。下例示范了怎样设置如下图的多级编号方案。 If you want one or more heading levels to be numbered, many choices are available; this example defines a scheme to create headings that look like those below.

多级标题编号方案

使用大纲编号对话框中的编号页来定义编号方案和外观。下图显示了大纲编号对话框的默认设置。 Use the Numbering page of the Outline Numbering dialog box to define the numbering scheme and its appearance. The figure below shows the default settings in the Outline Numbering dialog box.

大纲编号对话框的默认设置
  1. 列表里选择1。在编号列表里选择1,2,3,...。右边的预览框里显示了修改的效果。 In the Level list, choose 1. In the Number list, choose 1, 2, 3, .... The result is shown in the preview box on the right.
  2. 修改第一层标题的编号
  3. 列表里选择2。在编号列表里选择1,2,3,...。现在完整的列表被激活并显示2(如果不是请改成2)。下图显示了修改的结果。 In the Level list, choose 2. In the Number list, choose 1, 2, 3, .... The Show sublevels list is now active; it should show 2 (if not, choose 2). The result is shown below.
  4. 修改第二层标题的编号
  5. 列表里选择3。在编号列表里选择1,2,3,...。现在完整的列表被激活并显示3(如果不是请改成3)。下图显示了修改的结果。 In the Level list, choose 3. In the Number list, choose 1, 2, 3, .... The Show sublevels list should show 3 (if not, choose 3). The result is shown below.
  6. 修改第三层标题的编号

更改后的版式如下图。 These choices produce the layout shown below.

更改编号方案的结果

[编辑] 设置标题缩进

无论标题是否编号,您都可能想再做些修改。例如,您可能想缩进第二、三级标题。如果编号的标题很长,您希望标题的第二行文字对齐到第一行文字,而不是编号的数字。这些设置在大纲编号对话框的位置选项页里修改。 Whether or not the headings are numbered, you may want to change some of their formatting. For example, you may want the second-level and third-level headings to be indented from the margin. For numbered headings, you may also want the second line of long headings to line up with the first word of the heading, not the number. For these changes, use the Position page of the Outline Numbering dialog box.

Image:documentation_note.png 为了向前兼容,在OOo3创建的文档的位置对话框跟在之前版本创建的文档的有点小区别。
  


[编辑] 新OOo3文档中的定位

下图是在OOo3中创建的文档的位置选项页。 The figure below shows the Position page as it appears for documents created in OOo3.

第一级标题的位置选项页的设置
  1. 在左边的列表里选择2。修改编号后对齐的设置,如下图。 In the Level list on the left, choose 2. Change the values for Numbering followed by... at and Aligned at, as shown below.
  2. 第二级标题的缩进

    您可以设置成其它值。这个缩进针对整个标题,不会影响长标题的环绕方式。 You may want to use a different value. This indents the entire heading but does not affect the way long headings wrap around.

    修改第二级标题的缩进的效果
  3. 修改缩进的值来更改长标题的环绕方式。如下图。 To change the wrapping behavior of long headings, change Indent at to a larger value, as shown below.
  4. 设置长标题的环绕方式

    修改结果如下图。

    更改缩进后的显示效果
  5. 列表里选择3。修改编号后对齐缩进的设置,如下图。 In the Level list, choose 3. Change the values for Numbering followed by... at, Aligned at, and Indent at, as shown below.
  6. 第三级标题的缩进

[编辑] 在OOo3中打开的旧文档的定位

下面的四个图显示了在旧版本的OOo中创建的文档的位置选项页的设置。 The four figures below show the Position page as it appears for documents created in earlier versions of OOo and opened in OOo3.

File:WG3Ch6-43.png
Setting up level 1 headings.
File:WG3Ch6-44.png
Indenting Level 2 headings.
File:WG3Ch6-45.png
Changing the Width of numbering value to wrap long headings
File:WG3Ch6-46.png
Indenting Level 3 headings.

[编辑] 相关链接

本文原文

个人工具