ZZEE   AHT   Advanced HTML TOC 1.0b Help
www.zzee.com | Contents | Index | You are here: 7. How to...

7. How to...


7.1. I re-build TOC without numbering, but numbers are still there...

This happens if you have previously built TOC with Process numbering in decimal notation set, but then have rebuilt it without numbering. In such situation you need to clear all HTML code inserted with Menu > TOC > Clear TOC and all HTML code inserted keeping all previous settings in force, then change settings to new and rebuild TOC.

This happens because if Process numbering in decimal notation is switched off, then program doesn't deal with numbering.


7.2. I try to change color of header tags by changing "Named anchors' attributes", but this doesn't help...

Because program finds existing named anchors [that actually were built previously by the program], it doesn't change them. It generates named anchors only in case of their absence.

You need to clear previous results by using Menu > TOC > Clear TOC and all HTML code inserted first, and then build TOC with new settings. Named anchors will be re-created with new attributes.


7.3. How to include headers of a destination file into TOC?

Just include it into the list of source files. Even if you check Insert local TOC into each source file, local TOC inserted will be overwritten with common TOC for all source files.


7.4. Why numbering and header text have different style?

This is because numbering is always inserted right after header tag, while other header text is usually inside named anchor. To make sure that they have the same style, set properties of <h> tags and named anchors to be the same.

See also: Where numbering is inserted


7.5. How to make some part of TOC with a numbering and some without it?

Take some part of text where you need numbering in headers and according TOC items and build TOC with Process numbering in decimal notation set. Append the rest of the text, which you don't need to have any numbering. Rebuild TOC again with Process numbering in decimal notation turned off.


7.6. How to exclude some headers from TOC?

If you put <!-- TOC --> tag somewhere, all headers prior to this tag are not handled by the program and not included into the TOC. 

If you need to exclude some header in the middle of the text, then change its importance, say from <h2> to <h4>, and change range of headers processed so it falls outside.


7.7. How to differentiate style of TOC items that belong to different levels?

It is easy. There is level variable that you can use to provide different class attribute to items from different levels. Example:

<li class="toc_item_<!--#echo var='level' -->">....</li>

We have prepared a style named Bulleted tree with "differentiated" headers.