I see a lot of *s have crept into below
So have a look here:
http://wiki.lyx.org/pmwiki.php/LyX/Glossary
where I've re-written it
Rob S
;
I've just done this in this manner: Try this on a new file and see how
you get on.
Add this the preamble
****begin snip****
*\usepackage[noprefix]{nomencl}
\usepackage{ifthen}
\renewcommand{\nomgroup}[1]{%
\ifthenelse{\equal{#1}{A}}{\item[\textbf{Roman Symbols}]}{%
\ifthenelse{\equal{#1}{B}}{\item[\textbf{Greek Symbols}]}{%
\ifthenelse{\equal{#1}{C}}{\item[\textbf{Abbreveations}]}{%
\ifthenelse{\equal{#1}{Z}}{\item[\textbf{Mathematical Symbols}]}{}}}}}
\def\pagedeclaration#1{\dotfill\nobreakspace#1}
\makeglossary
*
***end snip***
The Ifthen package is handy to split up the notation into seperate
lists should you need it. It is optional.
the \def\pagedeclaration etc. produces dots between abbreviation and
page number, again optional.
I now have a seperate notation.lyx file in which I simply place an ERT
box with this in:
*\addcontentsline{toc}{section}{\nomname}
\printglossary*
In my master document I have an ERT with:
*\renewcommand\nomname{Notation} *
(guess that could also go into preamble thinking about it)
I then Include my *notation.lyx* just as all the *rest.lyx* files
(At this stage I would suggest looking at the documentation of the
nomencl package)
In general though each time a new symbol, abbreviation etc occurs then
immediately after (without a space) add an ERT with the following:
*
\nomenclature[ALa**]{L}{Length\refpage}*
where from left to right:
A refers to a Roman character (as defined in the ifthenelse
statement of the preabmble, it would be B for Greek etc)
L is the first letter to sort the notation order
a is simply there to sort the first letter in order (in the
case of more than one L; one may be subscripted etc)
NOTE: the terms in the [...] are purely there for sorting purposes to
give you control over the final output. You can have a fourth term if
needed but I have found three user entered terms suffice for me
(hydraulic engineering)
{L} is the letter, abbrv. etc as it appears in the text
{Length\refpage} is the definition you give it - also tells latex to
reference the page.
Ok; once you have gone through the document and added all the ERT boxes;
Now run File>>Export>>Pdf (PdfLatex) on the master file
This process creates the .glo file.
Dependent on your OS now open a command prompt (e.g. cmd in windows XP)
change directory to the *lyx/tmp/lyx_tmpdir****/lyx_tmpbuf* folder
which now should hold yourfile.pdf and yourfile.glo
at the command prompt enter
*makeindex yourfile.glo -s nomencl.ist -o yourfile.gls*
then
*pdflatex yourfile.tex*
That should do it! Have a look at the pdf ...any good?
BTW:
In Windows I place those last two commands in a .bat file which I
simply copy from desktop into the lyx_tmpbuf* folder and click on.
Rob S