| 1 |
\documentclass[a4paper]{article} |
| 2 |
\usepackage{times,makeglos} |
| 3 |
\makeglossary |
| 4 |
\title{The makeglos package} |
| 5 |
\author{Thomas Henlich (thenlich at arcor dot de)} |
| 6 |
\begin{document} |
| 7 |
\maketitle |
| 8 |
\tableofcontents |
| 9 |
\renewcommand{\glossaryintro}{Now follows a very short glossary:} |
| 10 |
\printglossary |
| 11 |
\addcontentsline{toc}{section}{\glossaryname} |
| 12 |
|
| 13 |
\section{Introduction} |
| 14 |
|
| 15 |
A glossary is a list of words (concepts, terms) together with their |
| 16 |
explanations. |
| 17 |
\glossary{glossary:A list of words with explanations of these words} |
| 18 |
In a glossary you should explain those terms which are |
| 19 |
necessary for the understanding of your document, but which some of your |
| 20 |
readers might not know. The advantages of using a glossary vs. writing |
| 21 |
definitions in the middle of a sentence are: |
| 22 |
|
| 23 |
\begin{itemize} |
| 24 |
\item improved text flow: the explanations don't clutter up the logical |
| 25 |
structure of the text |
| 26 |
\item reader-friendliness: people who already know the meaning of terms |
| 27 |
(e.\,g. people who come from the same professional background as you) |
| 28 |
don't need to read their definitions. That helps them understand the |
| 29 |
text faster. |
| 30 |
\end{itemize} |
| 31 |
|
| 32 |
Very often a glossary is sorted alphabetically. An example for a glossary in |
| 33 |
a technical or scientific document is a list of mathematical symbols |
| 34 |
together with their meanings. |
| 35 |
|
| 36 |
{\tt makeglos} is a \LaTeX{} package to include a glossary into a document. |
| 37 |
The glossary must be prepared by an external program, like {\tt xindy} or |
| 38 |
{\tt makeindex}. |
| 39 |
\glossary{index processor:a software product to prepare an index for |
| 40 |
inclusion into a \LaTeX{} document} |
| 41 |
\glossary{xindy|is{an index processor, can also be used to process glossaries}} |
| 42 |
\glossary{xindy|see{index processor}} |
| 43 |
\glossary{xindy|seealso{glossary}} |
| 44 |
|
| 45 |
|
| 46 |
\section{Features} |
| 47 |
|
| 48 |
\begin{itemize} |
| 49 |
\item Can be easily configured: various aspects of the appearance of the |
| 50 |
glossary can be changed by a simple \verb+\renewcommand+. |
| 51 |
\item Multi-language capability: certain keywords, like the name of the |
| 52 |
glossary, can be made language-dependent. |
| 53 |
\item Flexible: works equally well for document classes with a book- or |
| 54 |
report-like structure (divided into \verb+\chapters+) and for article-like |
| 55 |
documents, like the one you are reading now (based on \verb+\sections+) |
| 56 |
\item Equivalent: \verb+makeglos+ is to glossaries what \verb+makeidx+ is |
| 57 |
to indices. |
| 58 |
\end{itemize} |
| 59 |
|
| 60 |
|
| 61 |
\section{Commands} |
| 62 |
|
| 63 |
\begin{tabular}{lp{.7\textwidth}} |
| 64 |
\verb+\printglossary+ & Inserts the glossary file ({\tt *.gls}) here. \\ |
| 65 |
\verb+\glossaryname+ & The name of the glossary. Defaults to ``Glossary''.\\ |
| 66 |
\verb+\glossaryintro+ & Something to print before the actual glossary. |
| 67 |
Defaults to empty. \\ |
| 68 |
\verb+\gsee+ & The cross-reference introduction phrase. |
| 69 |
Defaults to \verb+\emph{\seename} #1+. \\ |
| 70 |
\verb+\galso+ & The secondary cross-reference introduction phrase. |
| 71 |
Defaults to \verb+\emph{\alsoname} #1+. \\ |
| 72 |
\verb+\seename+ & The cross-reference introduction phrase. |
| 73 |
Defaults to ``see''. Redefined by \verb+babel+ package.\\ |
| 74 |
\verb+\alsoname+ & The secondary cross-reference introduction phrase. |
| 75 |
Defaults to ``see also''. Redefined by \verb+babel+ package.\\ |
| 76 |
\end{tabular} |
| 77 |
|
| 78 |
|
| 79 |
\section{Notes} |
| 80 |
|
| 81 |
The glossary environment is by default defined to be a chapter (or section) |
| 82 |
which does not appear in the table of contents. If you want the glossary to |
| 83 |
appear there (just like I did when I wrote this), just add \\ |
| 84 |
\verb+\addcontentsline{toc}{section}{\glossaryname}+. |
| 85 |
|
| 86 |
The glossary's environment definition for document classes in which the |
| 87 |
\verb+\chapter+ command is undefined (article-like documents) is |
| 88 |
\begin{verbatim} |
| 89 |
\newenvironment{theglossary}% |
| 90 |
{\section*{\glossaryname}\glossaryintro% |
| 91 |
\begin{description}}% |
| 92 |
{\end{description}}% |
| 93 |
\end{verbatim} |
| 94 |
|
| 95 |
The glossary's environment definition for document classes in which the |
| 96 |
\verb+\chapter+ command is defined (report-/book-like documents) is |
| 97 |
\begin{verbatim} |
| 98 |
\newenvironment{theglossary}% |
| 99 |
{\chapter*{\glossaryname}\glossaryintro% |
| 100 |
\begin{description}}% |
| 101 |
{\end{description}}% |
| 102 |
\end{verbatim} |
| 103 |
|
| 104 |
If you want to change this, \verb+\renewenvironment+ is your friend! |
| 105 |
|
| 106 |
The glossary for this document was prepared with \verb+xindy+, version 2.0d:\\ |
| 107 |
\verb+xindy -o makeglos.gls -f tex2xindy makeglos.xdy makeglos.glo+ |
| 108 |
|
| 109 |
\end{document} |
| 110 |
|
| 111 |
%%% Local Variables: |
| 112 |
%%% mode: latex |
| 113 |
%%% TeX-master: t |
| 114 |
%%% End: |