Debian Codegraph @

texmf-dist/doc/latex/datatool/datatool-user-examples/datatool-user-example059.tex

raw
1 % This file is embedded in datatool-user.pdf version 3.4.3 2025-12-04
2 % Example 59 Sorting Lists with \dtlsortlist and UTF-8
3 % Label: "ex:sortlistutf8"
4 % arara: pdflatex
5 % arara: pdfcrop
6 \documentclass[12pt]{article}
7 \pagestyle{empty}
8 \usepackage[utf8]{inputenc}
9 \usepackage{datatool-base}
10 \newcommand{\mylist}{elk, Æthelstan, Arnulf, elf,résumé,
11 Óslác, élan, Aeolus, resume, elephant, zygote, élite, Valkyrie,
12 Zulu, elbow, Adelolf, rose}
13 \begin{document}
14 \dtlsortlist{\mylist}{\dtlcompare}
15 Case-sensitive: \DTLformatlist{\mylist}.
16
17 \dtlsortlist{\mylist}{\dtlicompare}
18 Case-insensitive: \DTLformatlist{\mylist}.
19 \end{document}