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.


段落樣式對話框的管理選項卡。

[編輯] 相關鏈接

本文原文