<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% This file is embedded in datatool-user.pdf version 3.4 2025-04-03
% Example 191 Creating an Index
% Label: "ex:index"
% arara: pdflatex
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\usepackage[locales=en]{datagidx}% requires datatool-english
 \usepackage[colorlinks]{hyperref}
\newgidx{index}{Index}% define a database for the index
\DTLgidxSetDefaultDB{index}% set this as the default
\newterm{macÃ©doine}
\newterm{macramÃ©}
\newterm{Ã©lite}
\newterm{reptile}
\newterm[seealso=reptile]{crocodylian}
\newterm[parent=crocodylian]{crocodile}
\newterm[parent=crocodylian]{alligator}
\newterm[
 parent=crocodylian,
 description={(also cayman)}
]
{caiman}
\newterm[see=caiman]{cayman} 
\begin{document}
Here are some words containing accents: \gls{macÃ©doine},
\gls{macramÃ©} and \gls{Ã©lite}. \Gls{Ã©lite} starts with an uppercase
letter. A \gls{crocodylian} is the family of 
\glspl{reptile} that includes \glspl{crocodile}, \glspl{alligator}
and \glspl{caiman}. 

\printterms
[
 heading={\section*},
 database=index,
 prelocation=dotfill,
 showgroups
] 
\end{document}
</pre></body></html>