Pages: 1
Print
Author Topic: TopLeaf: Auto-generate a mini-Toc of the following titles?  (Read 3005 times)
TripleDoh
Member

Posts: 3


« on: June 05, 2014, 09:28:36 AM »

(TopLeaf 7.6.025)

Is it possible to generate a mini-toc after a topic that lists the heading (title) of the next topics. Stopping when the file type changes back to 'topic'.
The file tagged as 'topic' with children tagged as 'repair'.
topic
   repair (A)
   repair (B)
   repair (C)
So, in the pdf output you would see the title & content of the topic, then a list of the titles of the repair topics (with or without hyperlink), then each repair topic and the content. And then stop. (Then there would be this structure again, and so on). So it only lists the immediate repair topics that follow.

Is there an easy way to do this?

Help appreciated!
« Last Edit: June 05, 2014, 06:18:26 PM by Derek Read » Logged
tonys
JustSystems Partner
Member

Posts: 80


« Reply #1 on: June 09, 2014, 05:28:53 PM »

***NOTE***
This response has been delayed for several days because the forum has been rejecting my posts. If you don't get a reply in a reasonable time, please contact support@turnkey.com.au.
***********

The general approach would be to generate an XREF for each of the "repair" topics that included the id of the parent topic on the first pass. On the second pass the mapping for the topic could collect these and emit the appropriate content.

Anything more specific would require an understanding of how you are using DITA to achieve this, so contact support@turnkey.com.au if you need more assistance.
Logged
palmer@dst
Member

Posts: 56


« Reply #2 on: August 28, 2014, 08:44:18 AM »

Could you provide a "recipe" or detailed example of how this might be done in the base DITA template provided with TopLeaf? It would be quite useful to see an possible implementation first.

Thanks!

R Palmer
Logged

rpalmer
DST Systems, Inc.
tonys
JustSystems Partner
Member

Posts: 80


« Reply #3 on: August 28, 2014, 04:55:17 PM »

I'll log an enhancement request for an example in the demonstration stylesheets.
Logged
Pages: 1
Print
Jump to: