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 授權  Creative Commons 條款未涵蓋 Twitter™ 與 Facebook 文章。

法律說明   |   線上隱私權政策