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

Morten Høgholm morten.hoegholm at gmail.com
Tue Aug 22 17:57:53 EDT 2006


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}
-- 
Morten
------------------------- 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 MacOSX-TeX mailing list