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

Use two different paragraph formats for one element

Explorer ,
Jul 05, 2011 Jul 05, 2011

Copy link to clipboard

Copied

Hi,

I think this is really simple, but I don't get it.

I have an element with the name "Step" and I have two paragraph formats for this element. Both for numbering.  I use one of these formats to set the numbering back to one, so I can  start with number 1 anywhere I want, so I think there is noch real  context rule for this case. How do I declare this in my EDD? Is it possible to say my EDD that it is possible to use both.

Thanks.

TOPICS
Structured

Views

410
Translate

Report

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
Advocate ,
Jul 05, 2011 Jul 05, 2011

Copy link to clipboard

Copied

Dokuteam,

In most cases I have seen context rules using the sibling indicator { first } to handle the start of numbering.

If you want to be able to control restarting of the numbering anywhere, you can add an attribute to the element, like restart = yes | no with "no" being the default value. Then  your context rule would use an attribute indicator similar to

If [restart = "yes"]

  use PgfFmt1

Else

  use PgfFmt2

- Michael

Votes

Translate

Report

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
Explorer ,
Jul 05, 2011 Jul 05, 2011

Copy link to clipboard

Copied

LATEST

I still can't believe how cool this forum is. Quick response and helpful answer. Thanks. It works!

Votes

Translate

Report

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