Skip to main content
QuintinSeegers
Legend
June 2, 2021
Answered

Using elements in System Variable Definition

  • June 2, 2021
  • 1 reply
  • 316 views

In my structued document, a Section element contains (amongst other things) a Heading element. Each section can also contain a Section element (resulting in a sub-section). In the Heading element, I have level rules to check the level (number of Section elements above) and apply appropriate formatting.

In the page heading, I want to include the content of the Heading element currently at Level 1, i.e.:

Section

   Heading (level 1)

   Section

   Heading (level 2)

On my page header, I want to see the content entered against the Heading (level 1) element. This would repeat until there is a new Heading (level 1) element.

I've tried using the Definition <$elementextonly[Heading]> in my Running H/F/2 system variable, that displays the content of the curernt Heading element, even if it is a lower level heading.

    This topic has been closed for replies.
    Correct answer frameexpert

    I am not sure without testing this, but can you assign Context Labels to the Heading element based on the level? If so, you may be able to add the Context Label to the Variable's definition.

    1 reply

    frameexpert
    Community Expert
    frameexpertCommunity ExpertCorrect answer
    Community Expert
    June 3, 2021

    I am not sure without testing this, but can you assign Context Labels to the Heading element based on the level? If so, you may be able to add the Context Label to the Variable's definition.

    QuintinSeegers
    Legend
    June 3, 2021

    You, Sir, are a Genius!! That worked perfectly.

    Inspiring
    June 4, 2021

    Quintin,

       As you know, @frameexpert  is correct about using context labels in the definition of  running header/footer variables.

       An alternative is to refer to paragraph formats just as you would in an unstructured document. An EDD can assign individual formatting properties or apply existing formats. Your EDD does the latter. You can therefore use paragraph tags in the definition of running header/footer variables and in master page mapping.

        --Lynne