Field codes: Symbol field

The Symbol field inserts a single character or a string of characters in the ANSI character set. You can insert a character more easily, however, by using the Symbol command (on the Insert tab, in the Symbols group, click Symbol).

You can apply character formatting (character formatting: Formatting you can apply to selected text characters.) directly to the field result (field results: Text or graphics inserted in a document when Microsoft Word carries out a field's instructions. When you print the document or hide field codes, the field results replace the field codes.) or use switches to specify the formatting. Formatting that you specify using switches overrides formatting that you apply to the field result.

Syntax

When you view the Symbol field in your document, the syntax looks like this:

{ SYMBOL CharNum [Switches] }

 Note    A field code tells the field what to show. Field results are what’s shown in the document after having evaluated the field code. To toggle between viewing the field code and the field code results, press Alt+F9.

Instructions

CharNum

The character or the decimal or hexadecimal value of the ANSI code. A hexadecimal value must have the format 0xn, where the hexadecimal number n is preceded by 0x (a zero followed by the letter x).

Switches

\a

Treats the specified code as an ANSI character (ANSI character set: An 8-bit character set used by Microsoft Windows that allows you to represent up to 256 characters (0 through 255) by using your keyboard. The ASCII character set is a subset of the ANSI set.).

\f "Font Name"

The font that contains the character you want to insert; the font name must be enclosed in quotation marks. Without this switch, the character is from the font applied to the Symbol field codes (field code: Placeholder text that shows where specified information from your data source will appear; the elements in a field that generate a field's result. The field code includes the field characters, field type, and instructions.).

\h

Inserts the symbol without affecting the line spacing (line spacing: The amount of space from the bottom of one line of text to the bottom of the next line. Microsoft Word adjusts the line spacing to accommodate the largest font or the tallest graphic in that line.) of the paragraph. If large symbols are inserted with this switch, text above the symbol may be overwritten.

\j

Treats the specified code as a SHIFT-JIS character.

\s points

Specifies the font size in points.

\u

Specifies that the characters are Unicode (Unicode: A character encoding standard developed by the Unicode Consortium. By using more than one byte to represent each character, Unicode enables almost all of the written languages in the world to be represented by using a single character set.).

Example

In the font Times New Roman, the result of the field { SYMBOL 163 } is £.

The result of the field { SYMBOL 211 \f "Symbol" \s 12 } is this 12-point character: ©.

 
 
Applies to:
Word 2013, Word 2010, Word 2007