I'm starting to make a symbol and subject index with the package multind
. In the symbol index, I would like to group the symbols by thematics, e.g., write set theory notation and have all the symbols below the description, after write operators and have all the notation for the operators, etc.
Does anyone knows how to do this?
I would like to obtain something like the following
Can anyone help me with a minimal working example? Preferably changing the section with page number.
Best Answer
You can use
glossaries
to do this. I assume you either want to sort your symbols according to definition or to usage since symbols are difficult to sort alphabetically (and your sample isn't alphabetically sorted). Withglossaries
you can use the package optionsort=def
to sort in order of definition orsort=use
to sort according to usage. In the example below, I've usedsort=def
(change\setglossarystyle
to\glossarystyle
if you are using a version ofglossaries
prior to version 4.0):In order to build the PDF you need to do:
pdflatex
makeglossaries
pdflatex
The above example produces:
Page 1:
Page 2:
Page 3:
In your example image, you have some lines with multiple entries (for example,
c, c_1, c_2, \ldots, v_n
). There are various ways to deal with these. You could designate the first in the list (e.g,c
) as the main parent entry, and the remainder as sub-entries, and then define a glossary style that puts the sub-entry names after the parent entry name, but this will complicate the location list. However, I think the easiest solution is probably to define an entry with the specified list and then use\glsdisp
or\glslink
whenever you use it.For example:
Then in the document: