| 1 |
% This file is embedded in datatool-user.pdf version 3.4.3 2025-12-04 |
| 2 |
% Example 27 All Upper/Lower Case Tests |
| 3 |
% Label: "ex:ifallcase" |
| 4 |
% arara: pdflatex |
| 5 |
% arara: pdfcrop |
| 6 |
\documentclass[12pt]{article} |
| 7 |
\pagestyle{empty} |
| 8 |
\usepackage{datatool-base} |
| 9 |
\begin{document} |
| 10 |
café: \DTLifAllUpperCase{café}{all caps}{not all caps}. |
| 11 |
|
| 12 |
Café: \DTLifAllUpperCase{Café}{all caps}{not all caps}. |
| 13 |
|
| 14 |
CAFÉ: \DTLifAllUpperCase{CAFÉ}{all caps}{not all caps}. |
| 15 |
|
| 16 |
café: \DTLifAllLowerCase{café}{all lower}{not all lower}. |
| 17 |
|
| 18 |
Café: \DTLifAllLowerCase{Café}{all lower}{not all lower}. |
| 19 |
|
| 20 |
CAFÉ: \DTLifAllLowerCase{CAFÉ}{all lower}{not all lower}. |
| 21 |
|
| 22 |
bric-\`a-brac: \DTLifAllLowerCase{bric-\`a-brac}{all lower}{not all lower}. |
| 23 |
|
| 24 |
\emph{HORS D'\OE UVRE}: \DTLifAllUpperCase{\emph{HORS D'\OE UVRE}}{all caps}{not all caps}. |
| 25 |
\end{document} |