| 1 |
% This file is embedded in datatool-user.pdf version 3.4.3 2025-12-04 |
| 2 |
% Example 191 Creating an Index |
| 3 |
% Label: "ex:index" |
| 4 |
% arara: pdflatex |
| 5 |
% arara: pdflatex |
| 6 |
% arara: pdfcrop |
| 7 |
\documentclass[12pt]{article} |
| 8 |
\pagestyle{empty} |
| 9 |
\usepackage[locales=en]{datagidx}% requires datatool-english |
| 10 |
\usepackage[colorlinks]{hyperref} |
| 11 |
\newgidx{index}{Index}% define a database for the index |
| 12 |
\DTLgidxSetDefaultDB{index}% set this as the default |
| 13 |
\newterm{macédoine} |
| 14 |
\newterm{macramé} |
| 15 |
\newterm{élite} |
| 16 |
\newterm{reptile} |
| 17 |
\newterm[seealso=reptile]{crocodylian} |
| 18 |
\newterm[parent=crocodylian]{crocodile} |
| 19 |
\newterm[parent=crocodylian]{alligator} |
| 20 |
\newterm[ |
| 21 |
parent=crocodylian, |
| 22 |
description={(also cayman)} |
| 23 |
] |
| 24 |
{caiman} |
| 25 |
\newterm[see=caiman]{cayman} |
| 26 |
\begin{document} |
| 27 |
Here are some words containing accents: \gls{macédoine}, |
| 28 |
\gls{macramé} and \gls{élite}. \Gls{élite} starts with an uppercase |
| 29 |
letter. A \gls{crocodylian} is the family of |
| 30 |
\glspl{reptile} that includes \glspl{crocodile}, \glspl{alligator} |
| 31 |
and \glspl{caiman}. |
| 32 |
|
| 33 |
\printterms |
| 34 |
[ |
| 35 |
heading={\section*}, |
| 36 |
database=index, |
| 37 |
prelocation=dotfill, |
| 38 |
showgroups |
| 39 |
] |
| 40 |
\end{document} |