I am using 'glossaries' to make index after my book, I set the numberlist to section, so the number of the section will in the numberlabel. eg:
INDEX
Unix, a multitasking, multi-user computer operating system 1
Unix-like, operating system is one that behaves in a manner similar to a Unix system 2
It means that the word Unix is in the section 1, the word Unix-like is in section 2.
But right now I have some sections whose names are not genarated by default, they are defined manually by the commands as follows:
\section*{2a Linux}
The meanest code is as follows:
\documentclass{book}
\renewcommand\thesection{\arabic{section}}
\usepackage[counter=section]{glossaries}
\makeglossaries
\newglossaryentry{Unix}{
name={Unix},
description={a multitasking, multi-user computer operating system}
}
\newglossaryentry{Unix-like}{
name={Unix-like},
description={operating system is one that behaves in a manner similar to a Unix system}
}
\newglossaryentry{Linux}{
name={Linux},
description={Linux was originally developed as a free operating system}
}
\newglossaryentry{FreeBSD}{
name={FreeBSD},
description={a free Unix-like operating system, an operating system}
}
\newglossaryentry{Windows}{
name={Windows},
description={a series of graphical interface operating systems}
}
\newglossaryentry{Mobile Operating System}{
name={Mobile Operating System},
description={the operating system that operates a smartphone...}
}
\begin{document}
\section{Unix}
Unix \glsadd{Unix} (officially trademarked as UNIX, sometimes also written as Unix) is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT\&T employees at Bell Labs.
\section{Unix-like}
A Unix-like \glsadd{Unix-like}(sometimes referred to as UN*X or *nix) operating system is one that behaves in a manner similar to a Unix system, while not necessarily conforming to or being certified to any version of the Single UNIX Specification.
\section*{2a \quad Linux}
Linux \glsadd{Linux}was originally developed as a free operating system for Intel x86-based personal computers. It has since been ported to more computer hardware platforms than any other operating system.
\section*{2alpha \quad FreeBSD}
FreeBSD \glsadd{FreeBSD} is a free Unix-like operating system descended from AT\&T UNIX via BSD UNIX. Although for legal reasons FreeBSD cannot be called "UNIX".
\section{Windows}
Microsoft Windows \glsadd{Windows}is a series of graphical interface operating systems developed, marketed, and sold by Microsoft.
\section*{3delta \quad Mobile Operating System}
A mobile operating system \glsadd{Mobile Operating System}, also referred to as mobile OS, is the operating system that operates a smartphone, tablet, PDA, or other digital mobile devices.
\printglossary
\end{document}
So, if some entries are in these manually defined sections, the 'glossaries' can not read the number of setions then the numberlists of these entries don't work. Right now it looks like:
INDEX
Unix, a multitasking, multi-user computer operating system 1
Unix-like, operating system is one that behaves in a manner similar to a Unix system 2
Linux,Linux was originally developed as a free operating system 2
FreeBSD, a free Unix-like operating system, an operating system 2
Windows, a series of graphical interface operating systems 3
Mobile Operating System, the operating system that operates a smartphone... 3
Actually, It should like this:
INDEX
Unix, a multitasking, multi-user computer operating system 1
Unix-like, operating system is one that behaves in a manner similar to a Unix system 2
Linux,Linux was originally developed as a free operating system 2a
FreeBSD, a free Unix-like operating system, an operating system 2alpha
Windows, a series of graphical interface operating systems 3
Mobile Operating System, the operating system that operates a smartphone... 3delta
How to resolve these problems? How to make 'glossaries' can read the number of sections which were defined manually correctly?