Skip to main content
AuroraPenticton
Inspiring
November 14, 2025
Answered

Index changes italics to <i>

  • November 14, 2025
  • 1 reply
  • 119 views

When I generate an Index, anywhere there are italics, the Index puts <i> and </i> around the text. For example:

HMCS <i>Crescent</i>  336

HMCS <i>Crusader</i>  290

HMCS <i>Discovery</i>  3

HMCS <i>Fraser</i>  2

 

Is there a way to make those items in actual italics?

Correct answer Joel Cherney

That thread was clearly one where they were using <i> italics tags intentionally - keying them in themselves - and then removing them afterwards. That's a way to work around a limitation in InDesign's indexing tool. Is that what you are doing? 

 

Upthread from here, FRIdNGE suggested a regex-based solution. If you just need to remove the <tags> and leave italic text behind, his suggestion is really close to what I'd do. Instead of a GREP Style, which (as you note) can't remove the tags, and instead of hiding the tags, which is suggested in that other thread, why not just use a normal GREP query to yank all of the tags all at once?

 

Find: (<i>)(.+?)(</i>)

Change to: $2

Style: your preferred flavor of obliuqe/italic/italic character style/etc

 

 

 

1 reply

FRIdNGE
Inspiring
November 14, 2025

Grep style:

<i>.+?</i>

char style "italics"

 

(^/)  The Jedi

AuroraPenticton
Inspiring
November 14, 2025

Thanks, that does it but the markers remain. The <i> needs to be gone.

AuroraPenticton
Inspiring
November 14, 2025

Is there a way for the index to retain the proper italics without converting them to <i>?