Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have just started using the glossaries package, and as I'm writing my documents in icelandic I run into a certain problem. The glossaries package assumes the words are in two forms, singular or plural, but for icelandic the same word can easily take 10 forms.

I guess there are some people here writing in other languages who may have a good solution for this (I tried to search, but this package gets a little too technical for me, beyond the standard options of the package).

What I'm looking for is preferably a way to put in what form should be presented in the main text, maybe \gls[word presented in text]{glossaryentry} or something similar.

share|improve this question

2 Answers 2

up vote 4 down vote accepted

I think you're looking for the \glsdisp command.

\documentclass{article}

\usepackage{glossaries}
\makeglossary
\newglossaryentry{minex}{name={minimal example},description={bla}}

\begin{document}

How to create a \glsdisp{minex}{special minimal example} \dots

\printglossary

\end{document}
share|improve this answer
1  
You can also use \glslink insted of \glsdisp to make it an hyperlink. –  fabikw Jan 24 '11 at 19:14

While your question is likely long since resolved for your own application, if these forms follow rigid rules of conjugation that are readily identifiable as you type you could also consider using a key to add another form that you could explicitly define.

\documentclass{article}

\usepackage{glossaries}

    \glsaddkey
    {base}          % new key
    {\relax}        % default value if "base" isn't used in \newglossaryentry
    {\glsentrybase} % analogous to \glsentrytext
    {\Glsentrybase} % analogous to \Glsentrytext
    {\glsbase}      % analogous to \glstext
    {\Glsbase}      % analogous to \Glstext
    {\GLSbase}      % analogous to \GLStext


\makeglossary
\newglossaryentry{minex}{name={minimal example},description={bla},base={contextually minimal example}}

\begin{document}

How to create a \glsbase{minex} \dots

Next genairic use of \gls{minex}

\printglossary

\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.