Skip to main content
கற_பன___Imagine_
Inspiring
November 10, 2009
Answered

Formatting the Index entries.

  • November 10, 2009
  • 1 reply
  • 1316 views

Hi All,

Is there any possibility to apply Index entries with formatting like italic, bold etc using javascript in Windows.  InDesign CS3 5.0.4.

Regards,

Imagine.

This topic has been closed for replies.
Correct answer Jongware

So, as in

bacteria

  common 254

  E.coli   255

  others  256

The problem is ID cannot store formatting information in an index entry (just like it doesn't work in variables for running headers and in cross-referenced paragraphs). You will have to think of something like marking the formatting with codes in the entries, then change them after generating the index.

For example, mark italics with .. in the index entry "bacteria: E.Coli". After generating, use a GREP find-and-replace to remove the codes and apply italics.

[Ed.] Important: Add the original entry (without your codes) in the sort-as field! Otherwise, the example above will be sorted as 'symbol' [ (or perhaps it will come under 'i').

1 reply

Inspiring
November 10, 2009

Hi Imagine,

you can apply a character style to a pageReference by it's property pageNumberStyleOverride.

Or do you like to apply formatting to certain topics?

Martin

கற_பன___Imagine_
Inspiring
November 10, 2009

Hi Martin,

Yes, u correct!  I like to apply formatting to certain topics.  For Example,  If the InDesign document Index entries having the formatting like Italic that terms must be appeared in Italic after the generation of Index document.

Any helps.....

Jongware
Community Expert
JongwareCommunity ExpertCorrect answer
Community Expert
November 10, 2009

So, as in

bacteria

  common 254

  E.coli   255

  others  256

The problem is ID cannot store formatting information in an index entry (just like it doesn't work in variables for running headers and in cross-referenced paragraphs). You will have to think of something like marking the formatting with codes in the entries, then change them after generating the index.

For example, mark italics with .. in the index entry "bacteria: E.Coli". After generating, use a GREP find-and-replace to remove the codes and apply italics.

[Ed.] Important: Add the original entry (without your codes) in the sort-as field! Otherwise, the example above will be sorted as 'symbol' [ (or perhaps it will come under 'i').