| 1 |
% This file is embedded in datatool-user.pdf version 3.4.3 2025-12-04 |
| 2 |
% Example 192 Creating a List of Abbreviations |
| 3 |
% Label: "ex:abbrev" |
| 4 |
% arara: pdflatex |
| 5 |
% arara: pdflatex |
| 6 |
% arara: pdfcrop |
| 7 |
\documentclass[12pt]{article} |
| 8 |
\pagestyle{empty} |
| 9 |
\usepackage{datagidx} |
| 10 |
\usepackage[colorlinks]{hyperref} |
| 11 |
\newgidx{abbreviations}{Abbreviations}% define a database for the abbreviations |
| 12 |
\DTLgidxSetDefaultDB{abbreviations}% set this as the default |
| 13 |
% define abbreviations: |
| 14 |
\newacro{html}{hyper-text markup language} |
| 15 |
\newacro{css}{cascading style sheet} |
| 16 |
% The following overrides the default description: |
| 17 |
\newacro[description={eXtensible Markup Language}] {xml}{extensible markup language} |
| 18 |
\begin{document} |
| 19 |
First use: \acr{xml} and \acr{css}. |
| 20 |
|
| 21 |
Next use: \acr{xml} and \acr{css}. |
| 22 |
|
| 23 |
Full form: \gls{xml} and \gls{css}. |
| 24 |
|
| 25 |
\printterms [ |
| 26 |
postdesc=dot,% put a full stop after the description |
| 27 |
columns=1,% one column page layout |
| 28 |
namefont={\textbf},% put the name (i.e. the abbreviation) in bold |
| 29 |
namecase=uc,% make the name upper case |
| 30 |
style=align% use the 'align' style |
| 31 |
] |
| 32 |
\end{document} |