Author Topic: Dcumnet Templates and styles  (Read 311 times)

GrahamL

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Dcumnet Templates and styles
« on: July 18, 2019, 07:28:20 pm »
Hi
I have a Front Cover template with an element in the style of Cover Heading 1 (Calibri 36)
I also have a style sheet that defines Cover Heading 1 to be something different
When I create the document I selected my new style but is is not reflected in he output -Cover Heading 1 is Calibri 36

Have I misunderstood how this is supposed to work
Thanks

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 9542
  • Karma: +275/-27
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Document Templates and styles
« Reply #1 on: July 18, 2019, 08:22:34 pm »
No, that is how it should work (in theory).
You should be able to make your templates using a set of styles (A) and then by applying the stylesheet at the generation, change all the styles to another set (B)

But, in most cases you only need one stylesheet. If that is the case, I would not make life harder then it needs to be.
Just apply your stylesheet to all of your templates. Added benefit is that you get more of a WYSIWYG experience when editing templates.

In your scenario I see a few things that might have gone wrong

- The style is not correctly defined in your stylesheet (easy mistake to make)
- The actual text in your template is no longer a vanilly style, but has overridden it.
- Something else went wrong when trying to apply the stylesheet. I've seen a few bugs in that area from time to time. One I remember was with the "normal" style. For some reason I couldn't get the normal style to change according to the stylesheet. So I've made my own normal style (normal2) and used that everywhere in stead of normal.

Geert

GrahamL

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Dcumnet Templates and styles
« Reply #2 on: July 18, 2019, 08:31:33 pm »
Hey Geert
Thanks for the reply.
How do I
Quote
Just apply your stylesheet to all of your templates
Thanks again

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 9542
  • Karma: +275/-27
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Dcumnet Templates and styles
« Reply #3 on: July 18, 2019, 09:04:45 pm »
right click somewhere in the template then Update Styles | My Stylesheet

Geert

GrahamL

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Dcumnet Templates and styles
« Reply #4 on: July 18, 2019, 10:06:24 pm »
Thanks  It seems I thought I was editing a style when I was not!.

However, one small thing remains
I have changed the color for the style for Heading 1 but the section number has not changed color, How can I do this?

Thanks
« Last Edit: July 18, 2019, 10:20:44 pm by GrahamL »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 9542
  • Karma: +275/-27
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Dcumnet Templates and styles
« Reply #5 on: July 18, 2019, 11:47:12 pm »
Thanks  It seems I thought I was editing a style when I was not!.

However, one small thing remains
I have changed the color for the style for Heading 1 but the section number has not changed color, How can I do this?

Thanks
Yeah, that sometimes doesn't work really well.
I often copy a header from somewhere where it was correct to my current template to get the color right.

trick is to copy a line before and a line after the header you need.

Geert