Generalnomencl | Lists of Symbols and Abbreviations

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
rrai
Posts: 1
Joined: Sat Jan 26, 2013 2:48 am

nomencl | Lists of Symbols and Abbreviations

Post by rrai »

Hi,

I would like to create different "List of Symbols" and "List of Abbreviation" in different pages. I could list both symbol and abbreviation under the same heading as following,

Code: Select all

\usepackage{nomencl}
\makenomenclature

\renewcommand{\nomname}{Symbols and Constants}
\printnomenclature

The symbol $\alpha$ \nomenclature{$\alpha$}{Elevation Angle} and constant $a$\nomenclature{a}{Mass Rate} are important in this research. 
Then I compliled with:

Code: Select all

makeindex file.nlo -s nomencl.ist -o file.nls
It works. Now I would like to list the symbols and constants separately in two pages. What need to change in the above code and compilation process?

I appreciate your help.


Regards,
rrai
Last edited by localghost on Sat Jan 26, 2013 11:03 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

nomencl | Lists of Symbols and Abbreviations

Post by cgnieder »

Hi rrai,

welcome to the LaTeX community.

This is not possible with »nomencl« as far as I know. There are other packages like glossaries that can handle multiple lists. It is the by far most comprehensive package of this type that I know of (see glossaries-user.pdf for the comprehensive manual).

Here is an example:

Code: Select all

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage{longtable}

\usepackage{hyperref}
\usepackage[sanitize={symbol=false}]{glossaries}

% symbols:
\newglossary[syg]{symbol}{sys}{syo}{List of Symbols}
\newglossaryentry{m}{
  name        = {mass} ,
  symbol      = {\ensuremath{m}} ,
  description = {inertial mass, is a quantitative measure of an object's
    resistance to \glsname{a}} ,
  type        = symbol
}
\newglossaryentry{a}{
  name        = {acceleration} ,
  symbol      = {\ensuremath{a}} ,
  description = {is the rate at which the \glsname{v} of a body changes with
    time} ,
  type        = symbol
}
\newglossaryentry{v}{
  name        = {velocity} ,
  symbol      = {\ensuremath{v}} ,
  description = {velocity is the rate of change of the position of an object,
    equivalent to a specification of its speed and direction of motion} ,
  type        = symbol
}

% abbreviations:
\newglossary{abbrev}{abs}{abo}{List of Abbreviations}
\newglossaryentry{MS}{
  name        = MS ,
  description = mass spectroscopy ,
  type        = abbrev
}
\newglossaryentry{NMR}{
  name        = NMR ,
  description = nuclear magnetic resonance ,
  type        = abbrev
}
\newglossaryentry{ESR}{
  name        = ESR ,
  description = electron spin resonance ,
  type        = abbrev
}

\makeglossaries

\begin{document}

Some text referring to $\glssymbol{v} = \glssymbol{a} \times t$ and to \gls{MS}
and other sorts of spectroscopy like \gls{NMR} and \gls{ESR}.

\glsaddall

\printglossary[type=abbrev]

% the `index' style displays the symbol, an alternative might be the `tree'
% type; one could also define a custom style
\printglossary[type=symbol,style=index]

\end{document}
glossaries.png
glossaries.png (39.67 KiB) Viewed 23968 times
Regards
site moderator & package author
Post Reply