Macro Language Reference > PIs > Formatting Instructions > word
  
word
Description
Used within paragraph style definitions to call a word from the paragraph text into the paragraph style (a call-in), where it can be given different text attributes.
* 
To ensure the word is replaced into the text stream correctly after its individual styling has been applied, it is usual to include a space character after the word during the styling process.
 
Example 388. Set the first two words of a paragraph to a different font via call-in
<?up><?tf="Times-b"><?word 2>รต<?down>
Syntax
<?word num of words:n? ( type:n ignore flags:n )>
<?word>
[no parameter]
Cut one word.
num of words
The number of words you want to call in
* 
When used without parameters the command will instruct PTC ALD to cut one word by default.
type
The way the characters should be extracted from the stream:
0
Cut
1
Copy
* 
When used without parameters the command will instruct PTC ALD to cut one word by default.
ignore flags
Which tags or codes to ignore during the formatting of the <?word> command. The numbers are cumulative so, for example, if you wanted to ignore <style_tags> and <?commands> the value would be 6. To ignore all tags and codes use the value 123.
1
&references;
2
<style_tags>
4
<?commands>
8
Ends of paragraphs
16
<$$> <$>
32
<!comments>
64
Blackline marks
Additional Information
Behavioral notes
The following scenario should be noted as potentially causing issues with the correct functioning of the <?word> command:
If you were to use the command <?word 5,0,127> (cut 5 words ignoring all flags) on the following string:
<head>Demo File</head> <body>Welcome to PTC ALD.</body>
The return character will ignored via the inclusion of the number 8 ignore flag and FileWelcome will be processed as one word. This should be taken into account when assessing the use of the command.