Specify the actions, using combinations of predefined functions and user-defined variables, to be taken when encountering a paragraph of the declared format tag. If only default actions are desired, then no rules are specified other than the paragraph type declaration and, possibly, the setting of attribute values.
PARAGRAPH "1Heading" TYPE Heading { NEWNODE BasicSection LEVEL 1 ACTIONS { write(*,heading(1,text())); write(*,hrule()); } } PARAGRAPH "Step" TYPE List { LEVEL 2 KIND Number ACTIONS { write(*,listitem(paragraph(text()))); } } PARAGRAPH "Warning" TYPE Normal { ACTIONS { write(*,hrule()); write(*,paragraph(concatenate( image("warning.gif",top), bold(text())))); write(*,hrule()); } }