Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How can I change the font of the element p?

New Here ,
Dec 03, 2008 Dec 03, 2008
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
TOPICS
Structured
634
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Dec 03, 2008 Dec 03, 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 03, 2008 Dec 03, 2008
LATEST
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines