Writer:使用表格的页面布局

出自OOo 中文指南手册翻译

跳转到: 导航, 搜索


Writer表格有多个用途,比如像电子表格那样展示数据,对齐功能,以及更多复杂的页面布局。更多使用数据表格的信息,参见第9章(使用表格) Writer's tables can serve several purposes, such as holding data as you might see it in a spreadsheet, lining up material, and creating more complex page layouts. For information about using tables of data, see Chapter 9 (Working with Tables).

下面讲述如何使用表格来实现一些常见的布局。This topic describes how to achieve some common layouts by using tables.

[编辑] 例:使用表格创建侧标题 Example: Creating sideheads using tables

侧标题和旁注在诸如简历、计算机用户指南等文档里经常被用到。正文旁留有空白处(通常在左手边),可以放置侧标题或注释。第一段以侧标题临近侧对齐,如下所示。在 Sideheads and marginal notes are commonly used in documents from resumes to computer user guides. The main body of the text is offset to leave white space (usually on the left-hand side) in which the sideheads or notes are placed. The first paragraph is aligned beside the sidehead, as shown below.

侧标题的例子 Example of a sidehead在某些情况下,你可能仅放一两段在表格里,剩下的文本和图片放在普通段落里(与表格里的段落对齐),这样当添加或删除内容时,文本和图片从一页到另一页也将保持相对位置。还有一种情况,每段在表格里单独成行,这样表格可以跨页,而同一段里的内容则不会跨页。 In some cases you may want to put only one or two paragraphs in the table itself and the rest of the text and graphics in ordinary paragraphs (formatted to line up with the paragraphs in the table) so that text and graphics will flow more easily from one page to another when you add or delete material. In other cases, you might put each paragraph in a separate row of the table and allow the table to break between pages.

(见上)侧标题的例子 (Above) Example of a sidehead.

Image:documentation_note.png也可以在文本框里使用旁注框架样式来创建侧标题,参见 第7章(使用样式)
 Sideheads can also be created by placing text in a frame using the Marginalia frame style, as described in Chapter 7 (Working with Styles).


创建用于侧标题的表格: To create a table for use with a sidehead:

  1. 将光标移至欲插入表格处,选择插入>表格 (Ctrl+F12)。 Place the cursor where you want the table to appear and choose Insert > Table (Ctrl+F12).
  2. 在插入表格对话框里(图21),定义一行两列的表格,且无边框和标题。点击确定创建表格。 In the Insert Table dialog box (Figure 21), define a one-row, two-column table with no border and no heading. Click OK to create the table.
  3. 定义两列无边框无标题表格 Defining a two-column borderless table with no header.
  4. 将鼠标移至表格的中分线。当光标变成双箭头时,点击左键并拖动以改变列的宽度。或者点击右键在弹出菜单里选择表格;在标签页里调整列至所需宽度。 Position the cursor over the central dividing line in the table. The cursor turns into a double-headed arrow. Left-click and drag to resize the columns. Alternatively, right-click and choose Table from the pop-up menu; on the Columns page, make the columns the required width.
  5. 定义两列表格,首列留空3厘米 Defining a two-column table to line up with text offset at 3cm.
  6. 在表格格式对话框的表格间隔栏里,使向上向下的值与普通段落的顶部底部间隔相同。点击确定保存设置。 On the Table page of the Table Format dialog box, in the Spacing section, make the Above and Below values the same as the Top and Bottom spacing you have defined for ordinary paragraphs of text. Click OK to save your settings.
  7. 定义表格上下的间隔 Defining the space above and below a table.
Image:Tip.png查看普通段落上下间隔:
  1. 在段落中定位光标,然后按F11(如果样式和格式窗口未打开)。检查样式和格式窗口显示的段落样式(顶部左边第一个按钮)。
  2. 当前样式是高亮的。如果没有段落样式高亮,在底部下拉列表里选择全部样式。在弹出列表里单击右键,选择修改
  3. 切换到缩进和间隔页,查看间隔栏里段前段后的值。
 To check the top and bottom spacing for ordinary paragraphs:
  1. Position the cursor in a paragraph and press F11 (unless the Styles and Formatting window is already open). Check that the Styles and Formatting window shows paragraph styles (top left button).
  2. The current style should be highlighted. If no paragraph style is highlighted, select All Styles in the bottom drop-down list. Right-click on it and select Modify from the pop-up list.
  3. Go to the Indents & Spacing page and look in the Spacing area for the values in Above paragraph and Below paragraph .


你可以关闭数字识别,这样Writer就不会将本来是文本的数字进行数字化。关闭数字识别: You may also want to turn off number recognition so that Writer will not try to format numbers if you want them to be plain text. To turn number recognition off:

  1. 右键单击表格,然后在弹出菜单里点数字格式 Right-click in the table and then click Number Format on the pop-up menu.
  2. 在数字格式对话框里,分类选择文本。点击确定 On the Number Format dialog box, make sure the Category is set to Text. Click OK.
设置文本数字格式 Setting number format to Text.
Image:Tip.png如果你经常会用到该表格格式,可以把它保存为自动文本,如第3章(使用文本)所述。全选表格(不仅是内容)然后指定快捷方式。
 If you use this table format often, you may want to save it as AutoText, as described in Chapter 3 (Working with Text). Select the table (not just the contents) to assign the shortcut.


[编辑] 相关链接

本文原文

个人工具