# List of Symbols and Abbreviations with location [duplicate]

I have a list of symbols and abbreviations. Please see my code below, at the end of this question.

This code works, but I would like to have my symbols/abbreviations with a LOCATION. By this I mean, to take one of the symbols in the text and mention it for the first time with the appropriate page in the document where it was used and so on...

\chapter*{List of Symbols}
\begin{abbrv}
\item[$\textbf{A}$]          a square matrix
\item[$\textbf{z}$]           a vector
\end{abbrv}
\chapter*{List of Abbreviations}

\begin{abbrv}
\item[CPU]                   Central Processing Unit
\item[NYC]                   The New York City
\end{abbrv}


Any help will be appreciated.

• if I understand it correctly, you would like to reproduce the picture you've given? If so, have a look at the glossaries package, it can do everything you need. – riddleculous Mar 6 '16 at 16:10
• @ riddleculous, yes, I would like to produce the list of symbols and abbreviations shown in the picture above. – Sally7874 Mar 6 '16 at 16:20
• The second example in this answer should describe exactly what you want, right? For your symbols use the "normal" glossary, for abbreviations, the acronyms. – riddleculous Mar 6 '16 at 16:24
• @ riddleculous, thanks for your suggestions, but the example that you referenced uses the page numbers as well? Let's say, the abbreviation NYC I mentioned in my text, and now this should take automatically and put in the List of Abbreviations with an appropriate page number where it was used first? – Sally7874 Mar 6 '16 at 16:27
• exactly. Per default, the lists will list all occurences of the respective items, but if you add the package option indexonlyfirst, then only the first occurence is shown. If you have further questions, please try out the package and provied a MWE to clarify what you actually mean. – riddleculous Mar 6 '16 at 16:45