| 1 |
% This file is embedded in glossaries-user.pdf |
| 2 |
% Example 9 UTF-8 and xindy |
| 3 |
% Label: "ex:xindyutf8" |
| 4 |
% arara: pdflatex |
| 5 |
% arara: makeglossaries |
| 6 |
% arara: pdflatex |
| 7 |
% arara: pdfcrop |
| 8 |
\documentclass[12pt]{article} |
| 9 |
\pagestyle{empty} |
| 10 |
\usepackage[T1]{fontenc} |
| 11 |
\usepackage[main=english,brazilian]{babel} |
| 12 |
\usepackage[xindy]{glossaries} |
| 13 |
\newglossary*{dictionary}{\glossaryname} |
| 14 |
\makeglossaries |
| 15 |
\newglossaryentry{élite}{name={élite}, |
| 16 |
description={select group or class}} |
| 17 |
\newglossaryentry{elephant}{name={elephant}, |
| 18 |
description={large animal with trunk and tusks}} |
| 19 |
\newglossaryentry{elk}{name={elk}, description={large deer}} |
| 20 |
|
| 21 |
\newglossaryentry{água}{name={água}, |
| 22 |
type={dictionary}, |
| 23 |
description={water}} |
| 24 |
\newglossaryentry{árvore}{name={árvore}, |
| 25 |
type={dictionary}, |
| 26 |
description={tree}} |
| 27 |
\newglossaryentry{ano}{name={ano}, |
| 28 |
type={dictionary}, |
| 29 |
description={year}} |
| 30 |
\begin{document} |
| 31 |
\section{English} |
| 32 |
An \gls{elk} and an \gls{elephant} belonged to an \gls{élite} group. |
| 33 |
|
| 34 |
\printglossary |
| 35 |
|
| 36 |
\selectlanguage{brazilian} |
| 37 |
\section{Brasileiro} |
| 38 |
A \gls{árvore} tive \gls{água} este \gls{ano}. |
| 39 |
|
| 40 |
\printglossary[type=dictionary] |
| 41 |
\end{document} |