I have a custom glossary and I am defining the user1 key in the glossary entry field but it doesn't show up in the glossary list.
I want the unit column (useri) to come in between name and description.
\documentclass[11pt, a4paper]{article}
\usepackage{tabu}
% \usepackage{kima}% package style defined in a separate .sty file
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{float}
\usepackage[utf8]{inputenc}
\usepackage[toc, nonumberlist, acronym, section, nopostdot]{glossaries}
\makeglossaries
\begin{document}
\newglossarystyle{mystyle}{%
% put the glossary in a longtable environment:
\renewenvironment{theglossary}%
{\begin{longtable}{@{}p{0.12\textwidth}@{} p{0.08\textwidth}@{}p{0.6\textwidth}}}%
{\end{longtable}}
% Set the table’s header:
\renewcommand*{\glossaryheader}{%
%\bfseries Term & \bfseries Description & \bfseries Units &
%\bfseries Symbol & \bfseries Dimensions & \bfseries Page List
%\\\endhead
}%
% No heading between groups:
\renewcommand*{\glsgroupheading}[1]{}%
% Main (level 0) entries displayed in a row optionally numbered:
\renewcommand*{\glossentry}[2]{%
\glsentryitem{##1}% Entry number if required
\glstarget{##1}{\glossentryname{##1}}% Name
& \glsentryuseri{##1}% Units
& \glossentrydesc{##1}% Description
%& \glossentrysymbol{##1}% Symbol
%& \glsentryuserii{##1}% Dimensions
%& ##2% Page list
\tabularnewline % end of row
}%
}%
\glsaddallunused
\printglossary[title=List of Symbols, toctitle=List of Symbols,style =mystyle]
\newglossaryentry{length}{name=$l$, description={Diffusion length}, user1={m} , sort=length}
\gls{length}
\end{document}
\newglossaryentry
into the preamble. (See Drawbacks With Defining Entries in the Document Environment.)\newglossaryentry
to the preamble fix the problem?