Skip to main content
Inspiring
June 24, 2024
Answered

Added one word to a cross reference definition and the text turned magenta

  • June 24, 2024
  • 5 replies
  • 635 views

Hello. I have a cross-reference format that works perfectly in FM 17.0.3.546: 
<Cross Reference><$paranum> <$paratext><Default ¶ Font> on page\ <$pagenum><Default ¶ Font>
This yields the following:

Reference - Safety Interlock on page 135

Everything is as expected.

 

Next I created a new cross reference format based on the first format that adds the word "section" between "<Default ¶ Font>" and "on page":

<Cross Reference><$paranum><$paratext><Default ¶ Font> section on page\ <$pagenum><Default ¶ Font>

This yields the following:

Reference - Safety Interlock section on page 135

For the life of me, I cannot understand why the addition of  that one word to an existing definition causes the magenta text. I don't even know what the magenta text is trying to tell me.

 

Anybody out there have any ideas?

 

Thanks,

Bill

This topic has been closed for replies.
Correct answer Barb Binder

Hi Bill:

 

So that makes me think you have a paragraph override in play. Again, I'm happy to look at the file or you can try searching for overrides: 

 

Edit > Find/Change

Find: Paragraph Format Override

Change: Remove Overrides

Click Change to remove the override on the selected paragraph. 

 

See if it matches the problem paragraph. (You can also do this with Character, Table and Object styles, BTW.)

 

~Barb

5 replies

Barb Binder
Community Expert
Barb BinderCommunity ExpertCorrect answer
Community Expert
June 25, 2024

Hi Bill:

 

So that makes me think you have a paragraph override in play. Again, I'm happy to look at the file or you can try searching for overrides: 

 

Edit > Find/Change

Find: Paragraph Format Override

Change: Remove Overrides

Click Change to remove the override on the selected paragraph. 

 

See if it matches the problem paragraph. (You can also do this with Character, Table and Object styles, BTW.)

 

~Barb

~Barb at Rocky Mountain Training
TCBillAuthor
Inspiring
June 25, 2024

Hi Barb,

Well that was it. The find/change routine discovered an override in the troublesome paragraph so I re-formatted the paragraph with the proper style and everything is hunky-dory. Now if I only knew how to determine what the override was... 

 

Bill

Barb Binder
Community Expert
Community Expert
June 25, 2024

Now if I only knew how to determine what the override was... 

Something magenta! 😂

 

~Barb

~Barb at Rocky Mountain Training
TCBillAuthor
Inspiring
June 25, 2024

After applying all the suggestions offered by Bob, Barb, and Winfried (thanks to you all!), the problem still presented itself. As an experiment, I inserted the first cross reference into the subject paragraph and the same thing happened–the page number reference turned magenta. (I had already checked for conditional text markers in the paragraph and there were none.) So then I took the new cross reference and inserted it into a different paragraph and it worked perfectly. This experiment told me that the problem is not with the new cross reference definition itself, since both the first and second cross references broke in the subject paragraph and yet worked in a different paragraph. Methinks there is something goofy about the subject paragraph itself, though I'm danged if I can figure it out.

 

I solved the problem by inserting the new cross reference into a different paragraph (where it worked) and then copy/pasted that cross reference back into the subject paragraph. Voila! The cross referenced page number remained black.

 

Thank you for all of your help.

 

Bill

Community Expert
June 25, 2024

Hi,

Did you really copy the cross-reference format from your "Edit Cross-Reference Format" dialog into your post above?

What I notice:

In your definition you <$paranum>, once with a space after it and in the second instance without space.

However, in your result there isn't any paragraph numbering.

What happens, when you apply the first cross-reference format to your second instance with the magenta colour? Is the page number still in magenta?

Yes, and as Barb said: Check, if any conditional text is applied! If you insert a cross-reference in text with a condition, the cross-reference will adopt the conditional text.

Best regards, Winfried

Barb Binder
Community Expert
Community Expert
June 25, 2024

Hi Bill:

 

I think Bob is on the right track. (I couldn't figure out why it started with <Cross Reference> until I read his answer.)

 

  • So, the Cross Reference character style turns the text blue?
  • Is the paragraph style set to Black?
  • Is magenta used anywere else in the file?
  • Are you using condition tags?
  • Can you share screen shots of the two definitions or skip all my questions and share the file? You can email it to me directly, if you like. 

 

Also, FWIW, <Default ¶ Font> at the end of each definition is unnecessary and can be safely removed. Character styles automatically turned themselves off at the end of the cross reference.

 

~Barb

~Barb at Rocky Mountain Training
TCBillAuthor
Inspiring
June 25, 2024

Hi Barb. In answer to  your questions:

  • So, the Cross Reference character style turns the text blue? YES
  • Is the paragraph style set to Black? YES
  • Is magenta used anywere else in the file? NO
  • Are you using condition tags? NO
Bob_Niland
Community Expert
Community Expert
June 25, 2024

I presume that ‹Cross Reference› is a Character Format.
‹Default ¶ Font› is in there twice, so I'm not sure what the 2nd instance is trying to turn off.
Also, you can use ‹/› as a shorthand way of doing that.
I further see a space in the first instance of ‹$paranum› ‹$paratext›, but not the latter.
Not sure if any of this explains the colors.