The chapter and section objects have behavior that interfered with the formatting of my document, so I attempted to use the generic tag feature. I ran into a limitation in the generic tag in that there was no way to determine the level of the tag in the onGenericTag event handler. So I created a GenericTag object that has two properties, a text property (String) and a level (int) property. I modified the rest of the source code to accommodate the new GenericTag object, including the onGenericTag method which now requires a GenericTag object instead of a string.

 

This change has made creating an outline of unlimited levels without changing the formatting of my document very easy. It even works when I have much of the document content in tables. So far I haven’t run into any problems.

 

I think this enhancement would be of benefit to many users.

 

Best regards,

Kim Turner

 

 

Reply via email to