Monday, March 22, 2010

Indexing

When I am indexing I would like my page reference to be Sect1:1-6. It is showing as Sect1:1-Sect1:6



What am I doing wrong!



Yvonne
Indexing
Probably nothing. You can use Find/Change with a GREP search to find instances of (-)Sect\d+:(\d) and change to $1$2. This may not be the best syntax (I'm still pretty new at GREP, and it will only work properly if the section numbers are the same since it is looking for ''Sect'' followed by any number of digits and doesn't discriminate whether or not they match.



Peter
Indexing
Well, the forum software substituted a frowny face for my colon followed by an open parenthesis. The search sting should be everything from the first open parenthesis to the last close.



Peter

Thanks Peter for your prompt reply.



I have never used GREP before.



I have used (Sect\d+:). It has changed all my index to the way I want it. ie. Sect1:1-6

Many thanks

Yvonne

GREP is pretty amazing once you learn to use it. And you don't need to know a lot of code, either. Most of the special characters are in the flyouts.



Peter

If the smileys here in the forum annoy you or interfere with communication, you can turn them off in your forum preferences.



Dave

I generally like them, and would turning them off in my preferences make any difference to what others see?

No, like page viewing in Acrobat, it's a viewer choice. Indeed, switching them off yourself means you don't know when you're inadvertently typing them.



But for those of us who post scripts here, it's pretty important to not have them.



Dave

No comments:

Post a Comment