Note that this uses the deprecated 'glossary' package. At the moment I'm using the 'nomencl' package, which LyX has built-in support for.
First, add to your preamble something like this:
\usepackage[style=list]{glossary} % can be obtained from http://www.ctan.org/tex-archive/macros/latex/contrib/glossary/
\makeglossary
\newacronym{GNU}{GNU's Not Unix}{description={A computer operating system composed entirely of free software.}}
\storeglosentry{linux}{name={Linux}, description={Any Unix-like computer operating system that uses the Linux kernel.}}
And add the following lines where you want the glossary to appear:
\printglossary
\addcontentsline{toc}{chapter}{Glossary} % remove this line if you don't want a table of contents entry for the glossary
Then, where you want to reference glossary entries:
\gls{linux} % displays name field of the linux entry (in this case "Linux")
\useGlosentry{linux}{GNU/Linux} % displays "GNU/Linux"
\GNU % displays "GNU's Not Unix (GNU)" the first time this is used
\GNU % displays "GNU" all subsequent times
% NB: remember to use \GNU\ if want to retain the space after the acronym
To generate the glossary, run:
makeindex 'file.glo' -s 'file.ist' -t 'file.glg' -o 'file.gls' # replace 'file' with the appropriate name for your files
If you use Kile, and want to generate the glossary from the menu, first do the following:
And then to generate the glossary do Build>Compile>MakeGlossary.
Loading...
Loading...
© 2007–2010 David A Roberts. Valid XHTML & CSS. Entries (RSS) & Comments (RSS). Source code.