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

Is there a way find endnote text markers with GREP?

Community Beginner ,
Jun 03, 2023 Jun 03, 2023

The GREP code ~U will find an endnote reference marker in the text. What I want to do instead is find the beginning and ending endnote text markers in the endnote frame. My goal is to apply conditional text to certain endnotes using Find/Change.

TOPICS
How to
1.3K
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

correct answers 1 Correct answer

Community Expert , Jun 03, 2023 Jun 03, 2023

You can't find the endonote markers with Grep (or Text). But you can find endnotes, which amounts to the same thing -- provided that you used dedicated endnote paragraph styles, as Scott mentioned. You can then find tendnotes and selectively apply a condition. To find those endnotes, use the Grep tab and use ^.+$ to match the endnote texts.

Translate
Community Expert ,
Jun 03, 2023 Jun 03, 2023

If you want to apply GREP styles to endnotes use a dedicated style for your endnotes.

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 Beginner ,
Jun 03, 2023 Jun 03, 2023

Thanks for the reply, Scott.

Is there a way to apply conditional text in a paragraph style or with a character style? Applying conditions to endnote text is my ultimate goal. It may be moot, because after playing around with it some more it looks the endnote text as well as the endnote reference can be hidden but will be lost.

The more basic question is whether there's a way to find beginning and ending endnote text markers with GREP. I'm still curious about the answer.

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 ,
Jun 03, 2023 Jun 03, 2023

You can't find the endonote markers with Grep (or Text). But you can find endnotes, which amounts to the same thing -- provided that you used dedicated endnote paragraph styles, as Scott mentioned. You can then find tendnotes and selectively apply a condition. To find those endnotes, use the Grep tab and use ^.+$ to match the endnote texts.

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 Beginner ,
Jun 03, 2023 Jun 03, 2023

Thanks, Peter. That work-around makes sense.

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 Beginner ,
Jun 04, 2023 Jun 04, 2023
LATEST

I'll reiterate what's in my reply to Scott. No one will probably want to apply a condition to endnote text. Experimenting with it, I found that the endnote text can be hidden but often can't be unhidden -- it gets lost.

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