About table and cell styles                

 

Justas you use text styles to format text, you can use table and cellstyles to format tables. A table style is a collectionof table formatting attributes, such as table borders and row andcolumn strokes, that can be applied in a single step. A cellstyle includes formatting such as cell insets, paragraphstyles, and strokes and fills. When you edit a style, all tablesor cells to which the style is applied are updated automatically.

 

注意:          

Thereis one important difference between text styles and table styles.While all character styles attributes can be part of a paragraphstyle, cell style attributes are not part of the table style. Forexample, you cannot use a table style to change the border colorof interior cells. Instead, create a cell style and include it inthe table style.


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

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

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

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

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


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

单元格样式属性

Cell styles do notnecessarily include all the formatting attributes of a selected cell.When you create a cell style, you can determine which attributesare included. That way, applying the cell style changes only thedesired attributes, such as cell fill color, and ignores all othercell attributes.

样式中的格式优先级

If a conflictoccurs in formatting applied to a table cell, the following orderof 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 atable style 4. Table overrides 5. Table styles. For example, ifyou apply one fill using the Cell Options dialog box and anotherfill using the cell style, the fill from the Cell Options dialogbox is used.


Table/Cell Styles panels overview                

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

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

Open the Table Styles or Cell Stylespanel                

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

Change how styles are listed inthe panel                

  • 选择“小面板行”将以更加精简的形式显示样式。

  • 可以将样式拖移至其他位置。也可以将样式拖移至创建的组中。

  • 在面板菜单中选择“按名称排序”将按字母顺序列出样式。

Define table and cell styles                

    • 如果想基于现有的表格式或单元格格式创建一种新的样式,请将插入点放在某个单元格中。

    • 如果需要,可以为该单元格样式定义段落样式。

    • 选择“窗口”>“样式”>“表样式”,打开“表样式”面板,或选择“窗口”>“样式”>“单元格样式”,打开“单元格样式”面板。

    • 在“表样式”面板菜单中选择“新建表样式”,或从“单元格样式”面板菜单中选择“新建单元格样式”。

    • 在“样式名称”中键入一个名称。

    • 对于“基于”,请选择当前样式所基于的样式。

    • 要定义样式快捷键,请将插入点放置在“快捷键”文本框中,并确保 Num Lock 已打开。然后,按住 Shift、Alt 或 Ctrl 键的任意组合 (Windows) 或者 Shift、Option 和 Command 键的任意组合 (Mac OS),并按数字小键盘上的数字。不能使用字母或非小键盘数字定义样式快捷键。

    • 要指定格式属性,请单击左侧的某个类别,然后指定需要的属性。例如,要想为单元格样式指定一种段落样式,请单击“常规”类别,然后从“段落样式”菜单中选择该段落样式。

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

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

Load (import) table styles fromother documents                

 

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

    • 在“单元格样式”面板菜单或“表样式”面板菜单中,选择“载入单元格样式”、“载入表样式”或“载入表和单元格样式”。

    • 双击包含要导入样式的 InDesign 文档。

    • 在“载入样式”对话框中,确保选中要导入的样式。如果任何现有样式与其中一种导入的样式同名,请在“与现有样式冲突”下选择下列选项之一,然后单击“确定”:

      Use Incoming Style Definition


      Overwrites the existing style with the loaded style andapplies its new attributes to all cells in the current documentthat used the old style. The definitions of the incoming and existingstyles appear at the bottom of the Load Styles dialog box so youcan compare them.


      Auto-Rename


      Renames the loaded style. For example, if both documentshave 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 tablestyle does not override cell formatting, and applying a cell styledoes not override table formatting. By default, applying a cellstyle removes formatting applied by any previous cell style, butdoes not remove local cell formatting. Similarly, applying a tablestyle removes formatting applied by any previous table style, butdoes not remove overrides made using the Table Options dialog box.

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

    • 将插入点放置在表中,或选择要应用样式的单元格。

    • 执行以下操作之一:

      • 在“表样式”或“单元格样式”面板(选择“窗口”>“样式”>“表样式”或“单元格样式”)中,单击表样式或单元格样式。如果该样式属于某个样式组,可展开样式组找到该样式。

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

Base one table or cell style onanother                

 

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

    • 创建一种新样式。

    • 在“新建表样式”或“新建单元格样式”对话框中,从“基于”菜单中选择父样式。新样式将变成子样式。

    • 为新样式指定格式,以便将它与父样式区分开。

Edit table and cell styles                

One of the advantages of using stylesis that when you change the definition of a style, all of the tablesor cells formatted with that style change to match the new styledefinition.

    • 执行以下操作之一:

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

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

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

Delete table and cell styles                

When you delete a style, you canselect a different style to replace?it, and you can choosewhether to preserve the formatting.

    • 在“样式”面板中选择样式。

    • 执行以下操作之一:

      • 在面板菜单中选择“删除样式”。

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

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

    • 选择要替换它的样式。

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

    • 单击“确定”。

Redefine table or cell styles basedon current formatting                

 

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

    • 将插入点放置在要对其样式重新定义的表或单元格中。

    • 根据需要更改表或单元格。

    • 从“样式”面板菜单中选择“重新定义样式”。

 

注意:          

For cell styles, changes to only those attributesthat are part of the cell style will enable the Redefine Style command.For example, if the cell style includes a red fill and you overridea cell to use a blue fill, you can redefine the style based on thatcell. But if you change an attribute that is ignored in the cellstyle, 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 overridea cell, you can change options in the Cell Options dialog box oruse other panels to change the stroke or fill. If you select a tableor cell that has an override, a plus sign?(+) appears nextto the style in the Styles panel.

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

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


Preserve or remove overrides whileapplying 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 thenchoose Apply [table style], Clear Cell Styles to apply a style andclear cell styles.

Remove overrides while applyinga cell style                

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

       

      注意:          

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


Clear attributes not defined bya cell style                

 

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

Clear table or cell overrides                

 

    • 选择包含优先选项的表或单元格。

    • 在“样式”面板中,单击“清除选区中的优先选项”图标;或从“样式”面板菜单中选择“清除优先选项”。

Break the link to table or cellstyles                

 

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

    • 选择已经应用了该样式的单元格。

    • 从“样式”面板菜单中选择“断开与样式的链接”。


,