About table and cell styles

Just as you use text styles to format text, you can use table and cell styles to format tables. A table style is a collection of table formatting attributes, such as table borders and row and column strokes, that can be applied in a single step. A cell style includes formatting such as cell insets, paragraph styles, and strokes and fills. When you edit a style, all tables or cells to which the style is applied are updated automatically.

注意:

There is one important difference between text styles and table styles. While all character styles attributes can be part of a paragraph style, cell style attributes are not part of the table style. For example, you cannot use a table style to change the border color of interior cells. Instead, create a cell style and include it in the table style.

[基本表] 样式和 [无] 样式

By default, each new document contains a [Basic Table] style that can be applied to tables you create and a [None] style that can be used to remove cell styles applied to cells. You can edit the [Basic Table] style, but you can’t rename or delete either [Basic Table] or [None].

在表样式中使用单元格样式

When you create a table style, you can specify which cell styles are applied to different regions of the table: header and footer rows, left and right columns, and body rows. For example, for the header row, you can assign a cell style that applies a paragraph style, and for the left and right columns, you can assign different cell styles that apply shaded backgrounds.

在表样式中应用于不同区域的单元格样式

A. 格式为包含段落样式的单元格样式的表头行 B. 左列 C. 正文单元格 D. 右列 

单元格样式属性

Cell styles do not necessarily include all the formatting attributes of a selected cell. When you create a cell style, you can determine which attributes are included. That way, applying the cell style changes only the desired attributes, such as cell fill color, and ignores all other cell attributes.

样式中的格式优先级

If a conflict occurs in formatting applied to a table cell, the following order of precedence determines which formatting is used:

Cell style precedence

1. Header/Footer 2. Left column/Right column 3. Body rows. For example, if a cell appears in both the header and the left column, the formatting from the header cell style is used.

Table style precedence

1. Cell overrides 2. Cell style 3. Cell styles applied from a table style 4. Table overrides 5. Table styles. For example, if you apply one fill using the Cell Options dialog box and another fill using the cell style, the fill from the Cell Options dialog box is used.

Table/Cell Styles panels overview

Use the Table Styles panel (Window > Styles >Table Styles) to create and name table styles, and to apply the styles to existing tables or tables you create or import. Use the Cell Styles panel (Window > Styles > Cell Styles) to create and name cell styles, and to apply the styles to table cells. Styles are saved with a document and appear in the panel each time you open that document. You can save table and cell styles in groups for easier management.

When you position the insertion point in a cell or table, any style that is applied is highlighted in either of the panels. The name of any cell style that is applied through a table style appears in the lower left corner of the Cell Styles area. If you select a range of cells that contains multiple styles, no style is highlighted and the Cell Styles panel displays “(Mixed).”

Open the Table Styles or Cell Styles panel

  1. 选择“窗口”>“样式”,然后选择“表样式”或“单元格样式”。

Change how styles are listed in the panel

  • 选择“小面板行”将以更加精简的形式显示样式。
  • 可以将样式拖移至其他位置。也可以将样式拖移至创建的组中。
  • 在面板菜单中选择“按名称排序”将按字母顺序列出样式。

Define table and cell styles

  1. 如果想基于现有的表格式或单元格格式创建一种新的样式,请将插入点放在某个单元格中。
  2. 如果需要,可以为该单元格样式定义段落样式。
  3. 选择“窗口”>“样式”>“表样式”,打开“表样式”面板,或选择“窗口”>“样式”>“单元格样式”,打开“单元格样式”面板。
  4. 在“表样式”面板菜单中选择“新建表样式”,或从“单元格样式”面板菜单中选择“新建单元格样式”。
  5. 在“样式名称”中键入一个名称。
  6. 对于“基于”,请选择当前样式所基于的样式。
  7. 要定义样式快捷键,请将插入点放置在“快捷键”文本框中,并确保 Num Lock 已打开。然后,按住 Shift、Alt 或 Ctrl 键的任意组合 (Windows) 或者 Shift、Option 和 Command 键的任意组合 (Mac OS),并按数字小键盘上的数字。不能使用字母或非小键盘数字定义样式快捷键。
  8. 要指定格式属性,请单击左侧的某个类别,然后指定需要的属性。例如,要想为单元格样式指定一种段落样式,请单击“常规”类别,然后从“段落样式”菜单中选择该段落样式。

    For cell styles, options that don’t have a setting specified are ignored in the style. If you don’t want a setting to be part of the style, choose (Ignore) from the setting’s menu, delete the contents of the field, or click a check box until a small box appears in Windows or a hyphen (-) appears in Mac OS.

  9. 如果希望新样式显示在创建的样式组中,可将新样式拖到样式组文件夹中。

Load (import) table styles from other documents

You can import table and cell styles from another InDesign document into the active document. During import, you can determine which styles are loaded and what should occur if a loaded style has the same name as a style in the current document. You can also import styles from an InCopy document.

  1. 在“单元格样式”面板菜单或“表样式”面板菜单中,选择“载入单元格样式”、“载入表样式”或“载入表和单元格样式”。
  2. 双击包含要导入样式的 InDesign 文档。
  3. 在“载入样式”对话框中,确保选中要导入的样式。如果任何现有样式与其中一种导入的样式同名,请在“与现有样式冲突”下选择下列选项之一,然后单击“确定”:

    Use Incoming Style Definition

    Overwrites the existing style with the loaded style and applies its new attributes to all cells in the current document that used the old style. The definitions of the incoming and existing styles appear at the bottom of the Load Styles dialog box so you can compare them.

    Auto-Rename

    Renames the loaded style. For example, if both documents have a style named “Table Style 1,” the loaded style is renamed “Table Style 1 copy” in the current document.

Apply table and cell styles

