summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/testidx/samples/sample-idxgloss-xe-digraphs.tex
blob: 667852535330af3274e5f3eca69638e3b84cccc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
% arara: xelatex
% arara: makeglossaries if found("aux", "@istfilename")
% arara: xelatex
\documentclass{report}

\usepackage{fontspec}
\setmainfont{Linux Libertine O}

\usepackage[xindy,diglyphs]{testidx-glossaries}

% Try this example out with different xindy language modules:
%\GlsSetXdyLanguage{dutch}
%\GlsSetXdyLanguage{icelandic}
%\GlsSetXdyLanguage{hungarian}
%\GlsSetXdyLanguage{polish}

\renewcommand*{\glstreenamefmt}[1]{#1}

\GlsAddXdyAttribute{tstidxencapi}
\GlsAddXdyAttribute{tstidxencapii}
\GlsAddXdyAttribute{tstidxencapiii}

% define a "Maths" group for keys starting with ">"

\GlsAddLetterGroup{Maths}{:prefixes (">" ) :before "glsnumbers"}

% define a "Markers" group for keys starting with "<"

\GlsAddLetterGroup{Markers}{:prefixes ("<" ) :before "Maths"}

\tstidxmakegloss

\begin{document}
\testidx

\tstidxprintglossaries

\end{document}