Skip to main content
dublove
Legend
May 8, 2025
Question

ID cross-references can't refer to characters in a paragraph?

  • May 8, 2025
  • 2 replies
  • 758 views

Like below, my top line, trying to get the number of women attending.

Even if, for example, you can quote character styles.

 

Also, when I create a hyperlink target as  "Page", why can't I find "Page Target" when I insert it.
How to use page target?

 

2 replies

Joel Cherney
Community Expert
Community Expert
May 8, 2025

Also, when I create a hyperlink target as  "Page", why can't I find "Page Target" when I insert it.
How to use page target?

[...]

I modeled it after this place.

https://helpx.adobe.com/cn/indesign/using/cross-references.html

English version:

https://helpx.adobe.com/indesign/using/cross-references.html

 

Cross-references can only point to paragraphs or text anchors, not pages.

 

Hyperlinks can point to pages or text anchors (among other things).

 

If you're trying to get the 6 from "Of which women: 6 persons" into the green text in your top line, then I think a Text Variable is what you're looking for:

 

 

 

 

 

dublove
dubloveAuthor
Legend
May 8, 2025

Text variables are also a good way to do this.
But it should be possible to reference the page. There are also parts of text, and hyperlinks, that I've seen before.

m1b
Community Expert
Community Expert
May 9, 2025

@dublove are you saying that you have a case where Joel's approach won't work? Please describe it.

dublove
dubloveAuthor
Legend
May 8, 2025

I found and added the character style.
But after storing it and exiting, and coming back in, it's empty again.

dublove
dubloveAuthor
Legend
May 8, 2025
m1b
Community Expert
Community Expert
May 8, 2025

Hi @dublove you can't do what you want—it doesn't work, unfortunately. The <cs name> element just *sets* the character style in the resulting text, it doesn't *match* the character style in the source text, which is what you need. I will have a think about if there is a good way to achieve it. Maybe someone else will have a good answer in the meantime.

- Mark