Skip to main content
Inspiring
July 5, 2011
Question

Use two different paragraph formats for one element

  • July 5, 2011
  • 1 reply
  • 449 views

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.

This topic has been closed for replies.

1 reply

Michael_Müller-Hillebrand
Legend
July 5, 2011

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

Dokuteam1Author
Inspiring
July 5, 2011

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