Book a Demo

Author Topic: DocGen: style sheets and the Normal style  (Read 3801 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
DocGen: style sheets and the Normal style
« on: November 21, 2019, 11:29:36 pm »
OK Dudes, are we ready to rock?


I'm working on a style sheet based on Numbered Headings - Black.

I've done some basic stuff to Heading styles, page break before Heading 1, Keep With Next on all Headings, a bit of paragraph spacing, that kind of thing. This works.

I also want to apply some formatting to the Normal style. This doesn't work.

I've set some paragraph spacing and set Keep Together (and manually corrected all the list level fonts because when you change the Normal style, EA resets the formatting in the list levels -- delightful), and while these changes are present in the exported/imported style sheet (from my MDG project to my test project), they are not applied in the generated document.

The same goes for Table Text Normal. I've modified it, made sure it's set in the table-generating template, it comes out as Table Text Normal in the generated table and the paragraph spacing is correct in the style sheet -- but in the generated document, that style has no spacing. But the same changes applied the same way to Table Heading work.

What the actual hell is going on there?

This is in 1512, btw.

Cheers,


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

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: DocGen: style sheets and the Normal style
« Reply #1 on: November 22, 2019, 04:10:47 am »
I've noticed the same thing with the normal style, it doesn't work.

We now use our own style "Normal2" instead of "Normal"

Geert

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: DocGen: style sheets and the Normal style
« Reply #2 on: November 22, 2019, 08:52:34 am »
I've noticed the same thing with the normal style, it doesn't work.
We now use our own style "Normal2" instead of "Normal"
But doesn't that mean you have to manually set the Normal2 style in each and every template you create?

There again, it looks like EA doesn't use the Table Text Normal (or heading) style in tables unless you set that manually.

I'm thinking it might be that you need to update Normal in Normal.rtf in order for it to work, but I haven't tested that.
Not an option for me anyway since I'm not one single modeller working on one single computer always and forever.

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

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: DocGen: style sheets and the Normal style
« Reply #3 on: November 22, 2019, 03:32:06 pm »
I've noticed the same thing with the normal style, it doesn't work.
We now use our own style "Normal2" instead of "Normal"
But doesn't that mean you have to manually set the Normal2 style in each and every template you create?

Yes, it does, but I discovered the problem early enough so I didn't have too much rework at that time.

We don't have the same issue with Table Text Normal however. That seems to work just fine for us.

Geert

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: DocGen: style sheets and the Normal style
« Reply #4 on: November 22, 2019, 08:29:29 pm »
Interesting

I just tried a very simple style sheet and used it with a very simple template in EA 1513 and it worked just fine.

I created a new style from scratch (did not copy an existing one)
Set Heading 1 to Comic Sans
Set Normal to Comic Sans Red

(I used Comic Sans only so I could definitely see if the stylesheet worked)

Then used this in a template

All was fine

The only difference I can see, is that your style sheet is based on a copy from Sparx, whereas mine is not?

I have always created my stylesheets from scratch using just the styles I need, but I agree it should work no matter how you approach your stylesheet creation.

Maybe give creating a stylesheet from scratch and see if that works for you

All the best

Phil
Models are great!
Correct models are even greater!