Macro Language Reference > Macros > Page > tpm
  
tpm
Description
Switches PTC ALD into temporary paragraph mode to apply one or more text attribute changes to a paragraph style. When you issue a text attribute change macro it normally affects only the text that appears after either the cursor position or the currently selected text. Putting a tpm macro in front of the text macro ensures it is applied to the paragraph style with which the text has been formatted. This temporary paragraph mode lasts until the end of the current macro line. Using tpm in this form allows you to edit a style without having to select it.
 
Example 173. Use of temporary paragraph mode with other text attribute macros
The macro below affects the text attribute macros th and tlsb following it, changing the type height of the current paragraph style to 12 point text and the paragraph's letter spacing to .25w.
tpm:th 12pt:tlsb .25w
The macro below creates a new style called _deflt_ and gives it various text attributes. If the style already exists, the given attributes will be added to it: this shows how you can edit a style without having to select text first.
tpm "_deflt_":tlse 0:twb .25w
Syntax
tpm style_name:s? macro:b?
style_name
The name of the style you wish to change, enclosed in double quote marks. If the style does not exist, PTC ALD will create it.
macro
Text attribute macro(s) to be applied