Writer:修改样式

出自OOo 中文指南手册翻译

跳转到: 导航, 搜索

目录

Writer内置了一些样式,但它们可能不符合您的要求。您可以创建您自己的样式,或者修改已有的样式。OOo提供四种方式来修改样式:Writer provides several predefined styles, but you may find that they do not fit in one way or another your preferences. You can build your own library of custom styles to use in place of the predefined ones, or you can modify the existing styles. OOo offers four mechanisms to modify both predefined and custom (user-created) styles:

  • 从选择的内容更新格式。 Update a style from a selection.
  • 从别的文档或者模板加载和复制样式。 Load or copy styles from another document or template.
  • 使用样式对话框更改样式。 Change a style using the Style dialog box.
  • 使用自动更新(只有段落和框架格式可以使用)。 Use AutoUpdate (paragraph and frame styles only).

前两种方法已在更新样式(根据选择内容)加载样式(从模板或文档)中介绍。创建新样式则在第七章 (Writer样式应用)中详细介绍。 The first two methods are discussed in Update Style (from a selection) and Load Styles (from a template or document), while Chapter 7 (Working with Styles) discusses at length the process of creating a new style.

本节介绍怎样使用手工调整格式的工具来快速修改已有的段落样式。 This section shows how you can quickly make simple modifications to existing paragraph styles using the same tools you would use for applying formatting manually.

Image:Tip.png 对样式所做的任何修改只会影响当前文档。如果您想在其它文档里再次使用这些样式,您可以把样式保存为模板——参看第十章(Writer模板);或复制样式到其它文档中,相应操作在复制和移动样式中介绍。
 

Any changes made to a style are effective only in the current document. If you want to reuse modified or new styles in other documents, you need to either save the styles in a template—see Chapter 10 (Working with Templates)—or copy the styles into the other documents, as described in Copying and moving styles.


[编辑] 通过样式对话框更改样式

要通过样式对话框更改已有的样式,请在样式和格式窗口右击样式,然后选择弹出菜单中的修改 To change an existing style using the Style dialog box, right-click on the style in the Styles and Formatting window and select Modify from the pop-up menu.

对话框根据样式的种类显示不同的内容。下图显示了一个段落样式实例的对话框。每个对话框都有多个选项卡。对话框中的各种参数将在下一章详细介绍。 The dialog box displayed depends on the type of style selected. The figure below shows an example of the dialog box for a paragraph style. Each style’s dialog box has several tabs. The various properties on these dialog boxes are described in the next chapter.

转到您修改的样式所在的选项卡,输入新的参数。您可以随时单击帮助按钮来弹出在线指南,上面有当前页面所有选项的简要介绍。当您完成修改后,单击确定关闭对话框。如上所述,使用样式的最大便利是,现在在文档中所有使用这个样式的内容都改成您现在的格式了。 Move to the page where the setting you want to modify is specified and input the new value. You can click the Help button at any time to bring up the online guide where all the options of the current page are briefly described. When you are done, click OK to close the dialog box. As discussed above, the great advantage of styles is that all the instances of such style in your document are now modified to your liking.

一个段落样式实例的对话框

[编辑] 示例:修改段落样式

本例中,我们使用了分别具有OOo内置的标题 1标题 2标题 3样式的几行文字。这些段落样式可以用来格式化文档框架的标题和小标题。 For this example, we need three lines of text with three OOo-supplied paragraph styles: Heading 1, Heading 2, and Heading 3. These paragraph styles could be used in formating headings (subheads) in the framework for a document that will be “fleshed out” afterwards.

新建一个文本文件,在第一行输入“标题”,点击样式和格式窗口的段落样式图标,双击列表中的标题 1。重复上述过程输入下图的文本,并分别使用对应的段落样式。 Open a new text document for this exercise and type Title on the first line, click the Paragraph Styles icon on the Styles and Formatting window, and double-click Heading 1 in the drop-down list. Repeat this procedure for the other entries of Figure 14, using the proper paragraph style for each: the Heading 1 style for the paragraph containing the word Title, Heading 2 for Subtitle 1, and so on.

您的文档如下图。 Your document should resemble the figure below.

具有默认标题1~3样式的文字

假定您需要修改这些样式: Suppose you decide to make some changes to these styles, namely:

  • 居中标题 1 Heading 1 should be centered.
  • 缩进标题 3 Heading 3 should be indented.

[编辑] 居中标题 1

样式和格式窗口里点击段落样式图标,右键点击标题 1,选择修改(如下图)。 On the Styles and Formatting window, select the Paragraph Styles icon (if it isn’t already chosen), right-click on Heading 1, and choose Modify (as shown below).

修改样式

打开段落样式窗口后,选择对齐选项卡,选择居中,然后点击确定 After the Paragraph Style window opens, choose the Alignment tab, select Center (as shown below), and click OK.

居中标题 1

现在所有标记为标题 1的内容将被居中(如下图)。如果您新建一个标题 1,它将居中显示。 Now, every paragraph marked as Heading 1 will be centered (as shown in Figure 17). If you make another Heading 1 entry, it will be centered as well.

具有标题 1样式的“标题”被居中显示。

[编辑] 缩进标题 3

样式和格式窗口中右击标题 3,选择修改。打开段落样式对话框后,按以下步骤操作: On the Styles and Formatting window, right-click on the Heading 3 paragraph style and choose Modify (as before). After the Paragraph Style dialog box opens, follow the steps below:

  1. 点击缩进和间隔选项卡。 Click the Indents & Spacing tab.
  2. 缩进下,设置“左”为“1.5”,如下图所示。您的显示可能不一样,这取决于您在选项里使用的长度单位(工具 > 选项 > OpenOffice.org Writer > 一般 > 设置)。 Under the Indent section, set the indentation "before the text to 0.60", as shown below. Your display might be different, depending upon what measurement unit was set in the options (Tools > OOo Writer > General > Settings).
设置缩进

更改的结果如下图。 The result should resemble the figure below.

使用标题 3样式的文字已经缩进显示。

[编辑] 使用自动更新

段落样式对话框的管理选项卡中有一个自动更新的复选框。如果激活这个复选框,则OOo根据对这个样式的任何手动修改自动更新样式。 On the Organizer page of the Paragraph Style dialog box is a check box named AutoUpdate. It is present only for paragraph and frame styles. If this check box is selected, then OOo will apply to the style itself any modification made manually to a paragraph formatted with that style.

Image:documentation_caution.png 如果您经常手动设置格式,请确认自动更新没有被激活,否则很快您会发现您的文档的格式变得一团糟。
  If you are in the habit of manually overriding styles in your document, be sure that AutoUpdate is not enabled, or you will suddenly find whole sections of your document reformatting unexpectedly.


段落样式对话框的管理选项卡。

[编辑] 相关链接

本文原文

个人工具