Skip to main content
Known Participant
October 4, 2024
Answered

How to create indexes with truncated page numbering

  • October 4, 2024
  • 1 reply
  • 149 views

Currently all my indexes display the full page numbers when there are more than 1 page associated with the indexed word/phrase. For example,

 

Apples, 45, 60-63

Berries, 102-105, 145-147

Cherries, 288-289, 299-312

 

Is there a way to get Framemaker to abbreviate the page ranges so that the indexes look more like this?:

 

Apples, 45, 60-3

Berries, 102-5, 145-7

Cherries, 288-9, 299-312

 

Currently the paragraph style used for all of these lines is Level1AIX which is defined in the Reference pages thusly:

 

Level1AIX
openXmlElementId <$relfilename>:<$UniqueXmlElementId> <$RelativeXmlElementId>
openObjectId <$relfilename>:<$ObjectType> <$ObjectId>
<$pagenum>

    This topic has been closed for replies.
    Correct answer frameexpert

    There is no way to do this with stock FrameMaker. I remember doing something like this years ago with FrameScript. It was fully automated so that the script would truncate the page numbers whenever the index was generated.

     

    If you want to explore an ExtendScript solution, please contact me offlist. rick at frameexpert dot com

    1 reply

    frameexpert
    Community Expert
    frameexpertCommunity ExpertCorrect answer
    Community Expert
    October 4, 2024

    There is no way to do this with stock FrameMaker. I remember doing something like this years ago with FrameScript. It was fully automated so that the script would truncate the page numbers whenever the index was generated.

     

    If you want to explore an ExtendScript solution, please contact me offlist. rick at frameexpert dot com