[texhax] glossaries order linked words

Dr Nicola L C Talbot n.talbot at uea.ac.uk
Sat Oct 10 16:03:57 CEST 2009


Adrián López García de Lomana wrote:
> I'm working with the package glossaries
> 
> \usepackage[style=altlist,order=letter]{glossaries}
> 
> and I don't know how to solve a minor problem. Some of the 
 > glossary terms are referenced to an internet site:
> 
> \newglossaryentry{Python}{
>   name=\href{http://www.python.org/}{Python},
>   description={\LDPython},
>   text={Python}}
> 
> and when I create the glossaries, the ordering is not the 
 > one I would like. I would like the term "Python" to be ordered
 > by the letter P, but (I suppose) it takes the first characters of
 > "name", in this case "\", for the ordering and all terms that
 > contain the "\href" on the name are ordered first. Some ideas of
 > how could I solve this?

Use the sort key:

\newglossaryentry{Python}{
    sort=Python,
    name=\href{http://www.python.org/}{Python},
    description={\LDPython},
    text={Python}}

Regards
Nicola Talbot
--
http://theoval.cmp.uea.ac.uk/~nlct/


More information about the texhax mailing list