Skip to main content
Participating Frequently
May 18, 2018
Question

How can I color Xrefs in FM 2017?

  • May 18, 2018
  • 2 replies
  • 510 views

Having just finished editing an HTML version of a recent FM book (using VIM,) I was pleased with the blue color of all the cross references. This lead me to wonder how I might color all the cross references in my FM files so they appear distinctly blue.

Perhaps this is an ignorant question, and cross ref coloring is simply a matter of identifying the paragraph tags used throughout the text and changing the font color. I guess I'm wondering if I can safe some work and do this in book mode.

Thanks in advance.

~Don Spencer

    This topic has been closed for replies.

    2 replies

    Be.eM
    Inspiring
    May 19, 2018

    Don,

    that's easy, just two steps to be done:

    1. Define a new character format (e.g. "xref") that has just the desired character appearance, e.g "blue text color" and "underlined".
    2. Define your cross reference format to use this new character format. The definition would then be e.g. "<xref><$paratext><Default Para Font>. This definition uses the character format for the referenced text and switches back to the default character format (from the paragraph format) after the referenced text, see attached screenshot.

    Bernd

    Edit: too slow… ;-)

    Barb Binder
    Community Expert
    Community Expert
    May 19, 2018

    Hi Don:

    It's both quick and easy to add color to your X-refs in FrameMaker:

    1. Create a new character tag with the specifications for the x-ref format
    2. Double click one of the x-refs in the the document to open the Cross-Reference Pod
    3. Click on Edit Format
    4. Click at the very beginning of the Definition line (look for the blinking insertion point)
    5. Scroll to the very bottom of the Building Blocks list—there you will find a list of character tags in the file
    6. Click to add the character tag to beginning of the Definition line.
    7. Click Change, Done, Update, Replace

    If you like how this looks, go to the book window and select all of the other files. Use File > Import > Formats to import Character Formats, Color Definitions and Cross-Reference Formats to the selected files in the book.

    ~Barb

    ~Barb at Rocky Mountain Training