[XeTeX] makeindex and active characters

William Adams will.adams at frycomm.com
Wed Sep 27 16:18:03 CEST 2006


On Sep 27, 2006, at 7:38 AM, William Adams wrote:

> On Sep 27, 2006, at 7:14 AM, William Adams wrote:
>
>> On Sep 26, 2006, at 5:17 PM, musa furber wrote:
>>
>>> Is there any way to suppress the expansion of the active characters
>>> just when index entries are written?
>>
>> No.
>
> After thinking on that a bit more, I think one could do this by a
> judicious redefinition of various commands at the proper time --- say
> redefining the character in the index command before using it to get
> the literal string into the .idx, then, having the more normal
> definition available when the index is processed.

After thinking even more (and finishing my morning cuppa and getting  
my caffeine level on its way back up to normal), why not just change  
the catcode of the active characters back to letters at the beginning  
of the index macro, then change them back to active when you're done?

I _think_ that should be the best and most sensible thing to do and  
ought not have any drawbacks, and should make for a much nicer and  
far more readable .idx file if you need to do any sort of post- 
processing on it beyond the norm.

William

-- 
William Adams
senior graphic designer
Fry Communications



This email message and any files transmitted with it contain information
which is confidential and intended only for the addressee(s). If you are
not the intended recipient(s), any usage,  dissemination, disclosure, or
action taken in  reliance on it is prohibited.  The reliability of  this
method of communication cannot be guaranteed.  Email can be intercepted,
corrupted, delayed, incompletely transmitted, virus-laden,  or otherwise
affected during transmission. Reasonable steps have been taken to reduce
the risk of viruses, but we cannot accept liability for damage sustained
as a result of this message. If you have received this message in error,
please immediately delete it and all copies of it and notify the sender.


More information about the XeTeX mailing list