Using symbols in document templates

Use a symbol reference or #echo command in a document template at the place where the value of the symbol is to be substituted in the text of the completed document. You can use the #set command in the template to specify a default value for a symbol.

Before you begin

The name of a symbol must contain only uppercase and lowercase letters, numbers and the special characters dollar ($), underscore (_), hyphen (-), number sign (#), period (.) and at sign (@). The name is case-sensitive, so uppercase letters are regarded as different from lowercase letters.

Procedure

What to do next

An application program that creates a document using the document template needs to define values for the symbols that are to be substituted when the template is used. If you provide a default value for a symbol, this is used if the application does not define a value for that symbol. Remember that you must define values for the symbols before, or at the time when, you insert the template into the document. You cannot change the substituted values of the symbols after the template has been inserted.


dfhp3_doc_symbol_indoc.html | Timestamp icon Last updated: Monday, 5 June 2017