Skip to main content
Known Participant
December 3, 2008
Question

How can I change the font of the element p?

  • December 3, 2008
  • 2 replies
  • 623 views
Hello,

when I insert the element p in the body of a topic the font is times new roman. All other elements have
other fonts. I want to change the font of the element p.

- I open the template and the topic.template and create a new format for a paragraph.
- I open the EDD and create in the section body elements a new TextFormatRule:
- Section body elements
- Element Tag p
- Container
- TextFormatRules
- ContextRule
- If
- Specification body
- ParagraphFormatting
- ParagraphFormatTag .... name of the paragraph format I create in the template

But it doesnt work the format of the element p is still times new roman.

If I do it that way, I have to create a TextFormatRule for every element (body, section...). Is there
an easier way to say, if all the TextFormatRules in the EDD are false/dont apply then use the textformat xyz.

With kind regards,

Nina
This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

_NF82_Author
Known Participant
December 3, 2008
Hello Russ,

thank you for your help. I read some chapters of the structure application developer guide. I use the all-contexts rule and it work.

With kind regards,

Nina
Legend
December 3, 2008
Nina,

Did you import the new EDD into the template that is used for the XML import?

In a list of context rules, there is the "else" rule that should satisfy your second question. Also, formatting is applied in a cascading manner. If you want to set a default for "body" elements, put the formatting rule on that element. Then, if no subelement has a rule which overrides it, the default is applied.

Russ