I need to have extra column in the glossary.
My application is list of symbols with
- symbol
- description
- units
\documentclass{article}
\usepackage{glossaries}
\makeglossaries
\newglossaryentry{mwe}{name=MWE, description={Minimum Working Example}}
% the previous line should have some extra field, or i could define my own command.
% Something that would envolve description={ {some text} && {some unit}}
\begin{document}
\printglossaries
\clearpage
This is the call to the \Gls{mwe}
\end{document}
Update: for what it is worth if you are running ubuntu < 12.04
, you need to update your packages. (refer to here)
Best Answer
Glossary entries can have up to six user fields. Let's use
user1
for units, so the entries will be constructed asThen we need a new style that will make use of the new field. How to define a new style is described in the manual, the important thing to know is that the user fields can be accessed via
\glsentryuseri{##1}
. To do a style based onlongtable
, we do (mostly copied from the manual):The glossary will then be a
longtable
with four columns, where the third, ac
column, will contain the content of theuser1
field.