Contents
How to make a glossary appear in a document?
Firstly, in order to make the glossary (or glossaries, if you have more than one) appear, you must use the command in the preamble. This is analogous to the \\makeindex command described in §6.1.1. Creating an Index (makeidx package) . Next you need to define the terms you want to appear in the glossary.
What are the parameters of the printglossary command?
Notice that the command \\printglossary has two comma-separated parameters: title=Special Terms is the title to be displayed on top of the glossary. toctitle=List of terms this is the entry to be displayed in the table of contents. See the next section.
How to create a glossary in LaTeX editor?
To create a glossary the package glossaries has to be imported. in the preamble. The command makeglossaries must be written before the first glossary entry. Each glossary entry is created by the command newglossaryentry which takes two parameters, then each entry can be referenced later in the document by the command gls.
What are the types of entries in a glossary?
Usually there are two types of entries in a glossary: terms and their definitions, or acronyms and their meaning. This two types can be printed separately in your LaTeX document.
Which is the first argument in a glossary?
The first argument is a unique label so that you can refer to this entry in your document text. The entry will only appear in the glossary if you have referenced it in the document using one of the commands listed later. The second argument is a comma-separated list of = options. Common keys are:
How to display the value of the first key in GLS?
The above commands \\gls and \\Gls will display the value of the first or text key, depending on whether or not the entry has already been used. Similarly, \\glspl and \\Glspl will display the value of the firstplural or plural key, depending on whether or not the entry has already been used.
Which is the correct format for text in a glossary?
As with \\index, the format must not include the initial backslash. For example, format=textbf indicates that the location should be displayed in bold. (If you are using the hyperref package, you should use the hyper formats instead, such as hyperbf, see the glossaries documentation [ 16] for further detail.)
Are there any downsides to the glossaries package?
The glossaries package is very flexible, but the downside to that is that it has too many features to cover briefly. I’m therefore only going to introduce the basics here.
Which is the default behaviour of the glossaries package?
The glossaries package also provides the shortcut command: The default behaviour of this command is equivalent to: There are some package options that modify the behaviour of ewacronym. For example, the package option description changes ewacronym so that you need to explicitly set the description in the optional argument.
When do you use a glossary in a docu-ment?
When you use the glossaries package, you need to define glossary entries in the docu- ment preamble. These entries could be a word, phrase, abbreviation or symbol. They’re usually accompanied by a description, which could be a short sentence or an in-depth explanation that spans multiple paragraphs.