Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

way to remove numbering PREFIX in cross-refs?

Enthusiast ,
Jan 09, 2023 Jan 09, 2023

Hi. Using ID 18.1 under Win11.

I'm looking for a way to make a set of cross references that look like this:

See Figure 3, 4, and 5. (rather than saying see Figure 3, Figure 4, and Figure 5, as a normal set of cross-references would require) I do want them to be Xrefs so that they will renumber as necessary. The word "Figure" is part of the numbering definition of the paragraph, as shown here:

adobe-figure-number-def.png

I know that when doing a cross reference, I can add a delimiter to the end. For example I can create an Xref <paraNum delim=":" /> to stop the cross-ref at the first colon. But I do not know a way to delimit the PREFIX word that comes before the figure number.  Here is the cross-reference stock definition. (Just a copy of Paragraph Number.)

adobe-xref-without-prefix.png

I don't want to create a new paragraph style that only includes a number for this one use, because the Figure paragraph style is used throughout the book.

There may no way to put a delimiter at the front of the Xref definition so that I wind up with just the number itself... but I thought I'd ask.

Thanks always to the community for its support.

-j

 

TOPICS
How to
616
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 12, 2023 Jan 12, 2023

Hmmm. I might misunderstand, but one hyperlink can only destinate at one anchor. If you said see Figures 3, 4, and 5, which one would you hyperlink cross-reference to?

Mike Witherell
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jan 13, 2023 Jan 13, 2023

I found this topic interesting and a challenge and now am pretty surprised that it wouldn't work, no matter what you try. If there would be the option to add a prefix to the numbering settings of a style, then it could be addressed in the cross-ref style, but to no avail. As long as "Figure" is part of the number setup you cannot strip, not even by nested styles or all that stuff, because nested styles are for characters.

 

I even thought of captions and their separate options where you actually can add a prefix, but not an automatic numbering. So you gotta use the paragraph style for the caption numbering again and if you would move "Figure" into the prefix of the caption, then the number would be before the caption prefix. Doh!  

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jan 13, 2023 Jan 13, 2023

… Of course:

1 cross-ref. per Figure using the same cross-ref definition and I've used the same auto-num defined by the op.

 

What is totally funny [I don't say magic!] is how ID can decide to have "Figure" or "Figures" basing on contiguous cross-ref. calculation!  😉

 

Capture d’écran 2023-01-13 à 13.40.29.png

(^/)  The Jedi

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jan 16, 2023 Jan 16, 2023

Now only the question remains, how the Jedi did it...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jan 17, 2023 Jan 17, 2023
LATEST

Sure! …

 

Cross-Ref.:

 

Capture d’écran 2023-01-17 à 17.45.24.png

 

3 Grep Styles on "CurentText" para style:

 

Capture d’écran 2023-01-17 à 17.48.50.png

 

The third Grep Style, not totally readable:

 

Figure\Ks(?!Figure \d+(, (and )?FiguresFigure \d+))

 

Best,

(^/)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines