Writer:什么是样式?
出自OOo 中文指南手册翻译
目录 |
[编辑] 什么是样式?
很多人习惯于使用格式的物理属性写文档,即手工设定使用的字体、字体大小和粗细(如Helverica字体,12pt大小,粗体)等。 Most people are used to writing documents according to physical attributes. For example, you might specify the font family, font size, and weight (for example: Helvetica 12pt, bold).
样式是逻辑属性。我们每日都使用样式。比如计算机有两种样式:台式机和笔记本电脑。每一类样式都有自己的一套独特属性。你永远也不会说“我的计算机是一个包含有LCD屏幕、键盘和其它配件的轻重量的方形箱子。”相反地,您会说您有一台笔记本电脑。 Styles are logical attributes. We use styles every day. For example, there are two styles of computers: desktop and laptop. Each has its own distinctive set of properties. You never say “my computer is a low-weight, one-piece unit with an LCD screen attached to a rectangular casing containing the computing components and the keyboard". Instead, you would say that you have a laptop.
在文档里,OpenOffice.org (OOo)样式做的是同样的功能。使用样式意味着您可以停止使用“字符大小14pt,Times New Roman 字体,粗体,居中”,而是以“标题”来描述。换句话来说,样式意味着文字“看着象什么”转到“是什么”。 OpenOffice.org (OOo) styles are a way to do the same thing for your document. Using styles means that you could stop saying “font size 14pt, Times New Roman, bold, centered" and start saying “title" for describing that particular font usage. In other words, styles mean that you shift the emphasis from what the text looks like, to what the text is.
[编辑] 为什么要使用样式?
样式有助于保持文档的一致性,使用样式能更容易快捷地修改主要格式。例如,您可能决定改变所有段落的缩进或更改所有标题的字体。在长文档里,这个简单的任务令人抓狂。但是样式则使这个任务变得异常简单。 Styles help improve consistency in a document. They also make major formatting changes easy. For example, you might decide to change the indentation of all paragraphs or change the font of all titles. For a long document, this simple task can be prohibitive. Styles make the task easy.
例如:
现在是上午9:50,Jane刚刚完成一份30页的作业,这份作业需要在10:00前交。她再次检查了一次文档的要求,突然发现: The time is 9:50 AM and Jane is finishing the 30-page paper for school that is due at 10:00 AM She looks over the assignment one more time, and suddenly she realizes that:
- 字体必须使用 Arial,而不是用 Times New Roman。 The text must use Arial font instead of Times New Roman.
- 标题使用深蓝色,缩进。 The headings must be dark blue and indented. <
- 除了第一页外,所有标题对齐到页面上右上角。 The title must appear at the top-right of every page except the first.
- 偶数页的右边距和奇数页的左边距需要加宽。 Even-numbered pages must have a wider right margin, and odd-numbered pages must have a wider left margin.
幸好,Jane使用 OOo Writer,并使用了样式。她只用了2分钟修改格式,按时交了作业。 Thankfully, Jane used OOo Writer and styles. She makes all the changes in two minutes and hands in the paper on time.
[编辑] 样式分类
OOo Writer 有五类样式: OOo Writer has five style categories: <
- 段落样式影响整个段落的显示效果。 styles affect entire paragraphs represented with those styles.
- 字符样式作用于段落内的文字块。 styles affect a block of text inside a paragraph.
- 页面样式影响页面的格式(页面大小、页边距等)。 styles affect page formatting (page size, margin, and the like).
- 框架样式影响框架和图像。 styles affect frames and graphics. </p>
- 列表样式影响大纲、编号列表和项目符号列表。 styles affect outlines, numbered lists, and bulleted lists.
字符是组成词语的基础,同样地,段落是文章的基础。标题(子标题)属于段落;页眉、页脚和数字列表也是段落。因此,段落样式是最常用的样式,本章与下一章将详细介绍相关的内容。 In the same way that characters are the building blocks for creating words, paragraphs are the building blocks of every document. Headings (subheads) are paragraphs; headers, footers, and numbered lists are also paragraphs. Paragraph styles are, therefore, the most frequently used styles and are the ones treated in more detail in this and the next chapter.

