[OS X TeX] Entering specially formatted items in the index

Alain Schremmer Schremmer.Alain at gmail.com
Wed Aug 23 00:31:03 CEST 2006


Morten Høgholm wrote:

> On Tue, 22 Aug 2006 23:49:36 +0200, Alain Schremmer  
> <Schremmer.Alain at gmail.com> wrote:
>
>> Another one of my bizarre requests:
>>
>> I want to enter the metric prefixes in the index but I am using a  
>> special format for them that \index does not recognize as such:
>>
>>     (1) \denom is defined in the preamble as follows
>>
>>         \DeclareMathAlphabet{\denom}{OT1}{cmss}{sbc}{n}
>>
>>     (2) Then, for instance, DEKA is formatted as follows
>>
>>         $\denom{D\mathsmaller{EKA}}
>>
>>     (3) but the following does not work
>>
>>         \index{$\denom{D\mathsmaller{EKA}}$}
>
>
> Assuming the definition
>   \newcommand*\DEKA{\ensuremath{\denom{D\mathsmaller{EKA}}}}
> you should be able to get by with just
>   \index{DEKA@\DEKA}

Would there be a way other than entering one definition for each metric 
prefix?

Hopeful regards
--schremmer
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list