Skip to main content
Known Participant
May 16, 2023
Answered

IndexMatic3

  • May 16, 2023
  • 2 replies
  • 634 views

I've recently purchased the script for use in a catalogue I'm producing. It's a very basic index that contains a list of names/companies (all with a common character style assigned). I'm using the 'Single Query' option (/.+/), plus the character style to find the required data. One of the names/company entries contains a digit at the end of the name. While the Single Query is finding the digit, when the Index is created the single digit is being displayed in a bold font - like the page numbers. I can't find a way to isolate the digit contained in the company name so that it displays in a light font to match the rest of the company name?

eg:
Smith4 67, 69
rather than
Smith4 67, 69

any help welcome!

This topic has been closed for replies.
Correct answer Peter Kahrel

You should contact the author of the script, @Marc Autret.

2 replies

Peter Kahrel
Community Expert
Peter KahrelCommunity ExpertCorrect answer
Community Expert
May 17, 2023

You should contact the author of the script, @Marc Autret.

Known Participant
May 18, 2023

Thanks Peter, Marc's prompt response confirmed that the issue was of my own making.
I had applied a semi-bold \d+ GREP style to the generated Index paragraph style. I managed to fix the issue with an untidy 'work around'. I need to spend time to understand the functions of the script properly.

Community Expert
May 17, 2023

Hi @steveg78558378,

I am not sure on how to use the script you have but if you use the following Grep, you will have the name in the 1st capturing group and the ending digit in the 2nd capturing group

(.*?)(\d+)

See the following link for checking the regex

https://regex101.com/r/h1SyNt/1

-Manan

-Manan
Known Participant
May 17, 2023

Hi Manan

Thanks, unfortunately your suggestion only returns the x1 instance that I was having trouble with - and ignores all others. I made a new Find query to select just the digit in that one name, even then it returns with the digit in the bold font assinged to page numbers, rather than as an Index entry - maybe it's something to do with the way that the script displays digits?