Author Topic: Wrong headings after generating document  (Read 4944 times)

MatthiasVDE

  • EA User
  • **
  • Posts: 196
  • Karma: +1/-0
    • View Profile
Wrong headings after generating document
« on: April 08, 2020, 08:57:23 pm »
Code: [Select]
package >
1. Requirements (heading 1)
child packages >
1.1 {Pgk.Name} (heading 2)
< child packages
<package

When I generate this, the document shows the  package names in heading 3 instead of heading 2. To get them in heading 2, I need to put them in heading 1 in my template. Is this a bug?

it is not because of my stylesheet, because if I do it like this he will show it correctly:

Code: [Select]

1. Requirements (heading 1)

1.1 The Name (heading 2)

« Last Edit: April 08, 2020, 09:00:01 pm by MatthiasVDE »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +564/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Wrong headings after generating document
« Reply #1 on: April 08, 2020, 09:37:02 pm »
Matthias,

You are not supposed to put anything in the child packages node (but it might work despite that)
And yes, when going down a level, EA will automatically go to a higher heading, works as designed.

Geert

MatthiasVDE

  • EA User
  • **
  • Posts: 196
  • Karma: +1/-0
    • View Profile
Re: Wrong headings after generating document
« Reply #2 on: April 08, 2020, 09:55:03 pm »
Matthias,

You are not supposed to put anything in the child packages node (but it might work despite that)
And yes, when going down a level, EA will automatically go to a higher heading, works as designed.

Geert

Thx Geert, I didn't know that

MatthiasVDE

  • EA User
  • **
  • Posts: 196
  • Karma: +1/-0
    • View Profile
Re: Wrong headings after generating document
« Reply #3 on: April 08, 2020, 10:03:12 pm »
Another thing about this templates topic.

Quote
t
package >
     Title

< package

I repeatedly add this template to a document in order to  sum op some topics. But above the topic titles in the document, there's always a blank return/enter space. Is there any way to avoid this?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +564/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Wrong headings after generating document
« Reply #4 on: April 08, 2020, 10:33:34 pm »
There must be. I never have additional returns in my generated documents.

Geert

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Wrong headings after generating document
« Reply #5 on: April 08, 2020, 11:16:53 pm »
Hi Matthias,

I sometimes have issues with blank spaces, especially when there are fragments involved.

You can try moving the field labels and content opening/closing tags so they're on the same line:
    package>{Pkg.Name}<package

This can resolve some of those issues.

HTH,


/Uffe
My theories are always correct, just apply them to the right reality.

MatthiasVDE

  • EA User
  • **
  • Posts: 196
  • Karma: +1/-0
    • View Profile
Re: Wrong headings after generating document
« Reply #6 on: April 08, 2020, 11:57:54 pm »
Thanks Uffe, I'll give this a try.

Still another issue  8)

When I start with a new heading 1 title, like for example 2. Descriptions. I want that my heading 2 titles then start again with 2.1, 2.3, ... But they don't, they continue with numbering following on the ones from the previous chapter.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +564/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Wrong headings after generating document
« Reply #7 on: April 09, 2020, 02:20:45 am »

Still another issue  8)

When I start with a new heading 1 title, like for example 2. Descriptions. I want that my heading 2 titles then start again with 2.1, 2.3, ... But they don't, they continue with numbering following on the ones from the previous chapter.
You need to make sure all the numbered headings are in the same numberset (or whatever that was called)

Geert

MatthiasVDE

  • EA User
  • **
  • Posts: 196
  • Karma: +1/-0
    • View Profile
Re: Wrong headings after generating document
« Reply #8 on: April 09, 2020, 04:41:11 pm »

Still another issue  8)

When I start with a new heading 1 title, like for example 2. Descriptions. I want that my heading 2 titles then start again with 2.1, 2.3, ... But they don't, they continue with numbering following on the ones from the previous chapter.
You need to make sure all the numbered headings are in the same numberset (or whatever that was called)

Geert

You mean 'List and Overrides' ?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +564/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Wrong headings after generating document
« Reply #9 on: April 09, 2020, 05:52:41 pm »

Still another issue  8)

When I start with a new heading 1 title, like for example 2. Descriptions. I want that my heading 2 titles then start again with 2.1, 2.3, ... But they don't, they continue with numbering following on the ones from the previous chapter.
You need to make sure all the numbered headings are in the same numberset (or whatever that was called)

Geert

You mean 'List and Overrides' ?
Yes, that thing. They should all be part of the same list.

Geert

MatthiasVDE

  • EA User
  • **
  • Posts: 196
  • Karma: +1/-0
    • View Profile
Re: Wrong headings after generating document
« Reply #10 on: April 09, 2020, 06:10:28 pm »
For each type of heading (heading 1, heading 2 and heading 3) I tried to Edit list item and select the same list (there are a lot!!!). But it does not work, when I select a list, he sets it back to the original list.
It's hard to believe that this is the only way to get my numbering fixed?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +564/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Wrong headings after generating document
« Reply #11 on: April 09, 2020, 06:32:12 pm »
For each type of heading (heading 1, heading 2 and heading 3) I tried to Edit list item and select the same list (there are a lot!!!). But it does not work, when I select a list, he sets it back to the original list.
It's hard to believe that this is the only way to get my numbering fixed?
Yes, that can be a PITA, especially if you have been messing with the stylesheet a lot.
Sometimes it's easier to start with fresh clean stylesheet.

Geert

MatthiasVDE

  • EA User
  • **
  • Posts: 196
  • Karma: +1/-0
    • View Profile
Re: Wrong headings after generating document
« Reply #12 on: April 09, 2020, 06:44:06 pm »
I created a new style sheet from scratch, in Word. Maybe that causes the problem.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +564/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Wrong headings after generating document
« Reply #13 on: April 09, 2020, 06:58:04 pm »
I created a new style sheet from scratch, in Word. Maybe that causes the problem.
Yeah, if you start from a Word document you get all kinds of messes in your EA stylesheet.

Geert

MatthiasVDE

  • EA User
  • **
  • Posts: 196
  • Karma: +1/-0
    • View Profile
Re: Wrong headings after generating document
« Reply #14 on: April 09, 2020, 07:54:20 pm »
I spent a lot of time creating that stylesheet in Word. Hopefully I can fix that heading numbering, otherwise it would be a shame.