Kim Branson wrote:

Hi all,

I wrote my phd thesis [Computational Chemistry} (350+ pages) in Lyx, and I'm now doing some examiners corrections. I need to add a list of abbreviations to my thesis. I have the following preamble and use the report.cls

My thesis is structured as a series of include files, frontpage, chapter 1, chapter 2 etc. The frontpage has a Table of contents, List of Figures, List of Tables. After this i have used the ERT command \clearpage\pagenumbering{arabic} \setcounter{page {1}. This gives my chapter 1 starting with page 1. I'd like to have a list of abbreviations before this. Can anyone tell me how i can define this in my preamble? or another method.

cheers

Kim

Hi Kim;

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










Reply via email to