hi! thanks for answering so quickly and thanks for taking the trouble to troubleshoot my code. You know, when I was composing that last post, I looked back and saw that Kovid just had an abbreviated line of code and I wondered, but just thought he didn't want to put the whole thing there. I guess all that chapter stuff can't be there if you want the TOC to be hierarchical in form. I havn't tried it yet but I'm sure the solution is what you said. It sure makes sense.
Thanks,

Paul