LaTeX forum ⇒ Generalnomencl | Lists of Symbols and Abbreviations

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

nomencl | Lists of Symbols and Abbreviations

Postby rrai » Sat Jan 26, 2013 3:01 am

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,
  1. \usepackage{nomencl}
  2. \makenomenclature
  3.  
  4. \renewcommand{\nomname}{Symbols and Constants}
  5. \printnomenclature
  6.  
  7. The symbol $\alpha$ \nomenclature{$\alpha$}{Elevation Angle} and constant $a$\nomenclature{a}{Mass Rate} are important in this research.

Then I compliled with:
  1. 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.
Reason: Source code has to be tagged as such to keep a post clear and legible (see Board Rules).

Tags:

User avatar
cgnieder
Site Moderator
Posts: 1974
Joined: Sat Apr 16, 2011 7:27 pm
Location: Germany
Contact:

Postby cgnieder » Sat Jan 26, 2013 4:02 pm

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:

  1. \documentclass{article}
  2. \usepackage[T1]{fontenc}
  3. \usepackage[utf8]{inputenc}
  4.  
  5. \usepackage{longtable}
  6.  
  7. \usepackage{hyperref}
  8. \usepackage[sanitize={symbol=false}]{glossaries}
  9.  
  10. % symbols:
  11. \newglossary[syg]{symbol}{sys}{syo}{List of Symbols}
  12. \newglossaryentry{m}{
  13. name = {mass} ,
  14. symbol = {\ensuremath{m}} ,
  15. description = {inertial mass, is a quantitative measure of an object's
  16. resistance to \glsname{a}} ,
  17. type = symbol
  18. }
  19. \newglossaryentry{a}{
  20. name = {acceleration} ,
  21. symbol = {\ensuremath{a}} ,
  22. description = {is the rate at which the \glsname{v} of a body changes with
  23. time} ,
  24. type = symbol
  25. }
  26. \newglossaryentry{v}{
  27. name = {velocity} ,
  28. symbol = {\ensuremath{v}} ,
  29. description = {velocity is the rate of change of the position of an object,
  30. equivalent to a specification of its speed and direction of motion} ,
  31. type = symbol
  32. }
  33.  
  34. % abbreviations:
  35. \newglossary{abbrev}{abs}{abo}{List of Abbreviations}
  36. \newglossaryentry{MS}{
  37. name = MS ,
  38. description = mass spectroscopy ,
  39. type = abbrev
  40. }
  41. \newglossaryentry{NMR}{
  42. name = NMR ,
  43. description = nuclear magnetic resonance ,
  44. type = abbrev
  45. }
  46. \newglossaryentry{ESR}{
  47. name = ESR ,
  48. description = electron spin resonance ,
  49. type = abbrev
  50. }
  51.  
  52. \makeglossaries
  53.  
  54. \begin{document}
  55.  
  56. Some text referring to $\glssymbol{v} = \glssymbol{a} \times t$ and to \gls{MS}
  57. and other sorts of spectroscopy like \gls{NMR} and \gls{ESR}.
  58.  
  59. \glsaddall
  60.  
  61. \printglossary[type=abbrev]
  62.  
  63. % the `index' style displays the symbol, an alternative might be the `tree'
  64. % type; one could also define a custom style
  65. \printglossary[type=symbol,style=index]
  66.  
  67. \end{document}


glossaries.png
glossaries.png (39.67 KiB) Viewed 15991 times


Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim


Return to “General”

Who is online

Users browsing this forum: No registered users and 15 guests