name description.
in the glossary, I would like to use the user key user1 and display:
name user1 (in italic), description
For that purpose, I have defined my own style, but the user key user1 does not appear in the PDF. After investigations, I realize that it does not appear in the GLS and GLO files as well. Where am I wrong? My test code is the following:
Code: Select all
\documentclass{book}
\usepackage{glossaries}[2012/05/21]
\newglossarystyle{mystyle}{%
\glossarystyle{long}
\renewcommand*{\glossaryentryfield}[5]{%
\glstarget{##1}{##2} &%
\textit{\glsentryuseri{##1}}, ##3 \\%
}
}
\makeglossaries %% Créer la liste des acronymes
\begin{document}
\printglossary[style=mystyle]
\newglossaryentry{keyOne}{
name=nameOne,
description={descOne},
user1={userOne}
}
\gls{keyOne}
\newglossaryentry{keyTwo}{
name=nameTwo,
description={descTwo},
user1={userTwo}
}
\gls{keyTwo}
\end{document}