[xep-support] Formatting of Index entries

Jost Klopfstein jost at axostech.com
Wed Aug 10 17:00:33 PDT 2005


Hi,

I am producing an index with the rx extensions and I run into the following
problem:

The desired layout is as follows:
CLUTCH.............13, 25-29, 33, 46

(justified) for entries which fit on one line

ENGINE ....1, 3, 5, 7, 9, 11, 13, 15
                                       24, 26, 34
for entries which span more than 1 line.

I used fo:block with text-align="justify" text-align-last="justify" which
works fine for one line entries.

<fo:block text-align="justify" text-align-last="justify">
   ENGINE<fo:leader leader-pattern="dots"/>
   <rx:page-index list-separator=", " merge-subsequent-page-numbers="true"
range-separator=" to ">
      <rx:index-item ref-key="ENGINE"/>
   </rx:page-index>
</fo:block>

However entires which span more than one line are displayed as follows:
ENGINE ....1, 3, 5, 7, 9, 11, 13, 15
2   4   ,                2    6   ,         3  4

If have tried to solve the problem with text-align="right"
text-align-last="right" and use fo:initial-property-set to control the
alignment of the first line of the paragraph. However you can not set an
attribute for the text alignment in the fo:initial-property-set to overrule
the setting of its parent fo:block element.

Is there a different approach to achieve the desired layout with fo?

Thanks,
Jost



---------------------------
Jost Klopfstein
Axos Technologies Inc.
OnDemand & Transactional Document Solutions, powered by XML
IT Consulting

604 628-2248  Phone
604-324-2380  Fax
jost (at) xostech.com
http://www.axostech.com

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html



More information about the Xep-support mailing list