Skip to main content
Rsfl
Inspiring
April 10, 2014
Question

How to adjust R/W rules to display images inline?

  • April 10, 2014
  • 1 reply
  • 868 views

Hi all,

out of the box, when I insert an image in a paragraph (DITA 1.2) then FrameMaker 12 uses the "below line" display setting. I need to display it inline, at the insertion point.

When I adjust the settings of the anchored frame then the inline setting is lost when saving the XML file. So evidently I need to adjust the R/W rules.

I tried to add a corresponding inline rule but had no success so far, does anybody know what needs to be done? It seems like a quite common requirement to display images inline.

Robert

This topic has been closed for replies.

1 reply

Inspiring
April 10, 2014

Robert,

    Do you want all your anchored frames to display at the insertion point or only some of them? If the former, you want a r/w rule such as:

element "x" {

    is fm graphic element;

    fm property position value is "inline";

    }

If you want the ability to position different anchored frames differently, you can use an attribute to specify the position. Be default, FM assumes an attribute named "position" is used for this purpose, but you can change it. For example, if you want to use an attribute named "y", instead, use a read/write rule such as:

element "x" {

    is fm graphic element;

    attribute "y" is fm property position;

    }

By default the possible values of a position attribute are:

below

bottom

inline

runin

sfar

sinside

sleft

snear

soutside

sright

tfar

tinside

tleft

tnear

toutside

tright

top

If the meaning of these values is not clear, consult the Structured Application Developer Reference.

You can also change the attribute values that specify different positions. Instead of simply:

attribute "y" is fm property position;

for instance, you can use the following to specify that the attribute value "below-line" instead of simply "below" indicates that an anchored frame should be positioned below the line containing the anchor:

attribute "y" {

    is fm property position;

    value "below-line" is fm property value "below";

    }

You can add as many value rules as needed to change the names listed above.

--Lynne

Rsfl
RsflAuthor
Inspiring
April 10, 2014

Hi Lynn,

I tried to add a corresponding line in the rules but to no avail.

Here is what I tried:

  attribute "placement" {

    is fm property position;

    value "inline" is fm property value inline;

    value "break" is fm property value bottom;

    }


From what I read that should do the trick but evidently I missed out on something.

Robert