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.
| 也可以在文本框里使用旁注框架样式来创建侧标题,参见 第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:
- 将光标移至欲插入表格处,选择插入>表格 (Ctrl+F12)。 Place the cursor where you want the table to appear and choose Insert > Table (Ctrl+F12).
- 在插入表格对话框里(图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.
- 将鼠标移至表格的中分线。当光标变成双箭头时,点击左键并拖动以改变列的宽度。或者点击右键在弹出菜单里选择表格;在列标签页里调整列至所需宽度。 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.
- 在表格格式对话框的表格页间隔栏里,使向上和向下的值与普通段落的顶部和底部间隔相同。点击确定保存设置。 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.
你可以关闭数字识别,这样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:
- 右键单击表格,然后在弹出菜单里点数字格式。 Right-click in the table and then click Number Format on the pop-up menu.
- 在数字格式对话框里,分类选择文本。点击确定。 On the Number Format dialog box, make sure the Category is set to Text. Click OK.
| 如果你经常会用到该表格格式,可以把它保存为自动文本,如第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. |

