Debian Codegraph @

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

raw
1 % This file is embedded in datatool-user.pdf version 3.4.3 2025-12-04
2 % Example 55 Sorting Lists with \dtlsortlist (Case vs No Case)
3 % Label: "ex:sortlistcharcase"
4 % arara: pdflatex
5 % arara: pdfcrop
6 \documentclass[12pt]{article}
7 \pagestyle{empty}
8 \usepackage{datatool-base}
9 \newcommand{\mylist}{sea, sea lion, Sealyham, seal, sealant, sealing wax}
10
11 \begin{document}
12 \dtlsortlist{\mylist}{\dtlcompare}
13 Case-sensitive: \DTLformatlist{\mylist}.
14
15 \dtlsortlist{\mylist}{\dtlicompare}
16 Case-insensitive: \DTLformatlist{\mylist}.
17 \end{document}