Skip to main content
FabianK007
Known Participant
November 22, 2018
Question

EDD: Assign a Format Depending on the Previous Element, if Nested

  • November 22, 2018
  • 1 reply
  • 351 views

Hi folks,

I'm using structured FM13 and face spacing issues after table elements.

The spacing between the table and the next element is specified with the Table Designer (Basic>Indents & Spacing > Below). This works fine for all my elements but the note element. To obtain similar spacing as with the other elements, the spacing below for the table must be changed from 8pt to 18pt. I tried to work around with the EDD. Here is the structure:

    |-table

    |-note

    |    |-notesymbol

    |    |-p

In the EDD the rules for note element would be:

Format rules for first paragraph in element

    If context is: after table

        Basic properties > Paragraph spacing > Space above: 20pt

    Else

        Basic properties > Paragraph spacing > Space above: 12pt

This rule works but another possible structure torments me... the rule does not apply when the table is inside other elements, for instance:

    |-ul

    |    |-li

    |        |-table

    |-note

    |    |-notesymbol

    |    |-p

How would a fitting rule for this constellation look like? Is it even doable?

PS: the spacing specified in the paragraph format of the note element has no influence, this is why I change the spacing for notesymbol.

Kind Regards,

Fabian

This topic has been closed for replies.

1 reply

Inspiring
November 23, 2018

Fabian,

    An EDD context specification cannot test whether the last visible content preceding an element was a table. However, you may be able to get the result you want by setting the space below the table in the table format. This setting is called the bottom margin as of FM 2017.

--Lynne