Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to update table of contents in RPE template when applied stylesheet is also having TOC.

 I have a stylesheet which contains Table of contents which I am applying in document specification file while generating RPE output. RPE template(.dta) file also contains table of contents.

and the generated TOC output is like,

Table Of Contents:
1. Introduction ---- Stylesheet TOC
 1.1 Scope
2. Purpose ------- Stylesheet TOC
1. Analysis-------- Template TOC
 1.1 Workitems-------Template TOC.

Is there a way to merge both the TOC in such a way that RPE template TOC will start updating  from the number 3, 3.1 instead of again starting from 1?

0 votes



One answer

Permanent link
Are you printing Section number for the artifacts? If so, you can modify the section numbers (using Script Expression) so that the numbers are incremented correctly.
Ideally you shoud not have Table Of Contents element added in RPE template when your stylesheet already has TOC. The same TOC will be updated for the headings in the whole document.



0 votes

Comments

Thanks for your response Subramanya.

I have removed TOC from the .dta file. 
Now only stylesheet is having TOC but when the template data is added into it, table is not getting updated properly. 
It starts numbering from 1.1 instead of 3.1

Please find TOC output as shown below:
1 Introduction
2 Purpose
3 Analysis
  1.1 Overview

I tested it by applying different heading styles in the template(.dta file) but still no luck.
It is not getting updated as expected.
Please suggest what could be done in this scenario.

You can refer printModuleBook.doc and printModuleBook.dta within DNG install path.

Hi Subramanya,


Thanks for the help. I have figured it out somehow.
Could you please help me with some documents/links for importing word styles(OverviewItem, Headlines etc) in RPE?
I didn't find substantial information online.

 

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,024

Question asked: Jan 30 '19, 3:58 a.m.

Question was seen: 2,059 times

Last updated: Feb 12 '19, 4:54 a.m.

Confirmation Cancel Confirm