样式使用的范例

出自OOo 中文指南手册翻译

跳转到: 导航, 搜索

目录

下面关于页和段落样式的使用的通用例子取自Writer。使用样式还有其他许多方式,详情见各组件的指南。 The following examples of common use of page and paragraph styles are taken from Writer. There are many other ways to use styles; see the guides for the various components for details. (1)

[编辑] 为文档定义一个不同的的第一页 Defining a different first page for a document (2)

许多文档,如信件和报告,第一页不同于文档中的其他页。例如,一个典型的信笺第一页有一个不同的页眉,或一个报告的第一页可能没有页眉或页脚,但是其他页都有。在OOo中,您可以为第一页定义一个页面样式,同时指定以后的页面自动应用的样式。 Many documents, such as letters and reports, have a first page that is different from the other pages in the document. For example, the first page of a letterhead typically has a different header, or the first page of a report might have no header or footer, while the other pages do. With OOo, you can define the page style for the first page and specify the style for the following pages to be applied automatically. (3)

作为一个例子,我们可以使用OOo自带的第一页默认页面页面样式。下面的图显示了我们希望产生的效果:第一页之后是默认页面,后面的所有页面都将使用默认页面样式的数字。详情参见Writer 指南第4章(格式化页面)。 As an example, we can use the First Page and Default page styles that come with OOo. The figure below shows what we want to happen: the first page is to be followed by the default page, and all the following pages are to be in the Default page style. Details are in Chapter 4 (Formatting Pages) in the Writer Guide. (4)

页面样式流. Flow of page styles.(5)

[编辑] 将文档分成章节 Dividing a document into chapters (6)

以类似的方式,你可以将文档分成若干的章节。每章以第一页样式开始,之后其他页如上所述使用默认页面样式。在章的最后,我们可以插入一个手动分页符,并指定下一页为第一页样式,从而开始下一章,如下所示。 In a similar way, you can divide a document into chapters. Each chapter might start with the First Page style, with the following pages using the Default page style, as above. At the end of the chapter, we can insert a manual page break and specify the next page to have the First Page style to start the next chapter, as shown below. (7)

使用页面样式将文档分成章节 Dividing a document into chapters using page styles(8)

[编辑] 在一个文档中更改页面方向 Changing page orientation within a document (9)

一个Writer文档可以包含多个方向的页面。常见的情况是在一个文档中包含横式页面,而其他页面都是纵向的。这也可以使用分页和页面样式实现。 A Writer document can contain pages in more than one orientation. A common scenario is to have a landscape page in the middle of a document, whereas the other pages are in a portrait orientation. This can also be done with page breaks and page styles. (10)

[编辑] 左、右页有不同的页眉 Different headers on right and left pages (11)

页面样式可设置成使左、右页互为镜像,或只有右页(章节第一页通常被设定为总是右页)、或左页如此。当您在页面样式中插入页眉,用于镜像的页面或右和左的页面,您可以在所有页面上有相同的页眉内容,或者左、右页面有不同的页眉内容。 Page styles can be set up to have the facing left and right pages mirrored or only right (first pages of chapters are often defined to be right-page only) or only left. When you insert a header on a page style set up for mirrored pages or right-and-left pages, you can have the contents of the header be the same on all pages or be different on the right and left pages. (12)

例如,你可以将页码放在左页的左手边缘和右页的右侧边缘,将文档的标题只放在右手页面上,或进行其他更改。 For example, you can put the page number on the left-hand edge of the left pages and on the right-hand edge of the right pages, put the document title on the right-hand page only, or make other changes. (13)

[编辑] 自动控制分页符 Controlling page breaks automatically (14)

Writer自动将文本从一个页面继续到下一个页面。如果你不喜欢默认设置,你可以改变它们。例如,您可以要求一个段落开始于一个新的页面或分栏,并指定新页面的样式。一个典型的用途是章节标题,你总是想要它开始于一个新的右(单数)页。 Writer automatically flows text from one page to the next. If you do not like the default settings, you can change them For example, you can require a paragraph to start on a new page or column and specify the style of the new page. A typical use is for chapter titles that you always want to start on a new right-hand (odd-numbered) page. (15)

[编辑] 生成自动目录表 Compiling an automatic table of contents (16)

要生成自动目录表,首先对您想要它出现在目录中的标题应用样式,然后使用工具 > 大纲编号告诉Writer目录中各种级别使用的样式。更多信息参见第4章。 To compile an automatic table of contents, first apply styles to the headings you want to appear in the contents list, then use Tools > Outline Numbering to tell Writer which styles go with which level in the table of contents. See Chapter 4 for more information. (17)

您可以设置一个段落样式,当您在该段末尾按Enter键时,下一段自动应用你期望它使用的样式。例如,你可以定义一个标题1段,后面跟正文段。一个更复杂的例子是:标题之后跟着是摘要,接着是标题1,再下来是正文。通过建立这些样式序列,在大多数情况下您可以避免手动应用样式。 You can set up one paragraph style so that when you press Enter at the end of that paragraph, the following paragraph automatically has the style you wish applied to it. For example, you could define a Heading 1 paragraph to be followed by a Text Body paragraph. A more complex example would be: Title followed by Author followed by Abstract followed by Heading 1 followed by Text Body. By setting up these sequences, you can avoid manually applying styles in most cases. (19)

[编辑] 相关链接

本文原文

个人工具