Macro Language Reference > Macros > Tag > ttagmk
  
ttagmk
Description
Creates a tag of the given name and adds it to the document. Everything in anPTC ALD document has a tag. At its simplest, a tag is simply a label; the name by which PTC ALD recognizes parts of a document, for instance text streams or raster and object graphics. There are two ways of specifying the type of tag you want to create using the ttagmk macro.
* 
Tags of certain types are automatically created using the tcom, tdcom, tfobject, tfraster, tftext, tgtext and tpm macros. Raster graphics are also produced via the trmk macro.
 
Example 278. Two ways to create a reference stream
Either macro shown below could be used to make a reference stream called italic:
ttagmk "italic.rf"
ttagmk "italic",2
Syntax
ttagmk tag:t type:n?
tag
The name of the tag you want to create.
type
The type can be specified by either alphabetical code as an extension to the tag name, e.g. ttagmk "Body.st" or numerically after the tag name, e.g. ttagmk "Body",1. If no type is specified PTC ALD will use the default, type 1.
For further information on tag types permitted within PTC ALD , please see Reference Chapter: PTC ALD tag types.
Additional Information
ttagmk always makes an empty stream of the type specified. PTC ALD style tags almost always require a lump attribute to function correctly: at its most basic this takes the form <?0,1,0,0,0,1,0,0,0,0,5>.
* 
Tag type extension codes are used in conjunction with several other macros, such as ttagcopy and ttagren. They should not be confused with tflist codes.
Related Links