TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to have extra column in the glossary.

My application is list of symbols with

  1. symbol
  2. description
  3. units


\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}}




This is the call to the \Gls{mwe}


Update: for what it is worth if you are running ubuntu < 12.04, you need to update your packages. (refer to here)

share|improve this question
Please add a minimal working example (MWE) that illustrates your problem. – Joseph Wright Feb 14 '13 at 17:31
I don't know how to implement it! – aiao Feb 14 '13 at 17:32
What I'm after here is some demo of the input syntax you want to use and output you need to get. This might be 'pseudo-code' or a mock-up, for example done by creating a table by hand. – Joseph Wright Feb 14 '13 at 17:33
I'd define a custom glossary style for this – clemens Feb 14 '13 at 18:30
@cgnieder sounds promising. Were to start? – aiao Feb 14 '13 at 23:46
up vote 7 down vote accepted

Glossary entries can have up to six user fields. Let's use user1 for units, so the entries will be constructed as


Then 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 on longtable, we do (mostly copied from the manual):




description={books to read},%

description={books to read that I own},%

% put the glossary in a longtable environment:
% Set the table’s header: title row
 \bfseries Term & \bfseries Description & 
 \bfseries Units & \bfseries Page List
% No table header:
% No heading between groups:
% Main (level 0) entries displayed in a row optionally numbered:
    \glstarget{##1}{##2}% Name
    & ##3% Description
    & \glsentryuseri{##1}% Units
    & ##5% Page list
    \\% end of row
% Similarly for sub-entries (no sub-entry numbers):
    % ignoring first argument (sub-level)
    \glstarget{##2}{##3}% Name
    & ##4% Description
    & \glsentryuseri{##2}% Units
    & ##6% Page list
    \\% end of row
% Nothing between groups:




The glossary will then be a longtable with four columns, where the third, a c column, will contain the content of the user1 field. glossary with units

share|improve this answer
no luck ! Package xkeyval Error: 'user1' undefined in families 'glossentry'. – aiao Feb 17 '13 at 20:52
@aiao Does this happen with my MWE, or with your code? What is the version of your glossaries package? The user field were introduced in version 2.04, maybe you have an older version. – mafp Feb 17 '13 at 23:05
Its a copy paste of your code pdflatex..... Package: glossaries 2009/09/23 v2.03 (NLCT) – aiao Feb 18 '13 at 14:52
@aiao Then I guess your best chance is to update your TeX distribution, 2009 is quite old. You could of course also install a new version of glossaries into TEXMFHOME, but you soon will find other problems with an outdated distribution. – mafp Feb 18 '13 at 16:29
that did it. Thanx – aiao Feb 18 '13 at 18:15

Your Answer


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.