• No results found

Sample Document Using the glossaries Package

N/A
N/A
Protected

Academic year: 2021

Share "Sample Document Using the glossaries Package"

Copied!
6
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

Sample Document Using the glossaries Package

Nicola Talbot

(2)

1 Introduction 1

2 Plurals and Paragraphs 2

3 Ordering 3

Glossary 4

(3)

Chapter 1

Introduction

Aglossary(definition1, pluralglossaries) is a very useful addition to any tech-nical document, although a glossary (definition 2, plural glossaries) can also simply be a collection of glosses, which is another thing entirely. Some docu-ments have multipleglossaries.

Once you have run your document through LATEX, you will then need to

run the .glo file through makeindex (default) or xindy. You will need to set the output file so that the indexing application creates a .gls file instead of an .ind file, and change the name of the log file so that it doesn’t over-write 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 thePerl

script makeglossaries which provides a convenient wrapper. See Incorporat-ing makeglossaries or makeglossaries-lite or bib2gls into the document buildfor help.

If a comma appears within the name or description, grouping must be used, e.g. in the description ofpage list. Be careful about spurious spacesappearing in your code.

(4)

Plurals and Paragraphs

Plurals are assumed to have the letter “s” appended, but if this is not the case, as inmatrices, then you need to specify the plural when you define the entry. If a term may have multiple plurals (for examplecows/kine) then define the entry with the plural form most likely to be used. The alternative can simply be referenced with \glslink (e.g.kine) or \glsdisp (e.g.kine). Another option is to save the alternative plural in another key. In this case, the “user1” key has been used, but a custom key can be defined instead.

Sealsandsea lionshave regular plural forms.

Bravois a homograph, but the plural forms are spelt differently. The plural ofbravo, a cry of approval (definition1), isbravos, whereas the plural ofbravo, a hired ruffian or killer (definition 2), isbravoes.

Paragraphscan cause a problem in commands, so care is needed when having a paragraph break in aglossaryentry.

(5)

Chapter 3

Ordering

There are two types of ordering: word ordering (which places “sea lion” before “seal”) and letter ordering (which places “seal” before “sea lion”).

(6)

B bravo 2

1) cry of approval (pl. bravos). 2

2) hired ruffian or killer (pl. bravoes). 2

C

cow (pl. cows, archaic kine) an adult female of any bovine animal. 2

G glossary

1) list of technical words. 1,2

2) collection of glosses. 1

M

matrix rectangular array of quantities. 2

P

page list a list of individual pages or page ranges (e.g. 1,2,4,7-9). 1

paragraph distinct section of a piece of writing. Beginning on new, usually indented, line2

Perl A scripting language. 1

S

sea lion large seal. 2,3

seal sea mammal with flippers that eats fish. 2,3

space, spurious unwanted spaces accidentally introduced by uncommented line breaks or attempts to pretty-print the LATEX code. 1

Referenties

GERELATEERDE DOCUMENTEN

For our study, we consider the most relevant fragmentation rate for file carving to be only files that could be fragmented, i.e., files of 2 or more blocks.. We supply

A second option differential let the character ‘d’ behave like an ordinary operator in roman layout. The major advantage is that subscripts, indices and accents can be used with-

Stamps can be re-scaled using widthTo (for re-scaling a stamp to a specified width), heightTo (for re-scaling to height), or scale (for re-scaling using a re-scaling factor, for

In Greece, until recently, it was common practice to write down most log-like func- tions as abbreviations of their Greek names. Consequently, high school students and even

In this example, a new glossary type called notation is defined, so that the document can have a separate glossary of terms and index of

In this example, a new glossary type called notation is defined, so that the document can have a separate glossary of terms, list of acronyms and index of

This demo file—produced by pdftex—for the graphicxbox package for users that are using the graphicx package, and not the graphicxsp package, the lat- ter requiring the distiller..

The package then stores the dates of files and packages loaded after itself including its own