Writer:格式化表格文本
出自OOo 中文指南手册翻译
目录 |
当完成表格的布局后,您将需要格式化各个单元格文字的格式。您可以像普通的段落一样手工设置它们的格式,但是为了保证格式的一致性和维护方便,您应该定义并使用段落样式和字符样式。 Once the table layout is satisfactory, you can move on to formatting the text in the individual cells. You can apply manual formatting as with any other paragraph in the text, but it is highly recommended, for the sake of consistency and ease of maintenance, that you define your own paragraph and character styles.
在单元格中填入文本内容时,除了段落和自负样式外,您还需要注意文本的换行和分页、对齐和文字方向。 Besides the paragraph and character styles, there are other aspects to consider when placing text in a table cell; such as text flow, alignment and orientation.
您可以分别设置每个单元格的格式,也可以选择多个单元格,然后统一格式化。 You can format each cell independently of other cells, or you can simultaneously format a group of cells by selecting them before applying the desired formatting.
[编辑] 设定换行与分页
在表格格式对话框的换行和分页选项卡中可以: On the Text Flow page of the Table Format dialog box, you can:
- 在表格的前后插入分页符或者分栏符。选择换行与分页部分的换页后需要设置两对按钮:页、列和之前、之后。如果您在表格前插入分页符,即表格在新的一页中开始,您还可以激活带页面样式来设置新页面的样式,在下拉列表中选择页面样式和重设页码。 Insert a page or column break either before or after the table. Use the Text Flow: Break option, combined with the Page or Column and the Before or After buttons.If you insert a page break before the table (that is, start the table on a new page), you can also change the page style that will go with it by checking the With Page Style box and selecting a new page style. As with any page break, you can also reset the page numbers using the Page number box.
- 如果要保证表格在同一页上,则需要取消选择允许跨页和跨列拆分表格选项,下一选项则呈灰色的不可用状态。 Keep a table on one page by deselecting the Allow table to split across pages and columns option. If this item is deselected, the next item is not active.
- 取消激活允许跨页和跨列断行选项则保证每一行内的内容在同一页中。 Keep each row on one page by deselecting the Allow row to break across pages and columnsoption.
- 使用与下段同页保证表格和紧跟的下一段落文字在同一页中。Use the Keep with next paragraph option to keep the table and an immediately following paragraph together if you insert a page break.
- 使用重复标题选项并设置了行的数量,则在每页上都显示这些标题行。这个设置能帮助查看复杂的表格数据。 Use the Repeat heading option, and its associated numbers box, to select the number of table heading rows that will be repeated on each page. A complicated table may need two or three heading rows to be easily read and understood.
- 文字方向用于设置单元格中的文字的方向,中文中最常用的是从左到右了。 Use the Text direction list to select the direction for the text in the cells. The most common setting is Left to right for Western languages.
| 使用高级高级对象设置表示使用表格之前的段落的格式设置。 | |
| The phrase Use superordinate object settings means “use the formatting settings from the paragraph before the table”. |
- 设置选择的单元格或整个表格的文字在垂直方向的对齐方式,有顶端或低端对齐和居中三种。文本的左右对齐方式则通过段落格式设置。 Select the vertical alignment of the text in the table or the selected cells; the choices are to align with the top of the cell, the center of the cell, or the bottom of the cell. This alignment is in addition to the Left-Right alignment options available on the Table page of the Table Format dialog box.
[编辑] 垂直对比方式
在单元格中输入的文本默认为左上角对齐方式,您可以修改整个表格或者某些单元格的对齐方式。 By default, text entered into a table is aligned to the top-left of the cell. You can change the default for the entire table, as described above, or for individually selected cells.
修改特定单元格垂直对齐方式的操作是: To vertically align the text in specific cells:
- 把光标放在需要修改的单元格上,或者拖拉鼠标选择多个单元格; Place the cursor in the cell you wish to change, or click and drag to select multiple cells.
- 在选择区域右击鼠标,在快捷菜单上选择 单元格 > 居中、顶端对齐或者底端对齐。 Right-click in the selected area and select Cell > Center, Top, or Bottom in the pop-up menu to vertically align the text as desired.
[编辑] 数字格式
可以设置整个表格或其中某些单元格的数字格式,如设置某些单元格为小数点后具有4位有效数字的货币格式,或者日期格式。 The number format can be set for a whole table or group of cells. For example, cells can be set to display in a particular currency, to four decimal places, or in a particular date format.
选择需要格式化的单元格,单击鼠标右键,选择快捷菜单中的 数字格式 。您可以通过弹出的数字格式对话框来设置数据的种类和显示方式。 Select the cells to format, then right-click and select Number Format from the pop-up menu. The Number Format dialog box opens for you to set options for various categories of numerical data.
- 在分类列表中选择数据的类别,如货币、日期或者文字等;In the Category list, select the category you want, such as currency, date, or text.
- 在格式列表中选择需要的显示格式; In the Format list, choose a format for the category you just selected.
- 对于某些如日期等类别,您可以使用语言下拉菜单选择语言,选项部分内容则用于调整显示的效果。 For some categories, such as date, you may wish to change the language using the Language list while for other numerical categories the Options section of the dialog box allows you to customize the appearance.
激活数字识别令表格中的数字文本被识别为数字并格式化,并自动对齐到右下角。数字识别可以在 工具 > 选项 > OpenOffice.org Writer > 表格里面设置。 Number recognition specifies that numbers in a text table are recognized and formatted as numbers. If number recognition is selected, numbers are automatically bottom-right aligned. Number recognition option can be enabled under Tools > Options > OpenOffice.org Writer > Table.
[编辑] 旋转表格单元格中的文字
表格单元格中的文字可旋转90或者270度。这个功能多用于在很窄的列中显示长标题。 You can rotate text in a table cell by 90 or 270 degrees. Text rotation is useful when you have long headings for narrow columns.
- 选择旋转的文字,点击菜单 格式 > 字符; Select the text to be rotated and then click Format > Character.
- 在弹出的字符对话框位置选项卡中的旋转/显示比例部分,选择旋转的角度并按确定按钮。 On the Position page, in the Rotation / scaling section, choose the rotation angle and click OK.
下图显示了旋转的表格标题。 Below is a sample table with rotated headings.
| 单元格中的文字旋转也可以通过设置段落样式来达到,详细内容请参看 第七章《Writer样式应用》的相关内容。 | |
| Text rotation within table cells can also be achieved with the use of paragraph styles, discussed in greater detail in Chapter 7 (Working with Styles). |
[编辑] 进度表
| Writer:格式化表格文本 中文化进度 | 翻译 | 0 | 校对 | 0 | 插图 | / | 上次编辑 | 20091227031119 | 编者 | Polym |


