Highlighted

How to generate a DITA ToC?

New Here ,
Mar 04, 2016

Copy link to clipboard

Copied

Hello,

I'm producing a DITA bookmap and I'm trying to insert the ToC (table of contents). When I insert the element, FM asks me to refer to a specific file. How can I automatically generate the toc and if that's not supported, how can I go about adding a toc? My impression is that automatic generation should be possible since FM uses DITA-OT to compile outputs.

Many thanks!

TOPICS
Structured

Views

513

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How to generate a DITA ToC?

New Here ,
Mar 04, 2016

Copy link to clipboard

Copied

Hello,

I'm producing a DITA bookmap and I'm trying to insert the ToC (table of contents). When I insert the element, FM asks me to refer to a specific file. How can I automatically generate the toc and if that's not supported, how can I go about adding a toc? My impression is that automatic generation should be possible since FM uses DITA-OT to compile outputs.

Many thanks!

TOPICS
Structured

Views

514

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Mar 04, 2016 0
cudspan LATEST
Explorer ,
Mar 04, 2016

Copy link to clipboard

Copied

Not sure if this is THE BEST WAY, but...  I use Maker to do what Maker does, and DITA to do what DITA does.  When it's time to generate a PDF, what I do is save my ditamap as a composite document.  I then include that document in a Maker book, complete with title page, TOC, and any other book components I want.  I then generate the book, and save as PDF.

I view the TOC as a specific rendering of the ditamap, and it's not actually part of the DITA itself...  A TOC is "format" while the DITA is content and structure.  So I don't want the TOC to be anywhere near the actual DITA...  I want to generate the TOC when the time is right.  And Maker is good at that.

I'm sure there are other ways to skin this cat...

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 04, 2016 0