Macro Language Reference > Macros > Table of Contents > ttocmk
  
ttocmk
Description
Invokes the Create Simple Table of Contents dialog box for you to create either a simple table of contents or a contents control stream. The contents control stream can then be used in conjunction with the tformat macro to generate and regenerate a table of contents.
Syntax
ttocmk
Additional Information
Control streams are really only text streams with a special type, so they can be created or edited just like any other text stream. If you want a new contents control stream, we suggest that you use this method to create a stream with your basic requirements and then edit it as necessary.
A contents control stream consists of various keywords. You can think of these in much the same way as other PTC ALD macros, which PTC ALD interprets by reading the control stream when you reformat a document to produce a table of contents. A simple contents control stream created via dialog box is shown below:
contents "co1"
style 1,"Ahead","Cont_lev1"
nformat 1,"?$g"
style 2,"Bhead","Cont_lev2"
nformat 2,"?$g"
style 3,"Chead","Cont_lev3"
nformat 3,"?$g"
style 4,"Dhead","Cont_lev4"
nformat 4,"?$g"
style 5,"Ehead","Cont_lev5"
nformat 5,"?$g"
Related Links