GalleryA selection of images related to my books or packages or to code I have helped develop. For some great examples of images created using LaTeX, have a look at the TikZ and PGF gallery on texample.net, or for some examples of what can be done with TeX have a look at The TeX showcase. glossaries package. All these examples use dummy lorum ipsum text, one of them uses the sample images files provided by the mwe package, which is available on both MiKTeX and TeX Live, and one of them uses the sample bibliography file xampl.bib, which should be readily available in your TeX distribution. Make sure you have an up-to-date version of the glossaries package if you want to try any of these examples.
There are also some samples of each of the predefined styles on a separate page.
The purpose of this section of the gallery is to illustrate various styles that can be created with the glossaries package. If you want to know how to do something not illustrated here or you want to know how to adapt one of these examples, please post your query to an appropriate site such as TeX on StackExchange or The LaTeX Community Forum.
Click on the images below for details of the example.
Images in Glossary
Citations in Glossary
URLs in Glossary
Abbreviations (No Descriptions)
Abbreviations (With Descriptions)glossaries-extra version of this example below.
Mixed Glossary with Emphasis
Units (glossaries.sty)This example is a modification of the Units (glossaries-extra) example, listed below. The symbolic representation is in the
namefield and the symbol name is now in the
firstfield is used to alter the first use representation.
glossaries-extra package is an extension to the glossaries package. It provides better abbreviation handling and extra features.
InitialismsThe dots in the abbreviations in this example are automatically inserted through the use of category attributes. The sentence terminator following commands like
\glscan be automatically discarded for those entries.
earlier glossaries.sty example this example uses the more convenient glossaries-extra settings.
Mixing StylesThis rather colourful example isn't encouraging garish documents, but is illustrating how you can apply different styles to entries according to their category and category attributes. With just the basic glossaries.sty package, different styles may only be applied per glossary type, whereas in this example all entries are in the same glossary.
Adjusting Parenthetical StyleThis example adjusts the user parenthetical style so that only the long form is displayed on first use and the short form on subsequent use. Both the long and short form are emphasized.
Abbreviations with Footnotes SampleThis example compares the footnote and postfootnote styles (using the small-caps variant).
Adjusting the alttree StyleThe alttree style is redefined by the glossaries-extra-stylemods package to make it more flexible. This example uses the commands provided by this package to adjust the style. The location list and associated image are placed in the right margin and the entry name is on the left.
Abbreviation StylesThis example demonstrates the predefined abbreviation styles.
AliasesThis example demonstrates the use of the alias key.
Units (glossaries-extra.sty)This example demonstrates the use of the category key in combination with the post-link hook to append the entry's symbol in the text on first use. This is an alternative to using the abbreviation mechanism.
Standalone EntriesInstead of displaying a sorted list, this example uses standalone entries. Since no sorting or indexing is required, the build process is quite simple.
This example provides an environment that displays a mini list of terms at the end of it. This is in addition to the main glossary at the end of the document.makeindex or xindy or using TeX. (See the glossaries performance page for a comparison.)
The glossaries-extra package additionally provides a way of simply listing all defined entries in the order of definition without the need for an external tool, but it also provides another sorting and collation method and that's with bib2gls. Some of the examples below can be found in bib2gls's examples directory and are described in more detail in the ‘Examples’ chapter of the bib2gls user manual.
Logical Glossary Divisions (type vs group vs parent)There's a new section added to the bib2gls manual (version 1.9) regarding this topic. This example is an abridged version of that section. If you have a document with many terms that need listing, it's likely that you may want to divide the terms into separate blocks for easier reading, but should you use type, group or parent?
Constants (bib2gls)In this example, all defined entries are selected (without being referenced in the document) and listed in numerical order, where the numeric value is the approximate value of the given constant.
Icons (bib2gls)In this example, all defined entries are selected (without being referenced in the document) and sorted according to the description field since the name is a symbol with no intuitive order.
This example is an alternative to the earlier mini-glossary
\makeglossaries. It provides an environment that displays a mini list of terms at
the end of it. This is in addition to the main glossary
at the end of the document.
glossaries package can take a long time to run, but different options can improve the build time, depending on your requirements.
arara is being upgraded to version 4.0 and with it comes some new localisation! Here are some screenshots. (That's Broad Norfolk, in case you're confused.)