code for abbreviation list

2,374 views
Skip to first unread message

Anglea

unread,
Feb 7, 2011, 12:00:08 PM2/7/11
to LaTeX Users Group
\documentclass[a4paper,12pt,oneside]{report}
\usepackage[round]{natbib}
\usepackage{booktabs}
\usepackage{nomencl}
\renewcommand{\nomname}{List of Abbreviations}
\makenomenclature

\begin{document}

\nomenclature{A/E}{Attaching and Effacing}%
\nomenclature{CCP}{complement control protein}
\nomenclature{Dr}{Cromer-Related Blood Group Antigen}
\nomenclature{\textit{E. coli}}{\textit{Escherichia coli}}
\nomenclature{IPTG}{Isopropyl-$\beta$-D-thiogalactoside}

\printnomenclature[3cm]

\end{document}
I compiled these lines by Latex twice, then I runned the command

makeindex file.nlo -s nomencl.ist -o file.nls
But, it gave me this warning message::
[LaTeX] finished with exit status 1
./nom.tex:17:Undefined control sequence. \makenomenclature
./nom.tex:27:Undefined control sequence. \printnomenclature
any help
Message has been deleted

Peter Flynn

unread,
Feb 7, 2011, 6:09:40 PM2/7/11
to latexus...@googlegroups.com

What version of nomencl are you using? It should say in the log file.

From the current documentation (4.2):

1.1    Important Notes for Users of Previous Versions
The latest update to the nomencl package has included some major changes to some of the more important commands. In particular, the \makeglossary and \printglossary commands have now been renamed
to \makenomenclature and \printnomenclature respectively. The reason for this change is to increase the package’s compatibility with other MakeIndex using packages. With this increased compatibility, users will be
able to have nomenclatures, glossaries and indexes all in one document.

It sounds as if you might have an older version.

///Peter

Anglea

unread,
Feb 8, 2011, 7:21:23 AM2/8/11
to LaTeX Users Group
Thanks Peter,

I have got the new version nomencl.sty 4.2 that uses
\nomenclatureentry
\documentclass[a4paper,12pt,oneside]{report}
\usepackage{nomencl}
\makenomenclature
\renewcommand{\nomname}{List of Abbreviations}

\begin{document}

\nomenclature{$a$}{The number of angels per unit area}%
\nomenclature{$N$}{The number of angels per needle point}%
\printnomenclature
\end{document}
so I need to compile these lines twice, then run the command
makeindex nom.nlo -s nomencl.ist -o nom.nls
then Latex again.
The problem is that, after I run Latex twice, it creates an empty file
nom.nlo
and after I run the command, it syas
$ makeindex nom.nlo -s nomencl.ist -o nom.nls
This is makeindex, version 2.14 [02-Oct-2002] (kpathsea + Thai
support).
Scanning style file /usr/share/texmf/makeindex/
nomencl.ist..........done (10 attributes redefined, 3 ignored).
Scanning input file nom.nlo...done (0 entries accepted, 0 rejected).
Nothing written in nom.nls.
Transcript written in nom.ilg.

and no outputs appear so far, I feen I am very close ......

On Feb 7, 11:09 pm, Peter Flynn <anglebrac...@gmail.com> wrote:
> On Mon, Feb 7, 2011 at 5:00 PM, Anglea <hanyahamdi...@yahoo.com> wrote:
> > \documentclass[a4paper,12pt,oneside]{report}
> > \usepackage[round]{natbib}
> > \usepackage{booktabs}
> > \usepackage{nomencl}
> > \renewcommand{\nomname}{List of Abbreviations}
> > \makenomenclature
>
> > \begin{document}
>
> > \nomenclature{A/E}{Attaching and Effacing}%
> > \nomenclature{CCP}{complement control protein}
> > \nomenclature{Dr}{Cromer-Related Blood Group Antigen}
> > \nomenclature{\textit{E. coli}}{\textit{Escherichia coli}}
> > \nomenclature{IPTG}{Isopropyl-$\beta$-D-thiogalactoside}
>
> > \printnomenclature[3cm]
>
> > \end{document}
> > I compiled  these lines by Latex twice, then I runned the command
>
> > makeindex file.nlo -s nomencl.ist -o file.nls
> > But, it gave me this warning message::
> > [LaTeX] finished with exit status 1
> > ./nom.tex:17:Undefined control sequence. \makenomenclature
> > ./nom.tex:27:Undefined control sequence. \printnomenclature
> > any help
>
> What version of nomencl are you using? It should say in the log file.
>
> From the current documentation (4.2):
>
> *1.1    Important Notes for Users of Previous Versions*
> The latest update to the nomencl package has included some major changes to
> some of the more important commands. In particular, the \makeglossary and
> \printglossary commands have now been renamed
> to \makenomenclature and \printnomenclature respectively. The reason for
> this change is to increase the package’s compatibility with other *MakeIndex
> * using packages. With this increased compatibility, users will be

Peter Flynn

unread,
Feb 8, 2011, 7:39:20 AM2/8/11
to latexus...@googlegroups.com
On Tue, Feb 8, 2011 at 12:21 PM, Anglea <hanyah...@yahoo.com> wrote:
Thanks Peter,

I have got the new version nomencl.sty 4.2 that uses
\nomenclatureentry
\documentclass[a4paper,12pt,oneside]{report}
\usepackage{nomencl}
 \makenomenclature
\renewcommand{\nomname}{List of Abbreviations}

\begin{document}

\nomenclature{$a$}{The number of angels per unit area}%
\nomenclature{$N$}{The number of angels per needle point}%
\printnomenclature
\end{document}
so I need to compile these lines twice,

Only once is necessary.
 
then run the command
makeindex nom.nlo  -s nomencl.ist -o nom.nls
then Latex again.

Correct.
 
The problem is that, after I run Latex twice, it creates an empty file
nom.nlo

That's because the document itself is empty. Add some text in the line after \begin{document}.
This may be a bug and you may wish to ask the authors of the package.
 
///Peter

Reply all
Reply to author
Forward
0 new messages