Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using nomencl package to prepare the nomenclature for my thesis. In that, the package sorts the symbols as shown in Figure.

symbol_sorted

But I want the desription of the symbols in Right hand side to be sorted in alphabetical order without using prefix option as shown in Figure.

Desription_sorted

using of prefix option work consumes lot of time and manual effort. Kindly suggest solution.

MWE code:

\documentclass[a4paper]{report}
\usepackage{nomencl}
\makenomenclature
\begin{document}
\nomenclature{$\omega$}{Absolute Frequency}
\nomenclature{HOA}{Acetic acid}
\nomenclature{Al}{Aluminium}
\nomenclature{ASTM}{American Standard Testing Machine}
\printnomenclature
\nocite{*}
\bibliographystyle{thesis}
\bibliography{refpapers}
\end{document}
share|improve this question
    
@egreg Added a MWE code. –  vivek Oct 3 '12 at 18:14
    
@egreg Please note that the desription of the symbols are to be sorted. It was not the case in [tex.stackexchange.com/questions/23508/…. –  vivek Oct 3 '12 at 19:39
2  
Would \newcommand\Nomenclature[2]{\nomenclature[#2]{#1}{#2}} and then using \Nomenclature instead of \nomenclature work for you? –  cgnieder Oct 3 '12 at 22:27
    
@cgnieder thanks. It works fine and as expected. –  vivek Oct 4 '12 at 3:39
    
@cgnieder The question is reopened. Please post your comment as solution. The solution perfectly works. Thanks. –  vivek Oct 18 '12 at 12:49
add comment

1 Answer

up vote 4 down vote accepted

Per request turning my comment into an answer: you could define a command

\newcommand\Nomenclature[2]{\nomenclature[#2]{#1}{#2}}

that automatically inserts the description to the optional sorting argument of \nomenclature and then us it instead of nomenclature:

\documentclass[a4paper]{report}

\usepackage{nomencl}
\makenomenclature

\newcommand\Nomenclature[2]{\nomenclature[#2]{#1}{#2}}

\begin{document}
Text% to produce a non-empty page

\Nomenclature{$\omega$}{Absolute Frequency}
\Nomenclature{HOA}{Acetic acid}
\Nomenclature{Al}{Aluminium}
\Nomenclature{ASTM}{American Standard Testing Machine}

\printnomenclature

\end{document}

enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.