summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/testidx/samples
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/testidx/samples
Initial commit
Diffstat (limited to 'macros/latex/contrib/testidx/samples')
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-a4.pdfbin0 -> 186061 bytes
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-a4.tex28
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-amsmath.pdfbin0 -> 190620 bytes
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-amsmath.tex29
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-babel-german.pdfbin0 -> 204565 bytes
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-babel-german.tex45
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-german.pdfbin0 -> 204480 bytes
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-german.tex45
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-hyp.pdfbin0 -> 207017 bytes
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-hyp.tex28
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-letter.pdfbin0 -> 199713 bytes
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-letter.tex30
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-lua.pdfbin0 -> 148258 bytes
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-lua.tex78
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-subset.pdfbin0 -> 138492 bytes
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-subset.tex28
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-t1.pdfbin0 -> 294342 bytes
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-t1.tex37
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-utf8.pdfbin0 -> 316716 bytes
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-utf8.tex88
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-xe-digraphs.pdfbin0 -> 101305 bytes
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-xe-digraphs.tex85
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-xe.pdfbin0 -> 103564 bytes
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-xe.tex79
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx.pdfbin0 -> 187731 bytes
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx.tex36
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idxgloss-bib2gls-xe.pdfbin0 -> 178540 bytes
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idxgloss-bib2gls-xe.tex76
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idxgloss-bib2gls.pdfbin0 -> 364062 bytes
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idxgloss-bib2gls.tex72
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idxgloss-desc.pdfbin0 -> 430712 bytes
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idxgloss-desc.tex18
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idxgloss-xe-digraphs.pdfbin0 -> 100182 bytes
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idxgloss-xe-digraphs.tex38
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idxgloss-xindy.pdfbin0 -> 279604 bytes
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idxgloss-xindy.tex33
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idxgloss.pdfbin0 -> 304536 bytes
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idxgloss.tex22
-rw-r--r--macros/latex/contrib/testidx/samples/sample-noidxgloss.pdfbin0 -> 276368 bytes
-rw-r--r--macros/latex/contrib/testidx/samples/sample-noidxgloss.tex18
40 files changed, 913 insertions, 0 deletions
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-a4.pdf b/macros/latex/contrib/testidx/samples/sample-idx-a4.pdf
new file mode 100644
index 0000000000..40d26c22e5
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-a4.pdf
Binary files differ
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-a4.tex b/macros/latex/contrib/testidx/samples/sample-idx-a4.tex
new file mode 100644
index 0000000000..6de97e11eb
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-a4.tex
@@ -0,0 +1,28 @@
+% This file is public domain.
+%
+% This example document demonstrates the testidx package
+% with A4 paper. You can build this document using:
+%
+% pdflatex sample-idx-a4
+% makeindex sample-idx-a4.idx
+% pdflatex sample-idx-a4
+%
+% If you are using arara, the directives are:
+%
+% arara: pdflatex
+% arara: makeindex
+% arara: pdflatex
+\documentclass[a4paper]{article}
+
+\usepackage{geometry}
+\usepackage{makeidx}
+\usepackage{testidx}
+
+\makeindex
+
+\begin{document}
+\testidx
+
+\printindex
+\end{document}
+
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-amsmath.pdf b/macros/latex/contrib/testidx/samples/sample-idx-amsmath.pdf
new file mode 100644
index 0000000000..b212b990cc
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-amsmath.pdf
Binary files differ
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-amsmath.tex b/macros/latex/contrib/testidx/samples/sample-idx-amsmath.tex
new file mode 100644
index 0000000000..5faab29b76
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-amsmath.tex
@@ -0,0 +1,29 @@
+% This file is public domain.
+%
+% This example document demonstrates the testidx package
+% with the amsmath package. You can build this document using:
+%
+% pdflatex sample-idx-amsmath
+% makeindex sample-idx-amsmath.idx
+% pdflatex sample-idx-amsmath
+%
+% If you are using arara, the directives are:
+%
+% arara: pdflatex
+% arara: makeindex
+% arara: pdflatex
+\documentclass{article}
+
+\usepackage{makeidx}
+\usepackage{amsmath}
+\usepackage{amssymb}
+\usepackage{testidx}
+
+\makeindex
+
+\begin{document}
+\testidx
+
+\printindex
+\end{document}
+
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-babel-german.pdf b/macros/latex/contrib/testidx/samples/sample-idx-babel-german.pdf
new file mode 100644
index 0000000000..624a7ec024
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-babel-german.pdf
Binary files differ
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-babel-german.tex b/macros/latex/contrib/testidx/samples/sample-idx-babel-german.tex
new file mode 100644
index 0000000000..3f0719aa34
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-babel-german.tex
@@ -0,0 +1,45 @@
+% This file is public domain.
+%
+% This example document demonstrates the testidx package
+% with babel and the -g (German) makeindex option.
+% You can build this document using:
+%
+% pdflatex sample-idx-babel-german
+% makeindex -g -s sample-idx-babel-german.idx sample-idx-babel-german.idx
+% pdflatex sample-idx-babel-german
+%
+% If you are using arara, the directives are:
+%
+% arara: pdflatex
+% arara: makeindex: { german: on, style: sample-idx-german.ist }
+% arara: pdflatex
+\documentclass[ngerman]{article}
+
+\usepackage{filecontents}
+\usepackage{makeidx}
+\usepackage{babel}
+\usepackage{testidx}
+
+\providecommand*\lettergroup[1]{%
+ \par\textbf{#1}\par
+ \nopagebreak
+}
+\begin{filecontents*}{\jobname.ist}
+quote '+'
+headings_flag 1
+heading_prefix "\\item\\lettergroup{"
+heading_suffix "}\n"
+symhead_positive "Symbole"
+symhead_negative "symbole"
+numhead_positive "Zahlen"
+numhead_negative "zahlen"
+\end{filecontents*}
+
+\makeindex
+
+\begin{document}
+\testidx
+
+\printindex
+\end{document}
+
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-german.pdf b/macros/latex/contrib/testidx/samples/sample-idx-german.pdf
new file mode 100644
index 0000000000..8796631b56
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-german.pdf
Binary files differ
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-german.tex b/macros/latex/contrib/testidx/samples/sample-idx-german.tex
new file mode 100644
index 0000000000..0a3543bbea
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-german.tex
@@ -0,0 +1,45 @@
+% This file is public domain.
+%
+% This example document demonstrates the testidx package
+% with ngerman.sty and the -g (German) makeindex option.
+% You can build this document using:
+%
+% pdflatex sample-idx-german
+% makeindex -g -s sample-idx-german.idx sample-idx-german.idx
+% pdflatex sample-idx-german
+%
+% If you are using arara, the directives are:
+%
+% arara: pdflatex
+% arara: makeindex: { german: on, style: sample-idx-german.ist }
+% arara: pdflatex
+\documentclass{article}
+
+\usepackage{filecontents}
+\usepackage{makeidx}
+\usepackage{ngerman}
+\usepackage[german]{testidx}
+
+\providecommand*\lettergroup[1]{%
+ \par\textbf{#1}\par
+ \nopagebreak
+}
+\begin{filecontents*}{\jobname.ist}
+quote '+'
+headings_flag 1
+heading_prefix "\\item\\lettergroup{"
+heading_suffix "}\n"
+symhead_positive "Symbole"
+symhead_negative "symbole"
+numhead_positive "Zahlen"
+numhead_negative "zahlen"
+\end{filecontents*}
+
+\makeindex
+
+\begin{document}
+\testidx
+
+\printindex
+\end{document}
+
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-hyp.pdf b/macros/latex/contrib/testidx/samples/sample-idx-hyp.pdf
new file mode 100644
index 0000000000..e46507fbae
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-hyp.pdf
Binary files differ
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-hyp.tex b/macros/latex/contrib/testidx/samples/sample-idx-hyp.tex
new file mode 100644
index 0000000000..f2328b2a0b
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-hyp.tex
@@ -0,0 +1,28 @@
+% This file is public domain.
+%
+% This example document demonstrates the testidx package
+% with hyperref.sty makeindex. You can build this document using:
+%
+% pdflatex sample-idx-hyp
+% makeindex sample-idx-hyp.idx
+% pdflatex sample-idx-hyp
+%
+% If you are using arara, the directives are:
+%
+% arara: pdflatex
+% arara: makeindex
+% arara: pdflatex
+\documentclass{article}
+
+\usepackage{makeidx}
+\usepackage{testidx}
+\usepackage[hidelinks]{hyperref}
+
+\makeindex
+
+\begin{document}
+\testidx
+
+\printindex
+\end{document}
+
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-letter.pdf b/macros/latex/contrib/testidx/samples/sample-idx-letter.pdf
new file mode 100644
index 0000000000..319f33dd7b
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-letter.pdf
Binary files differ
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-letter.tex b/macros/latex/contrib/testidx/samples/sample-idx-letter.tex
new file mode 100644
index 0000000000..ff822977e9
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-letter.tex
@@ -0,0 +1,30 @@
+% This file is public domain.
+%
+% This example document demonstrates the testidx package
+% with US Letter paper and the book class. You can build
+% this document using:
+%
+% pdflatex sample-idx-letter
+% makeindex sample-idx-letter.idx
+% pdflatex sample-idx-letter
+%
+% If you are using arara, the directives are:
+%
+% arara: pdflatex
+% arara: makeindex
+% arara: pdflatex
+\documentclass[letterpaper]{book}
+
+\usepackage[marginpar=1in]{geometry}
+\usepackage{makeidx}
+\usepackage{testidx}
+
+\makeindex
+
+\begin{document}
+\chapter{Sample}
+\testidx
+
+\printindex
+\end{document}
+
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-lua.pdf b/macros/latex/contrib/testidx/samples/sample-idx-lua.pdf
new file mode 100644
index 0000000000..6cf3556cd3
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-lua.pdf
Binary files differ
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-lua.tex b/macros/latex/contrib/testidx/samples/sample-idx-lua.tex
new file mode 100644
index 0000000000..39526333cd
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-lua.tex
@@ -0,0 +1,78 @@
+% This file is public domain.
+%
+% This example document demonstrates the testidx package
+% with LuaLaTeX and xindy. You can build this document using:
+%
+% lualatex sample-idx-lua
+% xindy -M sample-idx-lua -M texindy -C utf8 -L english -t sample-idx-lua.ilg sample-idx-lua.idx
+% lualatex sample-idx-lua
+%
+% If you are using arara, the directives are:
+%
+% arara: lualatex
+% arara: xindy: {language: english, codepage: utf8,
+% arara: --> log: sample-idx-lua.ilg,
+% arara: --> modules: [basename, texindy]}
+% arara: lualatex
+\documentclass{article}
+
+\usepackage{filecontents}
+\usepackage{fontspec}
+\usepackage{makeidx}
+\usepackage{testidx}
+
+% Create the .xdy file for this example:
+\begin{filecontents*}{\jobname.xdy}
+; list of allowed attributes
+
+(define-attributes ((
+ "tstidxencapi"
+ "tstidxencapii"
+ "tstidxencapiii"
+)))
+
+; define format to use for locations
+
+(markup-locref :open "\tstidxencapi{"
+ :close "}"
+ :attr "tstidxencapi")
+
+(markup-locref :open "\tstidxencapii{"
+ :close "}"
+ :attr "tstidxencapii")
+
+(markup-locref :open "\tstidxencapiii{"
+ :close "}"
+ :attr "tstidxencapiii")
+
+(markup-locref-list :sep ",")
+(markup-range :sep "--")
+
+; define a numbers group
+
+(define-letter-group "Numbers"
+ :prefixes ("0" "1" "2" "3" "4" "5" "6" "7" "8" "9")
+ :before "A")
+
+; define a "Maths" group for keys starting with ">"
+
+(define-letter-group "Maths"
+ :prefixes (">" )
+ :before "Numbers")
+
+; define a "Markers" group for keys starting with "<"
+
+(define-letter-group "Markers"
+ :prefixes ("<" )
+ :before "Maths")
+
+\end{filecontents*}
+
+\makeindex
+
+\begin{document}
+\testidx
+
+\printindex
+\end{document}
+
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-subset.pdf b/macros/latex/contrib/testidx/samples/sample-idx-subset.pdf
new file mode 100644
index 0000000000..c6045b334e
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-subset.pdf
Binary files differ
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-subset.tex b/macros/latex/contrib/testidx/samples/sample-idx-subset.tex
new file mode 100644
index 0000000000..2fc5029bed
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-subset.tex
@@ -0,0 +1,28 @@
+% This file is public domain.
+%
+% This example document demonstrates the testidx package
+% with a subset of the test paragraphs. You can build this
+% document using:
+%
+% pdflatex sample-idx-subset
+% makeindex sample-idx-subset.idx
+% pdflatex sample-idx-subset
+%
+% If you are using arara, the directives are:
+%
+% arara: pdflatex
+% arara: makeindex
+% arara: pdflatex
+\documentclass{article}
+
+\usepackage{makeidx}
+\usepackage{testidx}
+
+\makeindex
+
+\begin{document}
+\testidx[1,8,10-14,\tstidxmaxblocks]
+
+\printindex
+\end{document}
+
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-t1.pdf b/macros/latex/contrib/testidx/samples/sample-idx-t1.pdf
new file mode 100644
index 0000000000..50a176f0d4
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-t1.pdf
Binary files differ
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-t1.tex b/macros/latex/contrib/testidx/samples/sample-idx-t1.tex
new file mode 100644
index 0000000000..6d50be97f0
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-t1.tex
@@ -0,0 +1,37 @@
+% This file is public domain.
+%
+% This example document demonstrates the testidx package
+% with makeindex. You can build this document using:
+%
+% pdflatex sample-idx-t1
+% makeindex sample-idx-t1.idx
+% pdflatex sample-idx-t1
+%
+% If you are using arara, the directives are:
+%
+% arara: pdflatex
+% arara: makeindex
+% arara: pdflatex
+\documentclass{article}
+
+\usepackage[T1]{fontenc}
+\usepackage{makeidx}
+\usepackage
+ [% options:
+ stripaccents,% strip accents from sort key (default)
+ %nostripaccents,% don't strip accents from sort key
+ %verbose,% show \index commands in the text
+ noverbose,% don't show \index commands in the text (default)
+ showmarks,% highlight where \index has been used (default)
+ %hidemarks,% don't highlight where \index has been used
+ %notestencaps,% don't test the encaps
+ ]{testidx}
+
+\makeindex
+
+\begin{document}
+\testidx
+
+\printindex
+\end{document}
+
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-utf8.pdf b/macros/latex/contrib/testidx/samples/sample-idx-utf8.pdf
new file mode 100644
index 0000000000..f35959e4b7
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-utf8.pdf
Binary files differ
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-utf8.tex b/macros/latex/contrib/testidx/samples/sample-idx-utf8.tex
new file mode 100644
index 0000000000..e4cbb529f3
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-utf8.tex
@@ -0,0 +1,88 @@
+% This file is public domain.
+%
+% This example document demonstrates the testidx package
+% with inputenc.sty and xindy. You can build this document using:
+%
+% pdflatex sample-idx-utf8
+% xindy -M sample-idx-utf8 -M texindy -C utf8 -L english -t sample-idx-utf8.ilg sample-idx-utf8.idx
+% pdflatex sample-idx-utf8
+%
+% If you are using arara, the directives are:
+%
+% arara: pdflatex
+% arara: xindy: {language: english, codepage: utf8,
+% arara: --> modules: [basename, texindy]}
+% arara: pdflatex
+\documentclass{article}
+
+\usepackage{filecontents}
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
+\usepackage{amssymb}
+\usepackage{makeidx}
+\usepackage
+ [
+ %nosanitize,% don't sanitize characters in the dummy entries
+ sanitize,% sanitize characters in the dummy entries
+ showmarks,% show where the indexing command has been used
+ %hidemarks,% hide the visual effects
+ %verbose,% show the argument that's being passed to \index
+ % warning: will cause overfull lines!
+ noverbose% default
+ ]
+ {testidx}
+
+% Create the .xdy file for this example:
+\begin{filecontents*}{\jobname.xdy}
+; list of allowed attributes
+
+(define-attributes ((
+ "tstidxencapi"
+ "tstidxencapii"
+ "tstidxencapiii"
+)))
+
+; define format to use for locations
+
+(markup-locref :open "\tstidxencapi{"
+ :close "}"
+ :attr "tstidxencapi")
+
+(markup-locref :open "\tstidxencapii{"
+ :close "}"
+ :attr "tstidxencapii")
+
+(markup-locref :open "\tstidxencapiii{"
+ :close "}"
+ :attr "tstidxencapiii")
+
+(markup-locref-list :sep ",")
+(markup-range :sep "--")
+
+; define a numbers group
+
+(define-letter-group "Numbers"
+ :prefixes ("0" "1" "2" "3" "4" "5" "6" "7" "8" "9")
+ :before "A")
+
+; define a "Maths" group for keys starting with ">"
+
+(define-letter-group "Maths"
+ :prefixes (">" )
+ :before "Numbers")
+
+; define a "Markers" group for keys starting with "<"
+
+(define-letter-group "Markers"
+ :prefixes ("<" )
+ :before "Maths")
+\end{filecontents*}
+
+\makeindex
+
+\begin{document}
+\testidx
+
+\printindex
+\end{document}
+
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-xe-digraphs.pdf b/macros/latex/contrib/testidx/samples/sample-idx-xe-digraphs.pdf
new file mode 100644
index 0000000000..a9c6341239
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-xe-digraphs.pdf
Binary files differ
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-xe-digraphs.tex b/macros/latex/contrib/testidx/samples/sample-idx-xe-digraphs.tex
new file mode 100644
index 0000000000..7fcd40f949
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-xe-digraphs.tex
@@ -0,0 +1,85 @@
+% This file is public domain.
+%
+% This example document demonstrates the testidx package
+% with XeLaTeX and xindy using digraph glyphs.
+% You can build this document using:
+%
+% xelatex sample-idx-xe
+% xindy -M sample-idx-xe -M texindy -C utf8 -L english -t sample-idx-xe.ilg sample-idx-xe.idx
+% xelatex sample-idx-xe
+%
+% You may want to experiment with different languages.
+%
+% If you are using arara, the directives are:
+%
+% arara: xelatex
+% arara: xindy: {language: english, codepage: utf8,
+% arara: --> modules: [basename, texindy]}
+% arara: xelatex
+\documentclass{article}
+
+\usepackage{filecontents}
+\usepackage{fontspec}
+
+% Need a font that supports the digraph glyphs
+% For example:
+\setmainfont{Linux Libertine O}
+
+\usepackage{makeidx}
+\usepackage[diglyphs]{testidx}
+
+% Create the .xdy file for this example:
+\begin{filecontents*}{\jobname.xdy}
+; list of allowed attributes
+
+(define-attributes ((
+ "tstidxencapi"
+ "tstidxencapii"
+ "tstidxencapiii"
+)))
+
+; define format to use for locations
+
+(markup-locref :open "\tstidxencapi{"
+ :close "}"
+ :attr "tstidxencapi")
+
+(markup-locref :open "\tstidxencapii{"
+ :close "}"
+ :attr "tstidxencapii")
+
+(markup-locref :open "\tstidxencapiii{"
+ :close "}"
+ :attr "tstidxencapiii")
+
+(markup-locref-list :sep ",")
+(markup-range :sep "--")
+
+; define a numbers group
+
+(define-letter-group "Numbers"
+ :prefixes ("0" "1" "2" "3" "4" "5" "6" "7" "8" "9")
+ :before "A")
+
+; define a "Maths" group for keys starting with ">"
+
+(define-letter-group "Maths"
+ :prefixes (">" )
+ :before "Numbers")
+
+; define a "Markers" group for keys starting with "<"
+
+(define-letter-group "Markers"
+ :prefixes ("<" )
+ :before "Maths")
+
+\end{filecontents*}
+
+\makeindex
+
+\begin{document}
+\testidx
+
+\printindex
+\end{document}
+
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-xe.pdf b/macros/latex/contrib/testidx/samples/sample-idx-xe.pdf
new file mode 100644
index 0000000000..af1f8ada1e
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-xe.pdf
Binary files differ
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-xe.tex b/macros/latex/contrib/testidx/samples/sample-idx-xe.tex
new file mode 100644
index 0000000000..4502dafe6f
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-xe.tex
@@ -0,0 +1,79 @@
+% This file is public domain.
+%
+% This example document demonstrates the testidx package
+% with XeLaTeX and xindy. You can build this document using:
+%
+% xelatex sample-idx-xe
+% xindy -M sample-idx-xe -M texindy -C utf8 -L english -t sample-idx-xe.ilg sample-idx-xe.idx
+% xelatex sample-idx-xe
+%
+% You may want to experiment with different languages.
+%
+% If you are using arara, the directives are:
+%
+% arara: xelatex
+% arara: xindy: {language: english, codepage: utf8,
+% arara: --> modules: [basename, texindy]}
+% arara: xelatex
+\documentclass{article}
+
+\usepackage{filecontents}
+\usepackage{fontspec}
+\usepackage{makeidx}
+\usepackage{testidx}
+
+% Create the .xdy file for this example:
+\begin{filecontents*}{\jobname.xdy}
+; list of allowed attributes
+
+(define-attributes ((
+ "tstidxencapi"
+ "tstidxencapii"
+ "tstidxencapiii"
+)))
+
+; define format to use for locations
+
+(markup-locref :open "\tstidxencapi{"
+ :close "}"
+ :attr "tstidxencapi")
+
+(markup-locref :open "\tstidxencapii{"
+ :close "}"
+ :attr "tstidxencapii")
+
+(markup-locref :open "\tstidxencapiii{"
+ :close "}"
+ :attr "tstidxencapiii")
+
+(markup-locref-list :sep ",")
+(markup-range :sep "--")
+
+; define a numbers group
+
+(define-letter-group "Numbers"
+ :prefixes ("0" "1" "2" "3" "4" "5" "6" "7" "8" "9")
+ :before "A")
+
+; define a "Maths" group for keys starting with ">"
+
+(define-letter-group "Maths"
+ :prefixes (">" )
+ :before "Numbers")
+
+; define a "Markers" group for keys starting with "<"
+
+(define-letter-group "Markers"
+ :prefixes ("<" )
+ :before "Maths")
+
+\end{filecontents*}
+
+\makeindex
+
+\begin{document}
+\testidx
+
+\printindex
+\end{document}
+
diff --git a/macros/latex/contrib/testidx/samples/sample-idx.pdf b/macros/latex/contrib/testidx/samples/sample-idx.pdf
new file mode 100644
index 0000000000..61197f8097
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx.pdf
Binary files differ
diff --git a/macros/latex/contrib/testidx/samples/sample-idx.tex b/macros/latex/contrib/testidx/samples/sample-idx.tex
new file mode 100644
index 0000000000..964dc13e29
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx.tex
@@ -0,0 +1,36 @@
+% This file is public domain.
+%
+% This example document demonstrates the testidx package
+% with makeindex. You can build this document using:
+%
+% pdflatex sample-idx
+% makeindex sample-idx.idx
+% pdflatex sample-idx
+%
+% If you are using arara, the directives are:
+%
+% arara: pdflatex
+% arara: makeindex
+% arara: pdflatex
+\documentclass{article}
+
+\usepackage{makeidx}
+\usepackage
+ [% options:
+ stripaccents,% strip accents from sort key (default)
+ %nostripaccents,% don't strip accents from sort key
+ %verbose,% show \index commands in the text
+ noverbose,% don't show \index commands in the text (default)
+ showmarks,% highlight where \index has been used (default)
+ %hidemarks,% don't highlight where \index has been used
+ %notestencaps,% don't test the encaps
+ ]{testidx}
+
+\makeindex
+
+\begin{document}
+\testidx
+
+\printindex
+\end{document}
+
diff --git a/macros/latex/contrib/testidx/samples/sample-idxgloss-bib2gls-xe.pdf b/macros/latex/contrib/testidx/samples/sample-idxgloss-bib2gls-xe.pdf
new file mode 100644
index 0000000000..e5410c3d84
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idxgloss-bib2gls-xe.pdf
Binary files differ
diff --git a/macros/latex/contrib/testidx/samples/sample-idxgloss-bib2gls-xe.tex b/macros/latex/contrib/testidx/samples/sample-idxgloss-bib2gls-xe.tex
new file mode 100644
index 0000000000..34b6e71167
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idxgloss-bib2gls-xe.tex
@@ -0,0 +1,76 @@
+% arara: xelatex
+% arara: bib2gls: {group: on}
+% arara: xelatex
+% arara: xelatex
+\documentclass{report}
+
+\usepackage{fontspec}
+\setmainfont{DejaVu Serif}
+
+\usepackage{amssymb}
+\usepackage[hidelinks]{hyperref}
+\usepackage[bib2gls,diglyphs]{testidx-glossaries}
+
+\setglossarystyle{mcolindexspannav}
+
+\renewcommand*{\glstreenamefmt}[1]{#1}
+\renewcommand*{\glstreegroupheaderfmt}[1]{\textbf{#1}}
+
+\tstidxmakegloss[
+ max-loc-diff={2},
+% Try with different languages
+% sort={no}% norsk
+% sort={nn}% nynorsk
+% sort={nl}% dutch
+% sort={is}% icelandic
+% sort={cy}% welsh
+% sort={ga}% irish
+% sort={pl}% polish
+% sort={hu}% hungarian
+% Or use a custom rule:
+ sort={custom},
+ sort-rule={% custom sort rule (only used with sort=custom)
+ ' '; % space
+ \string\u0300;% combining grave accent
+ \string\u0301;% combining acute accent
+ \string\u0302;% combining circumflex accent
+ \string\u0303;% combining tilde accent
+ \string\u0304;% combining macron accent
+ \string\u0305;% combining overline accent
+ \string\u0306;% combining breve accent
+ \string\u0307;% combining dot above accent
+ \string\u0308;% combining diaeresis accent
+ \string\u0309;% combining hook above accent
+ \string\u030A;% combining ring above accent
+ \string\u030B;% combining double acute accent
+ \string\u030C;% combining caron accent
+ \string\u0327;% combining cedilla accent
+ \string\u0328;% combining ogonek accent
+ \string\u20D7% combining right arrow above accent
+ <'\string_'< ','< ';'< ':'< '!'< '?'< '/'< '.'< '<'<'>'<'('<')'% punctuation
+ < 0 < 1 < 2 < 3 < 4 < 5 < 6 < 7 < 8 < 9
+ < a,A < b,B < c,C < d,D
+ < dd,Dd,DD
+ < dz,\string\u01F3\string&Dz,\string\u01F2\string&DZ,\string\u01F1 < dzs,DZS
+ < \string\u00F0,\string\u00D0 % eth
+ < e,E < f,F < ff,Ff,FF
+ < g,G < h,H < i,I < ij,\string\u0133,IJ,\string\u0132
+ < j,J < k,K < l,L
+ < ll,\string\u1EFB,Ll,LL,\string\u1EFA
+ < m,M < n,N
+ < ng,Ng,NG < o,O < p,P
+ < q,Q < r,R < s,S < t,T < u,U < v,V < w,W < x,X < y,Y < z,Z
+ < \string\u00E6,\string\u00C6 % (ae ligature)
+ < \string\u0153,\string\u0152 % (oe ligature)
+ < \string\u00FE,\string\u00DE % (thorn)
+ < \string\u00F8,\string\u00D8 % (o slash)
+ < \string\u0142,\string\u0141 % (l stroke)
+ }
+]
+
+\begin{document}
+
+\testidx
+
+\tstidxprintglossaries
+\end{document}
diff --git a/macros/latex/contrib/testidx/samples/sample-idxgloss-bib2gls.pdf b/macros/latex/contrib/testidx/samples/sample-idxgloss-bib2gls.pdf
new file mode 100644
index 0000000000..956cdf1511
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idxgloss-bib2gls.pdf
Binary files differ
diff --git a/macros/latex/contrib/testidx/samples/sample-idxgloss-bib2gls.tex b/macros/latex/contrib/testidx/samples/sample-idxgloss-bib2gls.tex
new file mode 100644
index 0000000000..71b9c18bf8
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idxgloss-bib2gls.tex
@@ -0,0 +1,72 @@
+% arara: pdflatex
+% arara: bib2gls: {group: on}
+% arara: pdflatex
+% arara: pdflatex
+\documentclass{report}
+
+\usepackage[a4paper]{geometry}
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
+\usepackage{amssymb}
+\usepackage[hidelinks]{hyperref}
+\usepackage[bib2gls]{testidx-glossaries}
+
+\setglossarystyle{mcolindexspannav}
+
+\renewcommand*{\glstreenamefmt}[1]{#1}
+\renewcommand*{\glstreegroupheaderfmt}[1]{\textbf{#1}}
+
+\tstidxmakegloss[
+% Try with different languages:
+% sort={no}% norsk
+% sort={nn}% nynorsk
+% sort={nl}% dutch
+% sort={is}% icelandic
+% sort={cy}% welsh
+% sort={ga}% irish
+% sort={pl}% polish
+% sort={hu}% hungarian
+% Or use a custom rule:
+ sort={custom},
+ sort-rule={% custom sort rule (only used with sort=custom)
+ ' '; % space
+ \string\u0300;% combining grave accent
+ \string\u0301;% combining acute accent
+ \string\u0302;% combining circumflex accent
+ \string\u0303;% combining tilde accent
+ \string\u0304;% combining macron accent
+ \string\u0305;% combining overline accent
+ \string\u0306;% combining breve accent
+ \string\u0307;% combining dot above accent
+ \string\u0308;% combining diaeresis accent
+ \string\u0309;% combining hook above accent
+ \string\u030A;% combining ring above accent
+ \string\u030B;% combining double acute accent
+ \string\u030C;% combining caron accent
+ \string\u0327;% combining cedilla accent
+ \string\u0328;% combining ogonek accent
+ \string\u20D7% combining right arrow above accent
+ <'\string_'< ','< ';'< ':'< '!'< '?'< '/'< '.'< '<'<'>'<'('<')'% punctuation
+ < 0 < 1 < 2 < 3 < 4 < 5 < 6 < 7 < 8 < 9
+ < a,A < b,B < c,C < d,D
+ < dd,Dd,DD < dz,DZ < dzs,DZS
+ < \string\u00F0,\string\u00D0 % eth
+ < e,E < f,F < ff,Ff,FF
+ < g,G < h,H < i,I < ij,IJ < j,J < k,K < l,L < ll,Ll,LL < m,M < n,N
+ < ng,Ng,NG < o,O < p,P
+ < q,Q < r,R < s,S < t,T < u,U < v,V < w,W < x,X < y,Y < z,Z
+ < \string\u00E6,\string\u00C6 % (ae ligature)
+ < \string\u0153,\string\u0152 % (oe ligature)
+ < \string\u00FE,\string\u00DE % (thorn)
+ < \string\u00F8,\string\u00D8 % (o slash)
+ < \string\u0142,\string\u0141 % (l stroke)
+}
+]
+
+\begin{document}
+
+\testidx
+
+\tstidxprintglossaries
+
+\end{document}
diff --git a/macros/latex/contrib/testidx/samples/sample-idxgloss-desc.pdf b/macros/latex/contrib/testidx/samples/sample-idxgloss-desc.pdf
new file mode 100644
index 0000000000..764fc16f9d
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idxgloss-desc.pdf
Binary files differ
diff --git a/macros/latex/contrib/testidx/samples/sample-idxgloss-desc.tex b/macros/latex/contrib/testidx/samples/sample-idxgloss-desc.tex
new file mode 100644
index 0000000000..34c350a27c
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idxgloss-desc.tex
@@ -0,0 +1,18 @@
+% arara: pdflatex
+% arara: makeglossaries if found("aux", "@istfilename")
+% arara: pdflatex
+\documentclass{report}
+
+\usepackage[T1]{fontenc}
+\usepackage[hidelinks]{hyperref}
+\usepackage[desc]{testidx-glossaries}
+
+\tstidxmakegloss
+
+\begin{document}
+
+\testidx
+
+\tstidxprintglossaries
+
+\end{document}
diff --git a/macros/latex/contrib/testidx/samples/sample-idxgloss-xe-digraphs.pdf b/macros/latex/contrib/testidx/samples/sample-idxgloss-xe-digraphs.pdf
new file mode 100644
index 0000000000..ee78e9178c
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idxgloss-xe-digraphs.pdf
Binary files differ
diff --git a/macros/latex/contrib/testidx/samples/sample-idxgloss-xe-digraphs.tex b/macros/latex/contrib/testidx/samples/sample-idxgloss-xe-digraphs.tex
new file mode 100644
index 0000000000..6678525353
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idxgloss-xe-digraphs.tex
@@ -0,0 +1,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}
diff --git a/macros/latex/contrib/testidx/samples/sample-idxgloss-xindy.pdf b/macros/latex/contrib/testidx/samples/sample-idxgloss-xindy.pdf
new file mode 100644
index 0000000000..582ce035b0
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idxgloss-xindy.pdf
Binary files differ
diff --git a/macros/latex/contrib/testidx/samples/sample-idxgloss-xindy.tex b/macros/latex/contrib/testidx/samples/sample-idxgloss-xindy.tex
new file mode 100644
index 0000000000..882982e44a
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idxgloss-xindy.tex
@@ -0,0 +1,33 @@
+% arara: pdflatex
+% arara: makeglossaries if found("aux", "@istfilename")
+% arara: pdflatex
+\documentclass{report}
+
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
+\usepackage{amssymb}
+\usepackage[seekey,prefix,verbose,xindy]{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}
+
+\GlsAddLetterGroup{Maths}{:prefixes (">") :before "glsnumbers"}
+\GlsAddLetterGroup{Markers}{:prefixes ("<") :before "Maths"}
+
+\tstidxmakegloss
+
+\begin{document}
+\testidx
+
+\tstidxprintglossaries
+
+\end{document}
diff --git a/macros/latex/contrib/testidx/samples/sample-idxgloss.pdf b/macros/latex/contrib/testidx/samples/sample-idxgloss.pdf
new file mode 100644
index 0000000000..de7e98a83a
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idxgloss.pdf
Binary files differ
diff --git a/macros/latex/contrib/testidx/samples/sample-idxgloss.tex b/macros/latex/contrib/testidx/samples/sample-idxgloss.tex
new file mode 100644
index 0000000000..0b7f8b6118
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idxgloss.tex
@@ -0,0 +1,22 @@
+% arara: pdflatex
+% arara: makeglossaries if found("aux", "@istfilename")
+% arara: pdflatex
+\documentclass[11pt]{report}
+
+\usepackage[T1]{fontenc}
+\usepackage{amssymb}
+\usepackage[a4paper,left=.75in,right=1.6in]{geometry}
+\usepackage[verbose]{testidx-glossaries}
+
+\renewcommand*{\glstreenamefmt}[1]{#1}
+\renewcommand*{\glstreegroupheaderfmt}[1]{\textbf{#1}}
+
+\tstidxmakegloss
+
+\begin{document}
+
+\testidx
+
+\tstidxprintglossaries
+
+\end{document}
diff --git a/macros/latex/contrib/testidx/samples/sample-noidxgloss.pdf b/macros/latex/contrib/testidx/samples/sample-noidxgloss.pdf
new file mode 100644
index 0000000000..633472b549
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-noidxgloss.pdf
Binary files differ
diff --git a/macros/latex/contrib/testidx/samples/sample-noidxgloss.tex b/macros/latex/contrib/testidx/samples/sample-noidxgloss.tex
new file mode 100644
index 0000000000..5170388f0c
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-noidxgloss.tex
@@ -0,0 +1,18 @@
+% arara: pdflatex
+% arara: pdflatex
+\documentclass{report}
+
+\usepackage[T1]{fontenc}
+\usepackage[tex,verbose]{testidx-glossaries}
+
+\renewcommand*{\glstreenamefmt}[1]{#1}
+
+\tstidxmakegloss
+
+\begin{document}
+
+\testidx
+
+\tstidxprintglossaries
+
+\end{document}