Author Topic: Document fragments restart heading numbering  (Read 4449 times)

PeteC

  • EA User
  • **
  • Posts: 91
  • Karma: +1/-0
    • View Profile
Document fragments restart heading numbering
« on: September 08, 2021, 05:42:30 pm »
I've read lots of posts about heading numbering but cannot find the specific issue I am having.

I am generating a document fragment to include in an externally created master Word document. When included, the heading numbering reverts to start from number 1.

What I want is:
1. Introduction [this is in the Word master doc]
2. Architecture [this is generated from EA]

What I get is:
1. Introduction
1. Architecture

If I right-click on the Architecture number and select "Continue Numbering" it works correctly, but I cannot find anywhere in the EA template editor to change my heading style to be to continue numbering. How can I ensure that my heading continues numbering from the existing document?

I've read about using a consistent list override, but as the list starts in Word and should continue in the fragment, I don't see how EA knows about the master Word document's list that it should be following.

Out of interest, if I change my template to create a level 2 heading, then the level 1 does continue, but the level 2 restarts at 1, so I get something like this:
1. Introduction [this is in the Word master doc]
2. Something [from the Word master]
2.1 Something [from the Word master]
2.1 Architecture [this is generated from EA - heading level 1 has picked up 2 but the second level has not incremented from the existing 2.1 to 2.2]

What I don't want to have to do is remember (or for others to remember) to change the "continue numbering" whenever a fragment is updated. Ideally I don't want to insist on all sections being documented in EA (I am guessing but haven't tried that if the introduction is created from EA with the matching list override then the numbering would work)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Document fragments restart heading numbering
« Reply #1 on: September 08, 2021, 06:35:01 pm »
The "trick" is to use the same list override in your template as in your main document.

The "easy" way is to maintain your introduction etc.. as a linked document in EA, and simply generate it together with the rest of the content. (this is how we do it, and it definitely works that way if you use the same stylesheet for both your linked documents as your templates)

If that is not an option I think (not sure) you might be able to pull it off by first exporting a document (with all the heading styles) to Word, an use that exported document as the start for your master document.
This should ensure that the heading and numbering styles you use are exactly the same (hopefully)

Geert