Writer:项目列表样式应用
出自OOo 中文指南手册翻译
目录 |
列表样式(也称编号样式)定义了编号或项目符号列表的缩进、对齐和编号格式或者使用的图形样式,它需要与段落样式一起使用。您可以针对不同的用途创建简单的项目符号样式甚至复杂的多层列表样式。 List styles (also called numbering styles) work with paragraph styles. They define indentation, alignment, and the numbering or bullet characters used for numbered or bulleted lists. You can define many list styles to use for different purposes, from simple bulleted lists to complex multi-level lists.
与其它样式一样,使用列表样式可以保持文档的一致性,还可以节省时间。虽然您可以通过点击格式工具栏的显示/隐入编号和显示/隐入项目编号列单图标来快速建立简单的列表,并利用项目符号和编号工具栏的图标建立复杂的嵌套列表,但是它们的格式可能并不符合您的要求,且您可能需要不同的列表格式。您可以通过格式菜单的项目符号和编号命令来手工调整列表的格式,但是,如果您在以后需要修改它们的格式呢? As with other styles, the main reasons for using list styles are consistency and speeding up your work. Although you can create simple lists quickly by clicking the Numbering On/Off or Bullets On/Off icons on the Formatting toolbar, and use the icons on the Bullets and Numbering toolbar to create quite complex nested lists, the appearance of the resulting lists may not be what you want—and you might want to have more than one style of list. You can use the Bullets and Numbering choice on the Format menu to manually format the appearance of some or all of the lists, but what if you later need to change their appearance?
[编辑] 定义嵌套列表的格式 Defining the appearance of a nested list
嵌套列表是一种具有多层次(常使用缩进表示)的编号或项目符号列表。嵌套列表可使用多种格式的编号,如主列表使用1,2,3,……,子列表使用a,b,c,……或者i,ii,iii,……使用列表样式可以实现您需要的编号组合和格式,还可以混合使用项目编号和符号项目编号。 A nested list is a numbered or bulleted list with subordinate (usually indented) numbered or bulleted lists. Rather than just a list of numbered items (1,2,3...), a nested list may have item 1, then indented items numbered a,b,c or i,ii,iii or some other numbering method before the main number 2. With numbering styles, you can achieve any combination of numbering formats you want. A nested list may even combine numbered items with bulleted items.
定义简单列表和嵌套列表的样式并无区别,只是嵌套列表样式需要做更多的设置。在第三章(Writer文本编辑)里有一个使用嵌套列表的示例,其中使用了预定义的大纲方式。本节里的示例将更实用、更符合您的要求。 There is no difference between defining a nested list style or a simple list, although nested lists require more work. An example of a nested list is given in Chapter 3 (Working with Text). In that case, the list was built using one of the predefined outline schemes as a starting point, while in this section we follow a more general approach so that the list can fully suit your needs.
[编辑] 创建新的列表样式
创建新列表样式的对话框有六个选项页,管理选项页的设置请参看本章的管理选项页的内容。 The dialog box to create a new list style consists of six pages, in addition to the usual Organizer page discussed in The Organizer page.
[编辑] 项目符号、编号类型和图形选项页</span>
项目符号和图形选项页包含了预定义的几种项目符号列表的格式设置,编号类型选项页则预定义了一些编号列表的格式设置。请点击需要的格式的图标,选中的样式的图标以粗边框显示。当使用图形作为符号标识时可以选择链接图形选项来创建到使用的图形的链接,而不是把图形嵌入到文档中。要注意的是您使用这个选项时,当您在别的计算机浏览这个文档时,除非使用的图形的路径完全一样,否则将不能正确显示。 The Bullets, Numbering Style, and Graphics pages contain predefined formatting for either the bullets (Bullets and Graphics pages) or for numbering. To use one of them for your style, it is sufficient to click on the image. A thick border indicates the selection. If you choose a graphics bullet, you can select the Link Graphics option to create a link to the graphic object rather than embedding it in the document. If you decide to link the graphic, keep in mind that the bullet will not be displayed when the document is opened on a different computer (unless the same graphic file is located in the same location on both computers) or if the graphic file used is moved to a different location on the computer.
[编辑] 大纲选项页
大纲选项页预定义了几种嵌套列表结构样式。您可以选择一个,并在位置选项页和选项选项页里修改格式。 Use the Outline page to select among predefined nested structures. You can also select one and use it as a starting point for your style, customizing such a list using the Position page and the Options page, as described below.
[编辑] 位置选项页
位置选项页用于细调编号和图标的缩进和与正文的距离。本页通常与选项页配合使用。 Use the Position page to fine tune the indentation and spacing of the bullet point and its text. This page is particularly effective when used in combination with the Options page.
您可以设置每一级的列表的格式。但是使用以下的设置顺序可能比选项页上的顺序更好一些,即先设置列表的缩进,然后调整符号的位置,最后设置符号的对齐方式。 For each individual level, you can adjust the following settings. It is generally easier to adjust the settings in the order given below, instead of the order on the dialog box. That is, start from the overall indentation for the list elements, then fix the position of the symbols, and finally the alignment of the symbols.
- 编号后:指定在编号符号后面的分隔符,有制表位、空格和无三个选项。当您选择制表位时,您可以指定制表位的位置。 use this field to determine the character to follow the numbering symbol. Choose between a tab stop, a space, or nothing. If you select the tab stop, you can specify the position of the tab.
- 缩进:设定从左边距到正文之间的间隔。编号后面的制表符将影响第一行的对齐方式。 this value determines how much space is reserved for the numbering symbol, measured from the left page margin. Note that the alignment of the first line of the list is also affected by any tab you may have set to follow the numbering.
- 对齐:设定左边距到编号或符号的距离。 this value determines the position of the numbering symbol, measured from the left margin of the page.
- 编号对齐: 在下拉列表中选择编号(包括在选项页中设置的前后文字)的对齐方式。图标使用对齐的设置。 select in the drop-down menu how the numbering (including any text before or after as set in the Options page) should be aligned. The symbol alignment is performed around the Aligned at value.
| 任何不是零的缩进的位置将被忽略。 | |
| When defining an indentation different from 0, the position of the tabulation is not considered. |
| 通常情况下编号后的距离应保持为与缩进一致。参看在下一节例:创建一个简单的列表样式中的示意图理解上述参数的意义。In normal circumstances, setting the Numbering followed by distance to be equal to the Indent at distance works well. See this example for a graphic representation of the effects of the above parameters. | |
如果您的文档由早版本的OOo所创建,或者由于兼容性需要保存成1.1或更早的ODF文件版本,则位置选项页的显示将不一样。If your document was created with an earlier version of OOo, or if the document was saved for compatibility reasons using the ODF file format version 1.1 or earlier, the position dialog will appear as shown below.
您需要设置以下内容: In this case you can adjust the following settings:
- 缩进:设置编号或者图标的缩进,量度的标准为段落的左边界(即如果该段落已经设置了缩进,则总缩进为它们两个之和)。除了第一级的列表外,选择相对的选项表示其它级别的列表的缩进相对于上一个级别的列表的缩进距离。 use this field to determine the indentation of the number or bullet area. The indentation is measured from the left margin of the paragraph linked to the numbering style (in other words, if the paragraph style already has an indentation, when the list style is applied the indentations are added together). For any level other than Level 1, selecting the Relative option causes the indentation to be measured from the start of the previous level rather than from the page margin.
- 编号宽度:设定编号使用的宽度。Writer保留这部分空间,无论它是否被完全占用。 this value determines how much space is used by the numbering symbol. Writer reserves this space, even if only part of it is used.
- 编号与正文之间的最少间隔:设定编号符号的右侧与正文之间的间隔。当距离不够时,Writer将扩展到该设置数值。当编号为右对齐或者编号前后的文字比较多时很有用。 this is the spacing between the right edge of the numbering symbol and the text. If the spacing to text is not sufficient, Writer will honor this setting by expanding the numbering area. Setting the minimum spacing between numbering and text is very useful when right-aligning the numbering or when there is much text before or after the numbering.
- 编号对齐:选择编号(包括前后的文字)的对齐方式。 select in the drop-down menu how the numbering (including any text before or after) should be aligned.
| 为了充分理解编号的对齐方式,您可以建立一个超过10个的编号列表,看看编号是否有足够的显示位置。您可以右对齐大的列表编号,如下一节例:创建一个简单的列表样式的示例。 | |
| To fully appreciate how the Numbering alignment works, try to create a numbered list with more than ten elements and make sure that enough room has been made for numbers with two or more digits. You may also wish to right-align numbers 10 or greater, as in this example. |
[编辑] 选项选项页
选项选项页用于更改大纲级别的格式。本页的选项根据使用的标识类型而变化。在左侧的列表中选择需要修改的第一个级别。如果想一次修改所有的十个级别,则选择1 - 10。如果您创建样式时已有了基准样式,则这里的设置就有预设值了。 Use the Options page to alter the style of all the outline levels. The options available on this page depend on the type of marker selected for the list. Select first the level you want to modify on the left hand side of the box. To modify all ten levels at once, select 1 – 10 as the level. If you started from a predefined outline, some of the levels will already have settings.
根据在编号框中的选择(数字、项目符号或图形),可能激活本页中下列的设置: Depending on the numbering style selected in the Numbering box (bullet, graphic, numbering), some of the following options become available on the page:
- 编号前:在编号前显示的字符(如“第”)。 enter any text to appear before the number (for example, Step).
- 编号后:在编号前显示的字符(如“次”或标点符号)。 enter any text to appear after the number (for example, a punctuation mark).
- 颜色 Color :指定编号或者项目符号的颜色。 pick the color for the list marker (number or bullet character).
- 相对大小 Relative size :指定标识相对于段落文字的大小。 specify the size of the number relative to the size of the characters in the paragraph of the list.
- 开始从:输入列表的起始值。 enter the first value of the list (for example, you might want the list to start at 4 instead of 1).
- 按级显示:设置多级编号的显示的级数。
- 字符样式:为编号或者符号项目字符选定样式。 choose a character style to be used for the number or bullet.
- 字符按钮: 点击按钮后选择符号项目使用的字符。 click this button to select the character for the bullet.
- 图形选择按钮:打开菜单,选择图库中的图片或者一个图形文件作为列表的标识。 opens a list of available graphics (Gallery) or allows the selection of a file on the hard disk to be used as marker.
- 宽度和高度:指定图形标示的尺寸。 specify the dimensions of the graphic marker.
- 对齐:设定图片的对齐方式。 specify the alignment of the graphic object.
- 同步化选项: 选择后,标示图片的长宽比例固定。 If selected, the ratio between the width and the height of the graphic marker is fixed.
设置的预览显示在对话框右侧。 The right-hand side of the dialog box shows a preview of the modifications made.
点击右下角的返回按钮回复默认设置。激活本页底部的连续编号选项来忽略大纲级别关系。 To revert to the default values, click the Reset button in the bottom right corner. Finally, if you wish to use consecutive numbers regardless of the outline level, check the Consecutive numbering box at the bottom of the page.
[编辑] 在段落样式中绑定列表样式
当应用列表样式时,段落样式的格式保持不变。如果您要求列表样式具有一定的字体大小、缩进等,那么您可以先应用段落样式在应用列表样式(或反过来)。一个更方便的方式是在段落样式对话框的大纲与编号选项页中选定使用的列表样式名称,从而把列表样式嵌入到段落样式中。 When applying a list style, the underlying paragraph style remains unchanged; therefore, if your list must also have a certain font size, indentations, and so on, you might expect to first apply a paragraph style and then a list style (or vice versa). However, it is possible to embed a specific list style in a paragraph style using the Numbering page of the Paragraph Style dialog box.
本节给出一个这样的示例。 This section gives an example of combining list and paragraph styles.
- 创建一个列表样式,命名为“我的编号列表”。 Create a list style you want to use for the paragraph. For example: MyNumberedList.
- 创建一个新的段落样式。 Create a new paragraph style.
- 在段落样式对话框中的管理选项页中: On the Organizer page of the Paragraph Style dialog box:
- 命名这个段落样式为“编号段落”。 Give the new paragraph style a name, say NumberedParagraph.
- 在下一个样式的下拉列表中选择编号段落(这样在您改变段落样式前段落将一直编号。) In the Next Style drop-down menu, choose NumberedParagraph (this will make the following paragraph also be in this style, until you choose a different style).
- 在链接到里选择 - 无 - 。 In Linked with, choose None.
- 分类中保留自定义样式。 Leave Custom Styles, in the Category field.
- 设置其它格式。为了避免不必要的麻烦,缩进使用列表样式的设置,这里保持为默认的零值。 Set up the parameters of this paragraph to your liking. Because the indentation is controlled by the List paragraph style, do not modify this in order to avoid undesired interactions.
- 在大纲 & 编号选项页的编号样式下拉列表中选择在 步骤 1 中创建的我的编号列表样式。 On the Numbering page, choose the MyNumberedList style from the list created in step 1.
- 点击确定保存样式。 Click OK to save this style.
一般来说需要创建三个相关的段落样式来更好地控制列表:列表的第一项使用列表 开端样式,后续的列表使用列表 继续样式,列表的最后一项则使用列表 结尾样式。另外,您还需要定义用于非编号列表的段落样式(用于嵌套列表段落)和样式标题段落,以令列表部分与前文分开。 To have full control, it is common practice to define three base paragraph styles for lists: List start for the first element of the list, List Continue for the subsequent elements of the list, and List End for the last element of the list. You should also define a paragraph style to be used for unnumbered list items (one for each nested level you intend to use) as well as an introductory style for the paragraph preceding the start of the list (to allow for keeping the introductory paragraph with the first list item, or for specifying spacing before the first list item that is different from the spacing between other paragraphs.

