Macro Language Reference > Macros > Text (Frame Level) > tsty
  
tsty
Description
Sets selected paragraph(s) to the specified style; the text cursor then jumps to the next paragraph after the selection. If you use certain styles a lot, you could assign several variants of the tsty macro to your keys using the special * macro.
 
Example 293. Assign multiple tags to a text stream
The macro shown below tags the first paragraph as Head, the next paragraph as SubHead, and the next as FullOut in one step. If you are working with imported, un-tagged text, you may find using tsty like this helps you format lots of text very quickly:
tsty "Head": tsty "SubHead":tsty "FullOut"
Syntax
tsty keep_attr:n? stylename:s?
tsty
[no parameter]
Invoke the Paragraph Style dialog box.
keep_attr
0
Do not keep attribute(s) of tag
1
Keep attribute(s) of tag; for example, an SGML tag such as <Table a=1 ab=2>
stylename
The name of the style with which you want to tag the current paragraph.
Related Links