Unlike paragraph and character styles, table and cell styles do not share attributes, so applying a table style does not override cell formatting, and applying a cell style does not override table formatting. By default, applying a cell style removes formatting applied by any previous cell style, but does not remove local cell formatting. Similarly, applying a table style removes formatting applied by any previous table style, but does not remove overrides made using the Table Options dialog box.

In the Styles panel, a plus sign (+) appears next to the current cell or table style if the selected cell or table has additional formatting that isn’t part of the applied style. Such additional formatting is called an override.

  1. 将插入点放置在表中,或选择要应用样式的单元格。
  2. 执行以下操作之一:
    • 在“表样式”或“单元格样式”面板(选择“窗口”>“样式”>“表样式”或“单元格样式”)中,单击表样式或单元格样式。如果该样式属于某个样式组,可展开样式组找到该样式。

    • 按下为该样式定义的快捷键。(确保 Num Lock 键已打开。)

Base one table or cell style on another

You can create links between similar table or cell styles by creating a base, or parent, style. When you edit the parent style, any changed attribute that appears in the child styles will change as well. By default, table styles are based on [No Table Style], and cell styles are based on [None].

  1. 创建一种新样式。
  2. 在“新建表样式”或“新建单元格样式”对话框中,从“基于”菜单中选择父样式。新样式将变成子样式。
  3. 为新样式指定格式,以便将它与父样式区分开。

Edit table and cell styles

One of the advantages of using styles is that when you change the definition of a style, all of the tables or cells formatted with that style change to match the new style definition.

  1. 执行以下操作之一:
    • 如果不希望将该样式应用到所选表或单元格,请在“样式”面板中右键单击 (Windows) 或按住 Control 键单击 (Mac OS) 该样式,然后选择“编辑 [样式名称]”。

    • 在“样式”面板中,双击该样式;或者选择该样式,然后从“样式”面板菜单中选择“样式选项”。请注意,此方法将把单元格样式应用到任何选定的单元格或把表样式应用到任何选定的表。如果未选定任何表,则双击某个表样式将把该样式设为所创建表的默认样式。

  2. 在对话框中调整设置,然后单击“确定”。

Delete table and cell styles

When you delete a style, you can select a different style to replace it, and you can choose whether to preserve the formatting.

  1. 在“样式”面板中选择样式。
  2. 执行以下操作之一:
    • 在面板菜单中选择“删除样式”。

    • 单击面板底部的“删除”图标 

    • 右键单击 (Windows) 或按住 Control 键单击 (Mac OS) 该样式,然后选择“删除样式”。对于删除不应用于选定单元格或表的样式,这个方法特别有用。

  3. 选择要替换它的样式。

    If you select [No Table Style] to replace a table style or [None] to replace a cell style, select Preserve Formatting to keep the formatting of the table or cell to which the style is applied. The table or cell preserves its formatting but is no longer associated with a style.

  4. 单击“确定”。

Redefine table or cell styles based on current formatting

After you apply a style, you can override any of its settings. If you decide you like the changes, you can redefine the style to retain the new formatting.

  1. 将插入点放置在要对其样式重新定义的表或单元格中。
  2. 根据需要更改表或单元格。
  3. 从“样式”面板菜单中选择“重新定义样式”。

注意:

For cell styles, changes to only those attributes that are part of the cell style will enable the Redefine Style command. For example, if the cell style includes a red fill and you override a cell to use a blue fill, you can redefine the style based on that cell. But if you change an attribute that is ignored in the cell style, you can’t redefine the style with that attribute.

Override table and cell styles

After you apply a table or cell style, you can override any of its settings. To override a table style, you can change options in the Table Options dialog box. To override a cell, you can change options in the Cell Options dialog box or use other panels to change the stroke or fill. If you select a table or cell that has an override, a plus sign (+) appears next to the style in the Styles panel.

You can clear table and cell overrides when you apply a style. You can also clear overrides from a table or cell to which a style has already been applied.

注意:

If a style has a plus sign (+) next to it, hover over the style to view a description of the override attributes.

Preserve or remove overrides while applying a table style

  • 要应用某一表样式并保留单元格样式,但移去优先选项,请在单击“表样式”面板中的该样式名称时按住 Alt 键 (Windows) 或 Option 键 (Mac OS)。
  • 要应用某一表样式并将单元格样式和优先选项都移去,请在单击“表样式”面板中的该样式名称时按住 Alt+Shift 组合键 (Windows) 或 Option+Shift 组合键 (Mac OS)。

注意:

Right-click (Windows) or Control-click (Mac OS) the style in the Table Styles panel, and then choose Apply [table style], Clear Cell Styles to apply a style and clear cell styles.

Remove overrides while applying a cell style

  1. 要应用某一单元格样式并移去优先选项,请在单击“单元格样式”面板中的该样式名称时按住 Alt 键 (Windows) 或 Option 键 (Mac OS)。

    注意:

    Only those attributes that are part of the cell style are considered overrides. For example, if the cell style includes a red fill and all other attributes are ignored, changing a different cell option is not considered an override.

Clear attributes not defined by a cell style

  1. 在“单元格样式”面板菜单中选择“清除非样式定义属性”。

Clear table or cell overrides

  1. 选择包含优先选项的表或单元格。
  2. 在“样式”面板中,单击“清除选区中的优先选项”图标;或从“样式”面板菜单中选择“清除优先选项”。

When you break the link between tables or cells and the style applied to them, the tables or cells retain their current formatting. However, future changes to that style won’t affect them.

  1. 选择已经应用了该样式的单元格。
  2. 从“样式”面板菜单中选择“断开与样式的链接”。

本产品经 Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License 许可  Twitter™ 与 Facebook 中的内容不在 Creative Commons 的条款约束之下。

法律声明   |   在线隐私策略