Linking a TOC entry to another TOC
Posted: Tue Jul 10, 2018 4:46 pm
I want to split my TOC into a bunch of smaller TOCs, so that the smaller TOCs can be reused.
Let's say that one of these smaller TOCs is for Cats and it goes something like this:
Cats
---Siamese
---Persian
---Etc.
(the dashes are to indicate indents, looks like it's not keeping my spaces)
In my master TOC, I then create an item and link it to the Cats TOC. So my master TOC looks something like this:
Dogs
Cats (linking to the Cats TOC)
Horses
But, when I generate the output, my TOC ends up looking like this:
Dogs
Cats
----Cats
--------Siamese
--------Persian
Obviously I could solve this by removing the top-level Cats from my child TOC, but that means I won't have a topic associated with the top-level item. What I want is for the linked item in the master TOC to be totally replaced by the child TOC, so that the "placeholder" Cats is no longer there, and I just get the contents of the child.
Is there some way to do this that allows me to link a topic to the top-level item?
Let's say that one of these smaller TOCs is for Cats and it goes something like this:
Cats
---Siamese
---Persian
---Etc.
(the dashes are to indicate indents, looks like it's not keeping my spaces)
In my master TOC, I then create an item and link it to the Cats TOC. So my master TOC looks something like this:
Dogs
Cats (linking to the Cats TOC)
Horses
But, when I generate the output, my TOC ends up looking like this:
Dogs
Cats
----Cats
--------Siamese
--------Persian
Obviously I could solve this by removing the top-level Cats from my child TOC, but that means I won't have a topic associated with the top-level item. What I want is for the linked item in the master TOC to be totally replaced by the child TOC, so that the "placeholder" Cats is no longer there, and I just get the contents of the child.
Is there some way to do this that allows me to link a topic to the top-level item?