summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/datatool/samples/sample-sort.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/datatool/samples/sample-sort.tex')
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/sample-sort.tex19
1 files changed, 17 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/sample-sort.tex b/Master/texmf-dist/doc/latex/datatool/samples/sample-sort.tex
index bce750819dc..2c1f0b96f00 100644
--- a/Master/texmf-dist/doc/latex/datatool/samples/sample-sort.tex
+++ b/Master/texmf-dist/doc/latex/datatool/samples/sample-sort.tex
@@ -2,6 +2,10 @@
\documentclass{article}
+\usepackage[margin=1in]{geometry}
+
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
\usepackage{datatool}
% Sample database
@@ -20,8 +24,9 @@
\DTLnewdbentry{data}{Word}{#1}%
% Convert word to its definition and add
{%
- \def\thisword{#1}\@onelevel@sanitize\thisword
- \dtlexpandnewvalue % ensure \theword gets expanded
+ \def\thisword{#1}%
+ \@onelevel@sanitize\thisword
+ \dtlexpandnewvalue % ensure \thisword gets expanded
\DTLnewdbentry{data}{Definition}{\thisword}%
}%
}
@@ -69,8 +74,18 @@
\newword{Alpha}
\newword{seal}
\newword{sea lion}
+\newword{elephant}
+\newword{Élite}
\begin{document}
+This is a sample document testing datatool's comparison
+handlers. Note that UTF-8 characters are treated as two tokens
+(the first and second octets) with regular (pdf)\LaTeX, so the
+definition column on the following pages shows the two octets
+for the UTF-8 character É as ÃĽ, which is how \LaTeX\ sees them. XeLaTeX will treat it as a single
+token.
+
+\newpage
\section{Unsorted data}