diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/glossary/sample.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/glossary/sample.tex | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/glossary/sample.tex b/Master/texmf-dist/doc/latex/glossary/sample.tex new file mode 100644 index 00000000000..9b823a64bfc --- /dev/null +++ b/Master/texmf-dist/doc/latex/glossary/sample.tex @@ -0,0 +1,83 @@ +%% +%% This is file `sample.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% glossary.dtx (with options: `sample.tex,package') +%% Copyright (C) 2005 Nicola Talbot, all rights reserved. +%% If you modify this file, you must change its name first. +%% You are NOT ALLOWED to distribute this file alone. You are NOT +%% ALLOWED to take money for the distribution or use of either this +%% file or a changed version, except for a nominal charge for copying +%% etc. +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +\documentclass[a4paper]{report} + +\usepackage[plainpages=false,colorlinks]{hyperref} +\usepackage{glossary} + +\makeglossary + +\begin{document} + +\title{Sample Document Using glossary Package} +\author{Nicola Talbot} +\pagenumbering{alph}% prevent duplicate page link names if using PDF +\maketitle + +\pagenumbering{roman} +\tableofcontents + +\chapter{Introduction} +\pagenumbering{arabic} + +A \xglossary{name=glossary,description=1) list of technical +words}{glossary} is a very useful addition to any +technical document, although a \xglossary{name=glossary, +description=2) collection of glosses}{glossary} can +also simply be a collection of glosses, which is +another thing entirely. + +Once you have run your document through \LaTeX, you +will then need to run the \texttt{.glo} file through +\texttt{makeindex}. You will need to set the output +file so that it creates a \texttt{.gls} file instead +of an \texttt{.ind} file, and change the name of +the log file so that it doesn't overwrite the index +log file (if you have an index for your document). +Rather than having to remember all the command line +switches, you can call the \xglossary{name=\texttt{Perl}, +sort=Perl,description=A scripting language}{Perl} script +\texttt{makeglos.pl} which provides a convenient +wrapper. + +If you have two terms with different meanings in your +\xglossary{name=glossary,description=1) list of technical +words}{glossary}, +\texttt{makeindex} will of course treat them as two +separate entries, however, some people prefer to +merge them. This can be done using +\texttt{makeglos.pl}, and passing the option +\texttt{-m}. + +\printglossary + +\end{document} +\endinput +%% +%% End of file `sample.tex'. |