diff options
author | Karl Berry <karl@freefriends.org> | 2016-10-17 21:25:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-10-17 21:25:14 +0000 |
commit | 0ef9e5e0733974cb6927cb3512c75165998e0b59 (patch) | |
tree | 9266f2f6d37c5ceb28c5ddb1bb1347017be14a46 /Master/texmf-dist/doc/latex/testidx/samples/sample-idx-xe.tex | |
parent | 194bd35605c2da5ae9f60db1eae3c76992a4d92b (diff) |
testidx (17oct16)
git-svn-id: svn://tug.org/texlive/trunk@42294 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/testidx/samples/sample-idx-xe.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/testidx/samples/sample-idx-xe.tex | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/testidx/samples/sample-idx-xe.tex b/Master/texmf-dist/doc/latex/testidx/samples/sample-idx-xe.tex new file mode 100644 index 00000000000..0619b5aa826 --- /dev/null +++ b/Master/texmf-dist/doc/latex/testidx/samples/sample-idx-xe.tex @@ -0,0 +1,77 @@ +% 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 +% +% 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} + |