Contents

# 變量

Variable fields let you add dynamic content to your document. For example, you can use a variable to reset the page numbering.

若要使用此指令...

選擇 [插入] - [欄位] - [其他] - [變數] 標籤

### 類型

Lists the available field types.

類型 | 描述
--- | ---
設定變量 | Defines a variable and its value. You can change the value of a variable by clicking in front of the variable field, and then choosing Edit - Field.
顯示變量 | Inserts the current value of the variable that you click in the Select list.
DDE 欄位 | 將 DDE 捷徑插入文件中，您可以透過指定的名稱隨時更新此連結。
插入公式 | 插入固定數字或公式的結果。
輸入欄位 | 插入變量或使用者欄位的新值。 輸入欄位中變量的值僅從其欄位插入處起 (包括欄位插入處) 有效。以後若要變更文件中變量的值，請插入名稱相同但值不同的另一個輸入欄位。但是，使用者欄位的值會全域變更。 The variables are displayed in the Select field. When you click the Insert button, the dialog Review Fields appears, where you can enter the new value or additional text as a remark.
號碼範圍 | Inserts automatic numbering for tables, graphics, or frames.
設定頁面變量 | 在文件中插入參照點，頁面計數會在其後重新開始。選取「開啟」啟動此參照點，選取「關閉」將其停用。您也可以輸入偏移來以不同的數字開始頁面計數。
Show page variable | 顯示從「設定頁面變量」參照點到此欄位的頁數。
自訂欄位 | 插入自訂全域變量。您可以使用使用者欄位，定義條件陳述的變量。當您變更使用者欄位時，文件中此變量所有的實例都會更新。

## Select

Lists the available fields for the field type selected in the Type list. To insert a field, click the field, and then click Insert.

To quickly insert a field from the Select list, hold down Command Ctrl and double-click the field.

### 格式

If a field is displaying a date, time or number, then Format is used to customize the appearance of the date, time, or number. Common formats are shown in the Format window, or click "Additional formats" to define a custom format.

### 名稱

Type the name of the user-defined field that you want to create. This option is available for "Set variable", "DDE field", "Number range" and "User Field" field types.

自訂欄位只能在目前文件中使用。

### Value

Enter the contents that you want to add to a user-defined field.

在[格式]清單中，定義該值是作為文字插入還是作為數字插入。

The following fields can only be inserted if the corresponding field type is selected in the Type list.

在 HTML 文件中，「設定變量」欄位類型有兩個其他的欄位可用：HTML_ON and HTML_OFF。當檔案儲存為 HTML 檔案，您在[數值]方塊中鍵入的文字會依據您選取的選項，轉換為起始 HTML 標記 (<數值>) 或結束 HTML (</數值>) 標記。

## DDE Statement

DDE 指令的一般語法是："<Server> <Topic> <Item>"，在此處 Server 是包含資料的應用程式的 DDE 名稱。Topic 是指 Item 的位置 (通常是檔案名稱)，而 Item 表示實際物件。

This option is only available if the "DDE field" field type is selected.

## 公式

This option is only available if the "Insert Formula" field type is selected.

### 提示

鍵入在欄位中要顯示的文字。若插入的是佔位項欄位，鍵入的文字應是當滑鼠指標置於欄位上時，欲顯示出的提示說明内容。

#### 偏移

輸入您要套用於頁碼欄位的偏移值，例如 "+1"。

This option is only available if the "Set page variable" field type is selected.

## 隱藏的

Hides the field contents in the document. The field is inserted as a thin gray mark in the document. This option is only available for the "Set Variable" and "User Field" field types.

## With Heading Number

Use this option to display a heading number before a “number range” field. The heading number comes from a heading prior to the location of the field.

### Up to level

With typical use of headings in the document, the selected number will indicate how many levels of heading number (starting from level 1) to display. The selected value indicates the maximum number of levels to show. The actual number may have fewer levels. For example, if the immediately prior heading number is 2.6, and 4 is selected, then only 2.6 is displayed . If [None] is selected, no heading number is displayed.

The heading number selected for display is the first prior heading whose outline level is equal to or less than the selected outline level. For example, select “2” to use the heading number of the first prior heading with outline level 1 or outline level 2.

### 分隔符

Specify the character to use as a separator between the heading number and the field number.

With Heading Number, Up to level and Separator are only available for the “Number range” field type.

## 指定

Adds the user-defined field to the Select list.

套用

## 刪除

Removes the user-defined field from the select list. You can only remove fields that are not used in the current document. To remove a field that is used in the current document from the list, first delete all instances of the field in the document, and then remove it from the list.

刪除