Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: MatthiasVDE on April 08, 2020, 08:57:23 pm

Title: Wrong headings after generating document
Post by: MatthiasVDE 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)

Title: Re: Wrong headings after generating document
Post by: Geert Bellekens 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
Title: Re: Wrong headings after generating document
Post by: MatthiasVDE 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
Title: Re: Wrong headings after generating document
Post by: MatthiasVDE 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?
Title: Re: Wrong headings after generating document
Post by: Geert Bellekens on April 08, 2020, 10:33:34 pm
There must be. I never have additional returns in my generated documents.

Geert
Title: Re: Wrong headings after generating document
Post by: Uffe 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
Title: Re: Wrong headings after generating document
Post by: MatthiasVDE 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.
Title: Re: Wrong headings after generating document
Post by: Geert Bellekens 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
Title: Re: Wrong headings after generating document
Post by: MatthiasVDE 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' ?
Title: Re: Wrong headings after generating document
Post by: Geert Bellekens 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
Title: Re: Wrong headings after generating document
Post by: MatthiasVDE 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?
Title: Re: Wrong headings after generating document
Post by: Geert Bellekens 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
Title: Re: Wrong headings after generating document
Post by: MatthiasVDE on April 09, 2020, 06:44:06 pm
I created a new style sheet from scratch, in Word. Maybe that causes the problem.
Title: Re: Wrong headings after generating document
Post by: Geert Bellekens 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
Title: Re: Wrong headings after generating document
Post by: MatthiasVDE 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.