Book a Demo

Author Topic: Heading numbering (list levels) breaking when updating styles to stylesheet  (Read 4590 times)

lmorgan

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
I have a word stylesheet that defines a multi-level list that I use for heading numbering. I imported the stylesheet RTF into an EA stylsheet, and use it in all my document templates (by selecting "update styles"). I have a template that pulls in 5-6 levels of headings and content as a subsection in a larger document. When I first pull the information  in, or when I update the dynamic content it does the heading numbering correctly, based on how packages/elements are nested. But the whole section starts at 1.1.1, vs. 3.1.1 where I need it to start based on where I dragged the package/template into my custom document.

To get the section to start at 3.1.1, I use the "update styles" feature within the larger document and point to my stylesheet. But when I do this it is breaking some of the heading assignments created initially. For example, content that is correctly at heading level 5 when dynamic content is updated is getting reassigned to heading 2, and it's renumbering it as if it were heading 2 (so it's no longer showing correct nesting in the document).

I have been struggling for days with which formatting I should update in word and import, vs. what formatting I need to fix in the EA version stylesheet, but I haven't been able to get past this issue. I still do not understand why EA is assigning list overrides to headings and other sections in my document when I am pointing to a stylesheet that was a direct import from word. Any tips you have would be appreciated!

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Heading numbering (list levels) breaking when updating styles to stylesheet
« Reply #1 on: September 27, 2023, 07:07:44 am »
lol, this isn't good news, I have never got heading numbering to work consistently, or to remain working over upgrades.
The outcome, no numbered heading in our documents generated by EA, sorry.
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Heading numbering (list levels) breaking when updating styles to stylesheet
« Reply #2 on: September 27, 2023, 04:43:04 pm »
lol, this isn't good news, I have never got heading numbering to work consistently, or to remain working over upgrades.
The outcome, no numbered heading in our documents generated by EA, sorry.
The trick is to use the same numbered list override for all heading levels.

I've never used imported stylesheets from Word, but we managed to get it working correctly using a manually edited stylesheet.
(up until v15.2 that is. I'm still waiting on a bugfix for my docgen headers problem)

Geert

lmorgan

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Heading numbering (list levels) breaking when updating styles to stylesheet
« Reply #3 on: September 28, 2023, 03:28:16 am »
lol, this isn't good news, I have never got heading numbering to work consistently, or to remain working over upgrades.
The outcome, no numbered heading in our documents generated by EA, sorry.
The trick is to use the same numbered list override for all heading levels.

I've never used imported stylesheets from Word, but we managed to get it working correctly using a manually edited stylesheet.
(up until v15.2 that is. I'm still waiting on a bugfix for my docgen headers problem)

Geert

Thanks for the suggestion, I'lll see what overrides are assigned in my current stylesheet. I really don't understand how the overrides are initially assigned or how they work - I've tried to check overrides before and if I remember correctly not all overrides were available for selection for all heading numbers. But I'll give it another try now that I have a style sheet that works pretty well other than breaking nesting of headings!

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1353
  • Karma: +121/-10
  • Its the results that count
    • View Profile
This is what I've found works more reliably.
Export the EA Style sheet and update the embedded styles as needed for the organisation style guides with MS Word.
Import the new EA Style sheet and when creating a new template update with the new stylesheet.
I do this when I first start at an organisation and it usually takes around an hour or so.
Common templates I create are
  • Stylesheet
  • Front Page
  • Table of Contents
  • Diagram with nested headers for each element
  • Diagram with table for elements
Happy to help
:)