Debian Codegraph @

texmf-dist/source/latex/testidx/testidx.dtx

raw
1 %\iffalse
2 % testidx.dtx generated using makedtx version 1.2 (c) Nicola Talbot
3 % Command line args:
4 % -src "(testidx.sty)\Z=>\1"
5 % -src "(testidx-.*.sty)\Z=>\1"
6 % -src "(testidx-glossaries.*\.tex)\Z=>\1"
7 % -src "(testidx-glossaries.*\.bib)\Z=>\1"
8 % -setambles ".*\.bib=>\nopreamble\nopostamble"
9 % -doc "testidx-codedoc.tex"
10 % -codetitle "Main Package Code"
11 % -author "Nicola Talbot"
12 % -macrocode ".*\.bib"
13 % testidx
14 % Created on 2019/9/29 13:53
15 %\fi
16 %\iffalse
17 %<*package>
18 %% \CharacterTable
19 %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
20 %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
21 %% Digits \0\1\2\3\4\5\6\7\8\9
22 %% Exclamation \! Double quote \" Hash (number) \#
23 %% Dollar \$ Percent \% Ampersand \&
24 %% Acute accent \' Left paren \( Right paren \)
25 %% Asterisk \* Plus \+ Comma \,
26 %% Minus \- Point \. Solidus \/
27 %% Colon \: Semicolon \; Less than \<
28 %% Equals \= Greater than \> Question mark \?
29 %% Commercial at \@ Left bracket \[ Backslash \\
30 %% Right bracket \] Circumflex \^ Underscore \_
31 %% Grave accent \` Left brace \{ Vertical bar \|
32 %% Right brace \} Tilde \~}
33 %</package>
34 %\fi
35 % \iffalse
36 % Doc-Source file to use with LaTeX2e
37 % Copyright (C) 2019 Nicola Talbot, all rights reserved.
38 % \fi
39 % \iffalse
40 %<*driver>
41 \documentclass{nlctdoc}
42
43 \iffalse
44 testidx-codedoc.tex is a stub file used by makedtx to create
45 testidx.dtx
46 \fi
47
48 \usepackage{metalogo}
49 \usepackage{fontspec}
50 \setromanfont{FreeSerif}
51 \setsansfont{FreeSans}[Scale=MatchLowercase]
52 \setmonofont{FreeMono}
53 \usepackage[colorlinks,
54 bookmarks,
55 hyperindex=false,
56 pdfauthor={Nicola L.C. Talbot},
57 pdftitle={testidx.sty: Documented code}]{hyperref}
58
59 \RecordChanges
60
61 \renewcommand*{\main}[1]{\hyperpage{#1}}
62
63 \setcounter{IndexColumns}{2}
64
65 \CheckSum{10168}
66
67 \begin{document}
68 \DocInput{testidx.dtx}
69 \end{document}
70 %</driver>
71 %\fi
72 %\MakeShortVerb{"}
73 %\DeleteShortVerb{\|}
74 %
75 % \title{Documented Code For testidx v1.2}
76 % \author{Nicola L.C. Talbot\\[10pt]
77 %Dickimaw Books\\
78 %\url{http://www.dickimaw-books.com/}}
79 %
80 % \date{2019-09-29}
81 % \maketitle
82 %
83 %\tableofcontents
84 %
85 %\section{Introduction}
86 %
87 %This is the documented code for the \styfmt{testidx} package.
88 %See \texttt{testidx-manual.pdf} for the main user guide.
89 %
90 %
91 %\StopEventually{%
92 % \phantomsection
93 % \addcontentsline{toc}{section}{Change History}%
94 % \raggedright
95 % \PrintChanges
96 % \PrintIndex
97 %}
98 %
99 %
100 %
101 %\section{Main Package Code}
102 %\iffalse
103 % \begin{macrocode}
104 %<*testidx.sty>
105 % \end{macrocode}
106 %\fi
107 %\section{Initialisation}
108 % \begin{macrocode}
109 \NeedsTeXFormat{LaTeX2e}
110 \ProvidesPackage{testidx}[2019/09/29 v1.2 (NLCT)]
111 % \end{macrocode}
112 %To avoid as much conflict as possible, this package loads the
113 %bare minimum, so I'm not using useful packages like \styfmt{etoolbox} or
114 %\styfmt{pgffor}. Just load a few necessities:
115 % \begin{macrocode}
116 \RequirePackage{color}
117 % \end{macrocode}
118 %Need to know if we have UTF-8 support:
119 % \begin{macrocode}
120 \RequirePackage{ifxetex}
121 \RequirePackage{ifluatex}
122 % \end{macrocode}
123 %\begin{macro}{\@tstidx@ifxeorlua}
124 %\changes{1.1}{2017-08-11}{new}
125 % \begin{macrocode}
126 \newcommand*{\@tstidx@ifxelua}[2]{%
127 \ifxetex
128 #1%
129 \else
130 \ifluatex
131 #1%
132 \else
133 #2%
134 \fi
135 \fi
136 }
137 % \end{macrocode}
138 %\end{macro}
139 %\begin{macro}{\@@tstidx@ifutfviii}
140 %\changes{1.2}{2019-09-29}{renamed from \cs{@tstidx@ifutfviii}}
141 % \begin{macrocode}
142 \newcommand*{\@@tstidx@ifutfviii}[2]{%
143 \@tstidx@ifxelua{#1}
144 {%
145 \ifx\inputencodingname\@tstidx@utfviii#1\else#2\fi
146 }%
147 }
148 \newcommand*{\@tstidx@utfviii}{utf8}
149 % \end{macrocode}
150 %\end{macro}
151 %\begin{macro}{\@tstidx@ifutfviii}
152 %\changes{1.2}{2019-09-29}{now let to \cs{@@tstidx@ifutfviii}}
153 % \begin{macrocode}
154 \let\@tstidx@ifutfviii\@@tstidx@ifutfviii
155 % \end{macrocode}
156 %\end{macro}
157 %As from 2018, \LaTeX\ now automatically enables UTF-8 support, so provide
158 %an option to use only ASCII in the test:
159 %\changes{1.2}{2019-09-29}{added ascii and noascii options}
160 % \begin{macrocode}
161 \DeclareOption{ascii}{\let\@tstidx@ifutfviii\@secondoftwo}
162 % \end{macrocode}
163 %Provide option to counteract this (if document doesn't support
164 %UTF-8 this won't make a difference):
165 % \begin{macrocode}
166 \DeclareOption{noascii}{\let\@tstidx@ifutfviii\@@tstidx@ifutfviii}
167 % \end{macrocode}
168 %
169 %\begin{macro}{\tstidxprocessasciisort}
170 %The first argument is a control sequence in which to store the
171 %processed sort string.
172 % \begin{macrocode}
173 \newcommand*{\tstidxprocessasciisort}{\tstidxprocessasciisortstrip}
174 % \end{macrocode}
175 %\end{macro}
176 %
177 %\begin{macro}{\testidxStripAccents}
178 % \begin{macrocode}
179 \newcommand*{\testidxStripAccents}{%
180 \renewcommand*{\tstidxprocessasciisort}{\tstidxprocessasciisortstrip}%
181 }
182 % \end{macrocode}
183 %\end{macro}
184 %
185 %\begin{macro}{\testidxNoStripAccents}
186 % \begin{macrocode}
187 \newcommand*{\testidxNoStripAccents}{%
188 \renewcommand*{\tstidxprocessasciisort}{\tstidxprocessasciisortnostrip}%
189 }
190 % \end{macrocode}
191 %\end{macro}
192 %
193 %Option to strip accents from sort key (non-UTF-8).
194 % \begin{macrocode}
195 \DeclareOption{stripaccents}{\testidxStripAccents}
196 % \end{macrocode}
197 %
198 %Leave the accent commands in the sort key (non-UTF-8).
199 % \begin{macrocode}
200 \DeclareOption{nostripaccents}{\testidxNoStripAccents}
201 % \end{macrocode}
202 %
203 %\begin{macro}{\tstidxquote}
204 %Quote character.
205 % \begin{macrocode}
206 \newcommand{\tstidxquote}{\string"}
207 % \end{macrocode}
208 %\end{macro}
209 %This is going to cause a problem for the umlauts if we're not using
210 %UTF-8, so provide a command to protect the double-quote:
211 %\begin{macro}{\tstidxumlaut}
212 % \begin{macrocode}
213 \newcommand*{\tstidxumlaut}{%
214 \expandafter\@gobble\string\\\tstidxquote\string"}
215 % \end{macrocode}
216 %\end{macro}
217 %\begin{macro}{\tstidxsortumlaut}
218 % \begin{macrocode}
219 \newcommand*{\tstidxsortumlaut}{%
220 \expandafter\@gobble\string\\\tstidxquote\string"}
221 % \end{macrocode}
222 %\end{macro}
223 %\begin{macro}{\tstidxsortumlautstrip}
224 % \begin{macrocode}
225 \newcommand*{\tstidxsortumlautstrip}{\@firstofone}
226 % \end{macrocode}
227 %\end{macro}
228 %
229 %\begin{macro}{\testidxGermanOn}
230 %Switch German option on.
231 % \begin{macrocode}
232 \newcommand*{\testidxGermanOn}{%
233 \let\@tstidx@ifgerman\@firstoftwo
234 \renewcommand{\tstidxquote}{+}%
235 \renewcommand*{\tstidxumlaut}{\string"}%
236 \renewcommand*{\tstidxsortumlautstrip}{\string"}%
237 \renewcommand*{\tstidxsortumlaut}{\string"}%
238 }
239 % \end{macrocode}
240 %\end{macro}
241 %
242 %\begin{macro}{\testidxGermanOff}
243 %Switch German option off.
244 % \begin{macrocode}
245 \newcommand*{\testidxGermanOff}{%
246 \let\@tstidx@ifgerman\@secondoftwo
247 \renewcommand{\tstidxquote}{\string"}%
248 \renewcommand*{\tstidxumlaut}{%
249 \expandafter\@gobble\string\\\tstidxquote\string"}%
250 \renewcommand*{\tstidxsortumlautstrip}{\@firstofone}%
251 \renewcommand*{\tstidxsortumlaut}{%
252 \expandafter\@gobble\string\\\tstidxquote\string"}%
253 }
254 % \end{macrocode}
255 %\end{macro}
256 %
257 %\begin{macro}{\@tstidx@ifgerman}
258 % \begin{macrocode}
259 \newcommand*{\@tstidx@ifgerman}[2]{#2}
260 % \end{macrocode}
261 %\end{macro}
262 %User may want to run \app{makeindex} with the \texttt{-g} switch,
263 %so provide \pkgopt{german} option that will accommodate this.
264 % \begin{macrocode}
265 \DeclareOption{german}{\testidxGermanOn}
266 % \end{macrocode}
267 %Also allow \pkgopt{ngerman} to do the same:
268 % \begin{macrocode}
269 \DeclareOption{ngerman}{\testidxGermanOn}
270 % \end{macrocode}
271 %Provide an option to counter-act this:
272 % \begin{macrocode}
273 \DeclareOption{nogerman}{\testidxGermanOff}
274 % \end{macrocode}
275 %
276 %
277 %\begin{macro}{\tstidxprocessutf}
278 %How to deal with UTF-8 words.
279 % \begin{macrocode}
280 \@tstidx@ifxelua
281 {
282 \newcommand*{\tstidxprocessutf}{%
283 \tstidxprocessutfnosanitize
284 }
285 }
286 {
287 \newcommand*{\tstidxprocessutf}{%
288 \tstidxprocessutfsanitize
289 }
290 }
291 % \end{macrocode}
292 %\end{macro}
293 %
294 %\begin{macro}{\@tstidx@ifsanitize}
295 % \begin{macrocode}
296 \newcommand*{\@tstidx@ifsanitize}[2]{#1}
297 % \end{macrocode}
298 %\end{macro}
299 %
300 %\begin{macro}{\testidxSanitizeOn}
301 %Switch the \pkgopt{sanitize} option on.
302 % \begin{macrocode}
303 \newcommand*{\testidxSanitizeOn}{%
304 \let\@tstidx@ifsanitize\@firstoftwo
305 \renewcommand*{\tstidxprocessutf}{%
306 \tstidxprocessutfsanitize
307 }%
308 }
309 % \end{macrocode}
310 %\end{macro}
311 %
312 %\begin{macro}{\testidxSanitizeOff}
313 %Switch the \pkgopt{sanitize} option off.
314 % \begin{macrocode}
315 \newcommand*{\testidxSanitizeOff}{%
316 \let\@tstidx@ifsanitize\@secondoftwo
317 \renewcommand*{\tstidxprocessutf}{%
318 \tstidxprocessutfnosanitize
319 }%
320 }
321 % \end{macrocode}
322 %\end{macro}
323 %Note that as from LaTeX 2019/10/01, UTF-8 characters no longer
324 %expand as they are written to the indexing file. This means that
325 %there won't be a difference if the sanitizing is on or off.
326 %Similarly there's no difference with \XeLaTeX\ and \LuaLaTeX\ since
327 %they natively support UTF-8 and don't make extended characters
328 %active anyway.
329 %
330 %\begin{macro}{\iftestidxdiglyphs}
331 %\changes{1.1}{2017-08-11}{new}
332 % \begin{macrocode}
333 \newif\iftestidxdiglyphs
334 \testidxdiglyphsfalse
335 % \end{macrocode}
336 %\end{macro}
337 %Option to switch on digraph glyphs for the digraph examples:
338 % \begin{macrocode}
339 \DeclareOption{diglyphs}{%
340 \@tstidx@ifutfviii{\testidxdiglyphstrue}%
341 {%
342 \PackageWarning{testidx}{diglyphs option requires UTF-8 support}%
343 }
344 }
345 % \end{macrocode}
346 %Option to switch off digraphs glyphs for the digraph examples (default):
347 % \begin{macrocode}
348 \DeclareOption{nodiglyphs}{\testidxdiglyphsfalse}
349 % \end{macrocode}
350 %
351 %\begin{macro}{\iftestidxprefix}
352 %\changes{1.1}{2017-08-11}{new}
353 % \begin{macrocode}
354 \newif\iftestidxprefix
355 \testidxprefixtrue
356 % \end{macrocode}
357 %\end{macro}
358 %Option to switch on sort prefixes (default):
359 % \begin{macrocode}
360 \DeclareOption{prefix}{\testidxprefixtrue}
361 % \end{macrocode}
362 %Option to switch off prefixes:
363 % \begin{macrocode}
364 \DeclareOption{noprefix}{\testidxprefixfalse}
365 % \end{macrocode}
366 %
367 %Option to switch on the UTF-8 sanitization (irrespective of engine):
368 % \begin{macrocode}
369 \DeclareOption{sanitize}{\testidxSanitizeOn}
370 % \end{macrocode}
371 %
372 %Option to switch off the UTF-8 sanitization (irrespective of engine):
373 % \begin{macrocode}
374 \DeclareOption{nosanitize}{\testidxSanitizeOff}
375 % \end{macrocode}
376 %
377 %Option to show the actual indexing argument.
378 %\begin{macro}{\iftestidxverbose}
379 % \begin{macrocode}
380 \newif\iftestidxverbose
381 \testidxverbosefalse
382 \DeclareOption{verbose}{\testidxverbosetrue}
383 \DeclareOption{noverbose}{\testidxverbosefalse}
384 % \end{macrocode}
385 %\end{macro}
386 %
387 %Option to hide the markers.
388 %\begin{macro}{\iftestidxshowmarks}
389 % \begin{macrocode}
390 \newif\iftestidxshowmarks
391 \testidxshowmarkstrue
392 \DeclareOption{showmarks}{\testidxshowmarkstrue}
393 \DeclareOption{noshowmarks}{\testidxshowmarksfalse}
394 \DeclareOption{hidemarks}{\testidxshowmarksfalse}
395 % \end{macrocode}
396 %\end{macro}
397 %
398 %Option to skip the test encaps.
399 %\begin{macro}{\if@tstidx@use@encaps}
400 % \begin{macrocode}
401 \newif\if@tstidx@use@encaps
402 \@tstidx@use@encapstrue
403 \DeclareOption{testencaps}{\@tstidx@use@encapstrue}
404 \DeclareOption{notestencaps}{\@tstidx@use@encapsfalse}
405 % \end{macrocode}
406 %\end{macro}
407 %
408 %Process options:
409 % \begin{macrocode}
410 \ProcessOptions
411 % \end{macrocode}
412 %Find out if various packages have been loaded.
413 %\begin{macro}{\@tstidx@ifamsmath}
414 % \begin{macrocode}
415 \AtBeginDocument{%
416 \@ifpackageloaded{amsmath}%
417 {\let\@tstidx@ifamsmath\@firstoftwo}%
418 {\let\@tstidx@ifamsmath\@secondoftwo}%
419 \@ifpackageloaded{amssymb}%
420 {\let\@tstidx@ifamssymb\@firstoftwo}%
421 {\let\@tstidx@ifamssymb\@secondoftwo}%
422 % \end{macrocode}
423 %\end{macro}
424 %\begin{macro}{\@tstidx@ifinputenc}
425 % \begin{macrocode}
426 \@ifpackageloaded{inputenc}
427 {
428 \let\@tstidx@if@inputenc\@firstoftwo
429 }%
430 {%
431 \ifxetex
432 \let\@tstidx@if@inputenc\@firstoftwo
433 \else
434 \ifluatex
435 \let\@tstidx@if@inputenc\@firstoftwo
436 \else
437 \let\@tstidx@if@inputenc\@secondoftwo
438 \fi
439 \fi
440 }%
441 % \end{macrocode}
442 %\end{macro}
443 %\begin{macro}{\@tstidx@if@notOT@ne}
444 % Some of the accent commands don't work with the default OT1
445 % encoding, so provide a convenient test.
446 % \begin{macrocode}
447 \ifxetex
448 \let\@tstidx@if@notOT@ne\@firstoftwo
449 \else
450 \ifluatex
451 \let\@tstidx@if@notOT@ne\@firstoftwo
452 \else
453 \newcommand*{\@tstidx@OT@ne}{OT1}%
454 \edef\@tstidx@enc{\encodingdefault}%
455 \ifx\@tstidx@OT@ne\@tstidx@enc
456 \let\@tstidx@if@notOT@ne\@secondoftwo
457 \else
458 \let\@tstidx@if@notOT@ne\@firstoftwo
459 \fi
460 \fi
461 \fi
462 }
463 % \end{macrocode}
464 %\end{macro}
465 %
466 %\section{Markup Commands}
467 % String is used in case any of these characters have been made
468 % active.
469 %\begin{macro}{\tstidxactual}
470 %Actual character.
471 % \begin{macrocode}
472 \newcommand{\tstidxactual}{\string @}
473 % \end{macrocode}
474 %\end{macro}
475 %\begin{macro}{\tstidxlevel}
476 %Level character.
477 % \begin{macrocode}
478 \newcommand{\tstidxlevel}{\string!}
479 % \end{macrocode}
480 %\end{macro}
481 %\begin{macro}{\tstidxencap}
482 %Encap character.
483 % \begin{macrocode}
484 \newcommand{\tstidxencap}{\string|}
485 % \end{macrocode}
486 %\end{macro}
487 %\begin{macro}{\tstidxopenrange}
488 %Start range character.
489 % \begin{macrocode}
490 \newcommand{\tstidxopenrange}{\string(}
491 % \end{macrocode}
492 %\end{macro}
493 %\begin{macro}{\tstidxcloserange}
494 %End range character.
495 % \begin{macrocode}
496 \newcommand{\tstidxcloserange}{\string)}
497 % \end{macrocode}
498 %\end{macro}
499 %Some of the examples use words with extended Latin characters.
500 %Provide a way of simulating the user explicitly writing, for
501 %example, \verb|\index{\""Angelholm}|.
502 %\begin{macro}{\tstidxprocessascii}
503 %The first argument is a control sequence in which to store the
504 %processed string.
505 % \begin{macrocode}
506 \newcommand*{\tstidxprocessascii}[2]{%
507 {%
508 \let\"\tstidxumlaut
509 \def\'{\string\'}%
510 \def\`{\string\`}%
511 \def\.{\string\.}%
512 \def\={\string\=}%
513 \def\^{\string\^}%
514 \def\~{\string\~}%
515 \def\c{\string\c}%
516 \def\r{\string\r}%
517 \def\b{\string\b}%
518 \def\d{\string\d}%
519 \def\H{\string\H}%
520 \def\k{\string\k}%
521 \def\u{\string\u}%
522 \def\v{\string\v}%
523 \def\O{\string\O\space}%
524 \def\o{\string\o\space}%
525 \def\l{\string\l\space}%
526 \def\L{\string\L\space}%
527 \def\i{\string\i\space}%
528 \def\AA{\string\AA\space}%
529 \def\aa{\string\aa\space}%
530 \def\ae{\string\ae\space}%
531 \def\AE{\string\AE\space}%
532 \def\oe{\string\oe\space}%
533 \def\OE{\string\OE\space}%
534 \def\ss{\string\ss\space}%
535 \def\SS{\string\SS\space}%
536 \def\th{\string\th\space}%
537 \def\TH{\string\TH\space}%
538 \def\dh{\string\dh\space}%
539 \def\DH{\string\DH\space}%
540 \def\dj{\string\dj\space}%
541 \def\DJ{\string\DJ\space}%
542 \def\ng{\string\ng\space}%
543 \def\NG{\string\NG\space}%
544 \protected@xdef#1{#2}%
545 }%
546 }
547 % \end{macrocode}
548 %\end{macro}
549 %\begin{macro}{\tstidxprocessasciisortnostrip}
550 % \begin{macrocode}
551 \newcommand*{\tstidxprocessasciisortnostrip}[2]{%
552 {%
553 \let\"\tstidxsortumlaut
554 \protected@xdef#1{#2}%
555 }%
556 }
557 % \end{macrocode}
558 %\end{macro}
559 %
560 %\begin{macro}{\tstidxprocessasciisortstrip}
561 % \begin{macrocode}
562 \newcommand*{\tstidxprocessasciisortstrip}[2]{%
563 {%
564 \let\"\tstidxsortumlautstrip
565 \let\'\@firstofone
566 \let\`\@firstofone
567 \let\.\@firstofone
568 \let\=\@firstofone
569 \let\^\@firstofone
570 \let\~\@firstofone
571 \let\c\@firstofone
572 \let\r\@firstofone
573 \let\b\@firstofone
574 \let\d\@firstofone
575 \let\H\@firstofone
576 \let\k\@firstofone
577 \let\u\@firstofone
578 \let\v\@firstofone
579 \def\O{O}%
580 \def\o{o}%
581 \def\l{l}%
582 \def\L{L}%
583 \def\i{i}%
584 \def\AA{A}%
585 \def\aa{a}%
586 \def\ae{ae}%
587 \def\AE{AE}%
588 \def\oe{oe}%
589 \def\OE{OE}%
590 \def\ss{ss}%
591 \def\SS{SS}%
592 \def\th{th}%
593 \def\TH{TH}%
594 \def\dh{dh}%
595 \def\DH{DH}%
596 \def\dj{dj}%
597 \def\DJ{DJ}%
598 \def\ng{ng}%
599 \def\NG{NG}%
600 \protected@xdef#1{#2}%
601 }%
602 }
603 % \end{macrocode}
604 %\end{macro}
605 %
606 %\begin{macro}{\tstidxprocessutfsanitize}
607 %Sanitize UTF-8 strings.
608 % \begin{macrocode}
609 \newcommand*{\tstidxprocessutfsanitize}[2]{%
610 \def#1{#2}%
611 \@onelevel@sanitize#1%
612 }
613 % \end{macrocode}
614 %\end{macro}
615 %
616 %\begin{macro}{\tstidxprocessutfnosanitize}
617 %Don't sanitize UTF-8 strings.
618 % \begin{macrocode}
619 \newcommand*{\tstidxprocessutfnosanitize}[2]{%
620 \def#1{#2}%
621 }
622 % \end{macrocode}
623 %\end{macro}
624 %
625 %
626 %\begin{macro}{\tstidxencaptext}
627 % Wrap text in the command corresponding to the given encap.
628 % \begin{macrocode}
629 \newcommand*{\tstidxencaptext}[2]{%
630 \@ifundefined{#1}%
631 {%
632 \PackageError{testidx}{Encap value `#1' doesn't correspond
633 to a known command}{}%
634 }%
635 {%
636 \csname#1\endcsname{#2}%
637 }%
638 }
639 % \end{macrocode}
640 %\end{macro}
641 %
642 %\begin{macro}{\tstidxtext}
643 %Identify text next to the index command. This will also be wrapped
644 %around the encap value if supplied.
645 % \begin{macrocode}
646 \newcommand*{\tstidxtext}[1]{\textcolor[gray]{0.3}{#1}}
647 % \end{macrocode}
648 %\end{macro}
649 %
650 %Provide three different encap values for testing:
651 %\begin{macro}{\tstidxencapi}
652 % \begin{macrocode}
653 \newcommand*{\tstidxencapi}[1]{\textcolor{blue}{#1}}
654 % \end{macrocode}
655 %\end{macro}
656 %\begin{macro}{\tstidxencapii}
657 % \begin{macrocode}
658 \newcommand*{\tstidxencapii}[1]{\textcolor{cyan}{#1}}
659 % \end{macrocode}
660 %\end{macro}
661 %\begin{macro}{\tstidxencapiii}
662 % \begin{macrocode}
663 \newcommand*{\tstidxencapiii}[1]{\textcolor{magenta}{#1}}
664 % \end{macrocode}
665 %\end{macro}
666 %\begin{macro}{\tstidxensuretext}
667 %Ensure in text mode.
668 % \begin{macrocode}
669 \newcommand*{\tstidxensuretext}[1]{%
670 \ifmmode
671 \@tstidx@ifamsmath{\text{#1}}{\mbox{#1}}%
672 \else
673 #1%
674 \fi
675 }
676 % \end{macrocode}
677 %\end{macro}
678 %Markers to show where the \cs{index} commands are used.
679 %Preferable to have markers that adjust to font size, and only use
680 %commands provided by \LaTeX\ kernel to reduce package requirements.
681 %\begin{macro}{\tstidxmarker}
682 %No range or cross-reference. I initially used
683 %\cs{textperiodcentered} for the marker, but some fonts make it a
684 %bit too spacey for this purpose.
685 % \begin{macrocode}
686 \newcommand*{\tstidxmarker}{%
687 \tstidxensuretext{\raisebox{.65ex}{.}}%
688 }
689 % \end{macrocode}
690 %\end{macro}
691 %\begin{macro}{\tstidxsubmarker}
692 %Sub-entry.
693 % \begin{macrocode}
694 \newcommand*{\tstidxsubmarker}{%
695 \tstidxensuretext{\strut\smash{\raisebox{-1.5ex}{\v{}}}}%
696 }
697 % \end{macrocode}
698 %\end{macro}
699 %\begin{macro}{\tstidxsubsubmarker}
700 %Sub-sub-entry.
701 % \begin{macrocode}
702 \newcommand*{\tstidxsubsubmarker}{%
703 \tstidxensuretext{\strut\makebox[0pt][l]{\smash{\raisebox{-1ex}{\v{}}}}%
704 \smash{\raisebox{-1.5ex}{\v{}}}}%
705 }
706 % \end{macrocode}
707 %\end{macro}
708 %\begin{macro}{\tstidxopenmarker}
709 %Start of a range.
710 % \begin{macrocode}
711 \newcommand*{\tstidxopenmarker}{%
712 \tstidxensuretext
713 {%
714 \setlength{\unitlength}{1ex}%
715 \begin{picture}(.5,2)
716 \put(\@halfwidth\@gobble,0){\line(0,1){2}}
717 \put(0,2){\line(1,0){.5}}
718 \end{picture}%
719 \hspace{\@halfwidth}%
720 }%
721 }
722 % \end{macrocode}
723 %\end{macro}
724 %\begin{macro}{\tstidxclosemarker}
725 %End of a range.
726 % \begin{macrocode}
727 \newcommand*{\tstidxclosemarker}{%
728 \tstidxensuretext
729 {%
730 \setlength{\unitlength}{1ex}%
731 \begin{picture}(.5,2)
732 \put(\@halfwidth\@gobble,0){\line(1,0){.5}}
733 \put(.5,0){\line(0,1){2}}
734 \end{picture}%
735 \hspace{\@halfwidth}%
736 }%
737 }
738 % \end{macrocode}
739 %\end{macro}
740 %\begin{macro}{\tstidxopensubmarker}
741 %Start of a range for sub-entries.
742 % \begin{macrocode}
743 \newcommand*{\tstidxopensubmarker}{%
744 \tstidxensuretext
745 {%
746 \setlength{\unitlength}{1ex}%
747 \begin{picture}(.4,1.6)
748 \put(\@halfwidth\@gobble,0){\line(0,1){1.6}}
749 \put(0,1.6){\line(1,0){.4}}
750 \end{picture}%
751 \hspace{\@halfwidth}%
752 }%
753 }
754 % \end{macrocode}
755 %\end{macro}
756 %\begin{macro}{\tstidxclosesubmarker}
757 %End of a range for sub-entries.
758 % \begin{macrocode}
759 \newcommand*{\tstidxclosesubmarker}{%
760 \tstidxensuretext
761 {%
762 \setlength{\unitlength}{1ex}%
763 \begin{picture}(.4,1.6)
764 \put(\@halfwidth\@gobble,0){\line(1,0){.4}}
765 \put(.4,0){\line(0,1){1.6}}
766 \end{picture}%
767 \hspace{\@halfwidth}%
768 }%
769 }
770 % \end{macrocode}
771 %\end{macro}
772 %\begin{macro}{\tstidxopensubsubmarker}
773 %Start of a range for sub-sub-entries.
774 % \begin{macrocode}
775 \newcommand*{\tstidxopensubsubmarker}{%
776 \tstidxensuretext
777 {%
778 \setlength{\unitlength}{1ex}%
779 \begin{picture}(.3,1.2)
780 \put(\@halfwidth\@gobble,0){\line(0,1){1.2}}
781 \put(0,1.2){\line(1,0){.3}}
782 \end{picture}%
783 \hspace{\@halfwidth}%
784 }%
785 }
786 % \end{macrocode}
787 %\end{macro}
788 %\begin{macro}{\tstidxclosesubsubmarker}
789 %End of a range for sub-sub-entries.
790 % \begin{macrocode}
791 \newcommand*{\tstidxclosesubsubmarker}{%
792 \tstidxensuretext
793 {%
794 \setlength{\unitlength}{1ex}%
795 \begin{picture}(.3,1.2)
796 \put(\@halfwidth\@gobble,0){\line(1,0){.3}}
797 \put(.3,0){\line(0,1){1.2}}
798 \end{picture}%
799 \hspace{\@halfwidth}%
800 }%
801 }
802 % \end{macrocode}
803 %\end{macro}
804 %\begin{macro}{\tstidxseemarker}
805 %Cross-reference.
806 % \begin{macrocode}
807 \newcommand*{\tstidxseemarker}{\^{}}
808 % \end{macrocode}
809 %\end{macro}
810 %\begin{macro}{\tstidxseeref}
811 %Cross-references are identified with the marker and with a marginal
812 %note with the term being indexed and the argument of the \qt{see} encap.
813 % \begin{macrocode}
814 \newcommand*{\tstidxseeref}[3]{\tstidxseemarker
815 \marginpar{\strut\raggedright\footnotesize
816 \normalcolor\tstidxseemarker#1, \csname#2\endcsname{#3}{}}%
817 }
818 % \end{macrocode}
819 %\end{macro}
820 %
821 %\begin{macro}{\tstidxsubseemarker}
822 %Cross-reference.
823 % \begin{macrocode}
824 \newcommand*{\tstidxsubseemarker}{%
825 \tstidxensuretext{\makebox[0pt][l]{\tstidxsubmarker}%
826 \tstidxseemarker}%
827 }
828 % \end{macrocode}
829 %\end{macro}
830 %\begin{macro}{\tstidxsubseeref}
831 %Cross-references are identified with the marker and with a marginal
832 %note with the term being indexed and the argument of the \qt{see} encap.
833 % \begin{macrocode}
834 \newcommand*{\tstidxsubseeref}[4]{\tstidxsubseemarker
835 \marginpar{\strut\raggedright\footnotesize
836 \normalcolor\tstidxsubseemarker#1\tstidxsubseesep#2, \csname#3\endcsname{#4}{}}%
837 }
838 % \end{macrocode}
839 %\end{macro}
840 %\begin{macro}{\tstidxsubseesep}
841 %Separator used in the above.
842 % \begin{macrocode}
843 \newcommand*{\tstidxsubseesep}{\,$\triangleright$\,}
844 % \end{macrocode}
845 %\end{macro}
846 %
847 %\begin{macro}{\tstindex}
848 % Allow user to change \cs{index} to something else. For example,
849 % add an optional argument if multiple indexes are present.
850 % \begin{macrocode}
851 \newcommand*{\tstindex}{\index}
852 % \end{macrocode}
853 %\end{macro}
854 %\begin{macro}{\@tstindex}
855 % \begin{macrocode}
856 \newcommand*{\@tstindex}[1]{%
857 \iftestidxverbose
858 \def\@tstindex@arg{#1}%
859 \@onelevel@sanitize\@tstindex@arg
860 \testidxverbosefmt{\@tstindex@arg}%
861 \fi
862 \tstindex{#1}%
863 }
864 % \end{macrocode}
865 %\end{macro}
866 %\begin{macro}{\testidxverbosefmt}
867 % \begin{macrocode}
868 \newcommand*{\testidxverbosefmt}[1]{%
869 \expandafter\def\expandafter\@tstidx@tmp\expandafter{\tstindex}%
870 \@onelevel@sanitize\@tstidx@tmp
871 \tstidxensuretext{%
872 \discretionary{}{}{}%
873 {\footnotesize\texttt{\@tstidx@tmp
874 \expandafter\@gobble\string\{#1\expandafter\@gobble\string\}}}%
875 \discretionary{}{}{}%
876 }%
877 }
878 % \end{macrocode}
879 %\end{macro}
880 %
881 %\begin{macro}{\tstidxqt}
882 %Nothing to do with indexing, but just provides semantic markup for
883 %quotes.
884 % \begin{macrocode}
885 \newcommand*{\tstidxqt}[1]{``#1''}
886 % \end{macrocode}
887 %\end{macro}
888 %\begin{macro}{\tstidxdash}
889 % \begin{macrocode}
890 \newcommand*{\tstidxdash}{\,---\,}
891 % \end{macrocode}
892 %\end{macro}
893 %\begin{macro}{\tstidxfootnote}
894 % \begin{macrocode}
895 \newcommand*{\tstidxfootnote}{\footnote}
896 % \end{macrocode}
897 %\end{macro}
898 %
899 %\section{Convenience Commands}
900 %These commands are provided for conveniently marking various
901 %aspects of the dummy text.
902 %\begin{macro}{\tstidxfmtpost}
903 %\begin{definition}
904 %\cs{tstidxfmtpost}\marg{text}\marg{fmt cs}\marg{encap}
905 %\end{definition}
906 %Index an entry that needs a formatting command.
907 % \begin{macrocode}
908 \newcommand*{\tstidxfmtpost}[3]{%
909 \tstindexpost[#1]{\protect#2{#1}}[#1]{#3}{#2{#1}}%
910 }
911 % \end{macrocode}
912 %\end{macro}
913 %\begin{macro}{\tstidxfmtopenpost}
914 %\begin{definition}
915 %\cs{tstidxfmtopenpost}\marg{text}\marg{fmt cs}\marg{encap}
916 %\end{definition}
917 %Index an entry that needs a formatting command.
918 % \begin{macrocode}
919 \newcommand*{\tstidxfmtopenpost}[3]{%
920 \tstindexopenpost[#1]{\protect#2{#1}}{#3}{#2{#1}}%
921 }
922 % \end{macrocode}
923 %\end{macro}
924 %\begin{macro}{\tstidxfmtclosepost}
925 %\begin{definition}
926 %\cs{tstidxfmtclosepost}\marg{text}\marg{fmt cs}\marg{encap}
927 %\end{definition}
928 %Index an entry that needs a formatting command.
929 % \begin{macrocode}
930 \newcommand*{\tstidxfmtclosepost}[3]{%
931 \tstindexclosepost[#1]{\protect#2{#1}}{#3}{#2{#1}}%
932 }
933 % \end{macrocode}
934 %\end{macro}
935 %\begin{macro}{\tstidxfmtpre}
936 %\begin{definition}
937 %\cs{tstidxfmtpre}\marg{text}\marg{fmt cs}\marg{encap}
938 %\end{definition}
939 %Index an entry that needs a formatting command.
940 % \begin{macrocode}
941 \newcommand*{\tstidxfmtpre}[3]{%
942 \tstindexpre[#1]{\protect#2{#1}}{#3}{#2{#1}}%
943 }
944 % \end{macrocode}
945 %\end{macro}
946 %\begin{macro}{\tstidxfmtopenpre}
947 %\begin{definition}
948 %\cs{tstidxfmtopenpre}\marg{text}\marg{fmt cs}\marg{encap}
949 %\end{definition}
950 %Index an entry that needs a formatting command.
951 % \begin{macrocode}
952 \newcommand*{\tstidxfmtopenpre}[3]{%
953 \tstindexopenpre[#1]{\protect#2{#1}}{#3}{#2{#1}}%
954 }
955 % \end{macrocode}
956 %\end{macro}
957 %\begin{macro}{\tstidxfmtclosepre}
958 %\begin{definition}
959 %\cs{tstidxfmtclosepre}\marg{text}\marg{fmt cs}\marg{encap}
960 %\end{definition}
961 %Index an entry that needs a formatting command.
962 % \begin{macrocode}
963 \newcommand*{\tstidxfmtclosepre}[3]{%
964 \tstindexclosepre[#1]{\protect#2{#1}}{#3}{#2{#1}}%
965 }
966 % \end{macrocode}
967 %\end{macro}
968 %
969 %\begin{macro}{\tstidxutf}
970 %\begin{definition}
971 %\cs{tstidxutf}\oarg{label}\marg{display}\marg{ascii}\marg{utf8}\marg{encap}\marg{idx cs}
972 %\end{definition}
973 %Index a word with UTF-8 characters.
974 % \begin{macrocode}
975 \newcommand*{\tstidxutf}{%
976 \@ifnextchar[{\@tstidxutf}{\@tstidxutf[]}%
977 }
978 \def\@tstidxutf[#1]#2#3#4#5#6{%
979 \def\@tstidx@text{#2}%
980 \@tstidx@ifutfviii
981 {%
982 \ifx\@tstidx@text\@empty
983 \def\@tstidx@text{#4}%
984 \fi
985 \tstidxprocessutf{\@tstidx@utf}{#4}%
986 \protected@edef\@tstidx@doidx{%
987 \noexpand#6{\unexpanded\expandafter{\@tstidx@utf}}[#1]{#5}%
988 {\@tstidx@text}%
989 }%
990 }%
991 {%
992 \ifx\@tstidx@text\@empty
993 \def\@tstidx@text{#3}%
994 \fi
995 \tstidxprocessascii{\@tstidx@ascii}{#3}%
996 \tstidxprocessasciisort{\@tstidx@asciisort}{#3}%
997 \protected@edef\@tstidx@doidx{%
998 \noexpand#6[\unexpanded\expandafter{\@tstidx@asciisort}]%
999 {\unexpanded\expandafter{\@tstidx@ascii}}[#1]{#5}%
1000 {\@tstidx@text}%
1001 }%
1002 }%
1003 \@tstidx@doidx
1004 }
1005 % \end{macrocode}
1006 %\end{macro}
1007 %
1008 %\begin{macro}{\tstidxsubutf}
1009 %\begin{definition}
1010 %\cs{tstidxsubutf}\marg{display}\marg{ascii}\marg{utf8}\marg{sub-ascii}\oarg{label}\marg{sub-utf8}\marg{encap}\marg{idx cs}
1011 %\end{definition}
1012 %First level sub-entry.
1013 % \begin{macrocode}
1014 \newcommand*{\tstidxsubutf}[4]{%
1015 \@ifnextchar[{\@tstidxsubutf{#1}{#2}{#3}{#4}}%
1016 {\@tstidxsubutf{#1}{#2}{#3}{#4}[]}%
1017 }
1018 \def\@tstidxsubutf#1#2#3#4[#5]#6#7#8{%
1019 \def\@tstidx@text{#1}%
1020 \@tstidx@ifutfviii
1021 {%
1022 \ifx\@tstidx@text\@empty
1023 \def\@tstidx@text{#3}%
1024 \fi
1025 \tstidxprocessutf{\@tstidx@utf}{#3}%
1026 \tstidxprocessutf{\@tstidx@subutf}{#6}%
1027 \protected@edef\@tstidx@doidx{%
1028 \noexpand#8%
1029 {\unexpanded\expandafter{\@tstidx@utf}}%
1030 {\unexpanded\expandafter{\@tstidx@subutf}}%
1031 [#5]%
1032 {#7}%
1033 {\@tstidx@text}%
1034 }%
1035 }%
1036 {%
1037 \ifx\@tstidx@text\@empty
1038 \def\@tstidx@text{#2}%
1039 \fi
1040 \tstidxprocessascii{\@tstidx@ascii}{#2}%
1041 \tstidxprocessasciisort{\@tstidx@asciisort}{#2}%
1042 \tstidxprocessascii{\@tstidx@subascii}{#4}%
1043 \tstidxprocessasciisort{\@tstidx@subasciisort}{#4}%
1044 \protected@edef\@tstidx@doidx{%
1045 \noexpand#8%
1046 [\unexpanded\expandafter{\@tstidx@asciisort}]%
1047 {\unexpanded\expandafter{\@tstidx@ascii}}%
1048 [\unexpanded\expandafter{\@tstidx@subasciisort}]%
1049 {\unexpanded\expandafter{\@tstidx@subascii}}%
1050 [#5]%
1051 {#7}%
1052 {\@tstidx@text}%
1053 }%
1054 }%
1055 \@tstidx@doidx
1056 }
1057 % \end{macrocode}
1058 %\end{macro}
1059 %
1060 %\begin{macro}{\tstidxutfpost}
1061 %\begin{definition}
1062 %\cs{tstidxutfpost}\oarg{display}\marg{ascii}\oarg{label}\marg{utf8}\marg{encap}
1063 %\end{definition}
1064 %Index a word with UTF-8 characters.
1065 % \begin{macrocode}
1066 \newcommand*{\tstidxutfpost}[2][]{%
1067 \@ifnextchar[{\@tstidxutfpost{#1}{#2}}{\@tstidxutfpost{#1}{#2}[]}%
1068 }
1069 % \end{macrocode}
1070 %\end{macro}
1071 %
1072 %\begin{macro}{\@tstidxutfpost}
1073 % \begin{macrocode}
1074 \def\@tstidxutfpost#1#2[#3]#4#5{%
1075 \tstidxutf[#3]{#1}{#2}{#4}{#5}{\tstindexpost}%
1076 }
1077 % \end{macrocode}
1078 %\end{macro}
1079 %
1080 %\begin{macro}{\tstidxutfopenpost}
1081 %\begin{definition}
1082 %\cs{tstidxutfopenpost}\oarg{display}\marg{ascii}\marg{utf8}\marg{encap}
1083 %\end{definition}
1084 %Index a word with UTF-8 characters.
1085 % \begin{macrocode}
1086 \newcommand*{\tstidxutfopenpost}[4][]{%
1087 \tstidxutf{#1}{#2}{#3}{#4}{\tstindexopenpost}%
1088 }
1089 % \end{macrocode}
1090 %\end{macro}
1091 %
1092 %\begin{macro}{\tstidxutfclosepost}
1093 %\begin{definition}
1094 %\cs{tstidxutfclosepost}\oarg{display}\marg{ascii}\marg{utf8}\marg{encap}
1095 %\end{definition}
1096 %Index a word with UTF-8 characters.
1097 % \begin{macrocode}
1098 \newcommand*{\tstidxutfclosepost}[4][]{%
1099 \tstidxutf{#1}{#2}{#3}{#4}{\tstindexclosepost}%
1100 }
1101 % \end{macrocode}
1102 %\end{macro}
1103 %
1104 %\begin{macro}{\tstidxutfpre}
1105 %\begin{definition}
1106 %\cs{tstidxutfpre}\oarg{display}\marg{ascii}\oarg{label}\marg{utf8}\marg{encap}
1107 %\end{definition}
1108 %Index a word with UTF-8 characters.
1109 % \begin{macrocode}
1110 \newcommand*{\tstidxutfpre}[2][]{%
1111 \@ifnextchar[{\@tstidxutfpre{#1}{#2}}{\@tstidxutfpre{#1}{#2}[#2]}%
1112 }
1113 \def\@tstidxutfpre#1#2[#3]#4#5{%
1114 \tstidxutf[#3]{#1}{#2}{#4}{#5}{\tstindexpre}%
1115 }
1116 % \end{macrocode}
1117 %\end{macro}
1118 %
1119 %\begin{macro}{\tstidxutfopenpre}
1120 %\begin{definition}
1121 %\cs{tstidxutfopenpre}\oarg{display}\marg{ascii}\marg{utf8}\marg{encap}
1122 %\end{definition}
1123 %Index a word with UTF-8 characters.
1124 % \begin{macrocode}
1125 \newcommand*{\tstidxutfopenpre}[4][]{%
1126 \tstidxutf{#1}{#2}{#3}{#4}{\tstindexopenpre}%
1127 }
1128 % \end{macrocode}
1129 %\end{macro}
1130 %
1131 %\begin{macro}{\tstidxutfclosepre}
1132 %\begin{definition}
1133 %\cs{tstidxutfclosepre}\oarg{display}\marg{ascii}\marg{utf8}\marg{encap}
1134 %\end{definition}
1135 %Index a word with UTF-8 characters.
1136 % \begin{macrocode}
1137 \newcommand*{\tstidxutfclosepre}[4][]{%
1138 \tstidxutf{#1}{#2}{#3}{#4}{\tstindexclosepre}%
1139 }
1140 % \end{macrocode}
1141 %\end{macro}
1142 %
1143 %\begin{macro}{\tstidxutfsubpost}
1144 %\begin{definition}
1145 %\cs{tstidxutfsubpost}\oarg{display}\marg{ascii}\marg{utf8}\marg{sub-ascii}\oarg{label}\marg{sub-utf8}\marg{encap}
1146 %\end{definition}
1147 %Sub-entry.
1148 % \begin{macrocode}
1149 \newcommand*{\tstidxutfsubpost}[4][]{%
1150 \@ifnextchar[{\@tstidxutfsubpost{#1}{#2}{#3}{#4}}%
1151 {\@tstidxutfsubpost{#1}{#2}{#3}{#4}[]}%
1152 }
1153 \def\@tstidxutfsubpost#1#2#3#4[#5]#6#7{%
1154 \tstidxsubutf{#1}{#2}{#3}{#4}[#5]{#6}{#7}{\tstsubindexpost}%
1155 }
1156 % \end{macrocode}
1157 %\end{macro}
1158 %
1159 %\begin{macro}{\tstidxutfsubopenpost}
1160 %\begin{definition}
1161 %\cs{tstidxutfsubopenpost}\oarg{display}\marg{ascii}\marg{utf8}\marg{sub-ascii}\marg{sub-utf8}\marg{encap}
1162 %\end{definition}
1163 %Sub-entry.
1164 % \begin{macrocode}
1165 \newcommand*{\tstidxutfsubopenpost}[6][]{%
1166 \tstidxsubutf{#1}{#2}{#3}{#4}{#5}{#6}{\tstsubindexopenpost}%
1167 }
1168 % \end{macrocode}
1169 %\end{macro}
1170 %
1171 %\begin{macro}{\tstidxutfsubclosepost}
1172 %\begin{definition}
1173 %\cs{tstidxutfsubclosepost}\oarg{display}\marg{ascii}\marg{utf8}\marg{sub-ascii}\marg{sub-utf8}\marg{encap}
1174 %\end{definition}
1175 %Sub-entry.
1176 % \begin{macrocode}
1177 \newcommand*{\tstidxutfsubclosepost}[6][]{%
1178 \tstidxsubutf{#1}{#2}{#3}{#4}{#5}{#6}{\tstsubindexclosepost}%
1179 }
1180 % \end{macrocode}
1181 %\end{macro}
1182 %
1183 %\begin{macro}{\tstidxutfsubpre}
1184 %\begin{definition}
1185 %\cs{tstidxutfsubpre}\oarg{display}\marg{ascii}\marg{utf8}\marg{sub-ascii}\marg{sub-utf8}\marg{encap}
1186 %\end{definition}
1187 %Sub-entry.
1188 % \begin{macrocode}
1189 \newcommand*{\tstidxutfsubpre}[6][]{%
1190 \tstidxsubutf{#1}{#2}{#3}{#4}{#5}{#6}{\tstsubindexpre}%
1191 }
1192 % \end{macrocode}
1193 %\end{macro}
1194 %
1195 %\begin{macro}{\tstidxutfsubopenpre}
1196 %\begin{definition}
1197 %\cs{tstidxutfsubopenpre}\oarg{display}\marg{ascii}\marg{utf8}\marg{sub-ascii}\marg{sub-utf8}\marg{encap}
1198 %\end{definition}
1199 %Sub-entry.
1200 % \begin{macrocode}
1201 \newcommand*{\tstidxutfsubopenpre}[6][]{%
1202 \tstidxsubutf{#1}{#2}{#3}{#4}{#5}{#6}{\tstsubindexopenpre}%
1203 }
1204 % \end{macrocode}
1205 %\end{macro}
1206 %
1207 %\begin{macro}{\tstidxutfsubclosepre}
1208 %\begin{definition}
1209 %\cs{tstidxutfsubclosepre}\oarg{display}\marg{ascii}\marg{utf8}\marg{sub-ascii}\marg{sub-utf8}\marg{encap}
1210 %\end{definition}
1211 %Sub-entry.
1212 % \begin{macrocode}
1213 \newcommand*{\tstidxutfsubclosepre}[6][]{%
1214 \tstidxsubutf{#1}{#2}{#3}{#4}{#5}{#6}{\tstsubindexclosepre}%
1215 }
1216 % \end{macrocode}
1217 %\end{macro}
1218 %
1219 %\begin{macro}{\tstidxcsfmt}
1220 % Display a control sequence.
1221 % \begin{macrocode}
1222 \newcommand*{\tstidxcsfmt}[1]{\texttt{\char`\\#1}}
1223 % \end{macrocode}
1224 %\end{macro}
1225 %
1226 %\begin{macro}{\tstidxcs}
1227 % Display and index a control sequence. The optional argument is the encap
1228 % \begin{macrocode}
1229 \if@tstidx@use@encaps
1230 \newcommand*{\tstidxcs}[2][tstidxencapi]{\@tstidxcs{#1}{#2}}
1231 \else
1232 \newcommand*{\tstidxcs}[2][]{\@tstidxcs{#1}{#2}}
1233 \fi
1234 \newcommand*{\@tstidxcs}[2]{\tstidxfmtpost{#2}{\tstidxcsfmt}{#1}}
1235 % \end{macrocode}
1236 %\end{macro}
1237 %
1238 %\begin{macro}{\tstidxopencs}
1239 %As above but starts a range.
1240 % \begin{macrocode}
1241 \if@tstidx@use@encaps
1242 \newcommand*{\tstidxopencs}[2][tstidxencapi]{%
1243 \tstidxfmtopenpost{#2}{\tstidxcsfmt}{#1}%
1244 }
1245 \else
1246 \newcommand*{\tstidxopencs}[2][]{%
1247 \tstidxfmtopenpost{#2}{\tstidxcsfmt}{#1}%
1248 }
1249 \fi
1250 % \end{macrocode}
1251 %\end{macro}
1252 %
1253 %\begin{macro}{\tstidxclosecs}
1254 %As above but ends a range.
1255 % \begin{macrocode}
1256 \if@tstidx@use@encaps
1257 \newcommand*{\tstidxclosecs}[2][tstidxencapi]{%
1258 \tstidxfmtclosepost{#2}{\tstidxcsfmt}{#1}%
1259 }
1260 \else
1261 \newcommand*{\tstidxclosecs}[2][]{%
1262 \tstidxfmtclosepost{#2}{\tstidxcsfmt}{#1}%
1263 }
1264 \fi
1265 % \end{macrocode}
1266 %\end{macro}
1267 %
1268 %\begin{macro}{\tstidxencapcsn}
1269 % Display and index a control sequence name (without the initial
1270 % backslash). The optional argument is the encap
1271 % \begin{macrocode}
1272 \if@tstidx@use@encaps
1273 \newcommand*{\tstidxencapcsn}[2][tstidxencapi]{%
1274 \tstindexpost[#2 (#2)]%
1275 {\texttt{#2} (\protect\tstidxcsfmt{#2})}[#2]{#1}{\texttt{#2}}%
1276 \tstsubindexpost{encap}[#2]{\texttt{#2}}[encap.#2]{#1}{}%
1277 }
1278 \else
1279 \newcommand*{\tstidxencapcsn}[2][]{%
1280 \tstindexpost[#2 (#2)]%
1281 {\texttt{#2} (\protect\tstidxcsfmt{#2})}[#2]{#1}{\texttt{#2}}%
1282 \tstsubindexpost{encap}[#2]{\texttt{#2}}[encap.#2]{#1}{}%
1283 }
1284 \fi
1285 % \end{macrocode}
1286 %\end{macro}
1287 %
1288 %\begin{macro}{\tstidxopencsn}
1289 %As above but starts a range.
1290 % \begin{macrocode}
1291 \if@tstidx@use@encaps
1292 \newcommand*{\tstidxopencsn}[2][tstidxencapi]{%
1293 \tstindexopenpost[#2 (#2)]%
1294 {\texttt{#2} (\protect\tstidxcsfmt{#2})}{#1}{\texttt{#2}}%
1295 }
1296 \else
1297 \newcommand*{\tstidxopencsn}[2][]{%
1298 \tstindexopenpost[#2 (#2)]%
1299 {\texttt{#2} (\protect\tstidxcsfmt{#2})}{#1}{\texttt{#2}}%
1300 }
1301 \fi
1302 % \end{macrocode}
1303 %\end{macro}
1304 %
1305 %\begin{macro}{\tstidxclosecsn}
1306 %As above but ends a range.
1307 % \begin{macrocode}
1308 \if@tstidx@use@encaps
1309 \newcommand*{\tstidxclosecsn}[2][tstidxencapi]{%
1310 \tstindexclosepost[#2 (#2)]%
1311 {\texttt{#2} (\protect\tstidxcsfmt{#2})}{#1}{\texttt{#2}}%
1312 }
1313 \else
1314 \newcommand*{\tstidxclosecsn}[2][]{%
1315 \tstindexclosepost[#2 (#2)]%
1316 {\texttt{#2} (\protect\tstidxcsfmt{#2})}{#1}{\texttt{#2}}%
1317 }
1318 \fi
1319 % \end{macrocode}
1320 %\end{macro}
1321 %
1322 %\begin{macro}{\tstidxenvfmt}
1323 % Display an environment name.
1324 % \begin{macrocode}
1325 \newcommand*{\tstidxenvfmt}[1]{\texttt{#1}}
1326 % \end{macrocode}
1327 %\end{macro}
1328 %
1329 %\begin{macro}{\tstidxenv}
1330 % Display and index an environment name.
1331 % \begin{macrocode}
1332 \if@tstidx@use@encaps
1333 \newcommand*{\tstidxenv}[2][tstidxencapi]{%
1334 \tstindexpost[#2 environment]%
1335 {\protect\tstidxenvfmt{#2} environment}[#2environment]{#1}%
1336 {\tstidxenvfmt{#2}}%
1337 }
1338 \else
1339 \newcommand*{\tstidxenv}[2][]{%
1340 \tstindexpost[#2 environment]%
1341 {\protect\tstidxenvfmt{#2} environment}[#2environment]{#1}%
1342 {\tstidxenvfmt{#2}}%
1343 }
1344 \fi
1345 % \end{macrocode}
1346 %\end{macro}
1347 %
1348 %\begin{macro}{\tstidxopenenv}
1349 %As above but starts a range.
1350 % \begin{macrocode}
1351 \if@tstidx@use@encaps
1352 \newcommand*{\tstidxopenenv}[2][tstidxencapi]{%
1353 \tstindexopenpost[#2 environment]%
1354 {\protect\tstidxenvfmt{#2} environment}{#1}%
1355 {\tstidxenvfmt{#2}}%
1356 }
1357 \else
1358 \newcommand*{\tstidxopenenv}[2][]{%
1359 \tstindexopenpost[#2 environment]%
1360 {\protect\tstidxenvfmt{#2} environment}{#1}%
1361 {\tstidxenvfmt{#2}}%
1362 }
1363 \fi
1364 % \end{macrocode}
1365 %\end{macro}
1366 %
1367 %\begin{macro}{\tstidxcloseenv}
1368 %As above but ends a range.
1369 % \begin{macrocode}
1370 \if@tstidx@use@encaps
1371 \newcommand*{\tstidxcloseenv}[2][tstidxencapi]{%
1372 \tstindexclosepost[#2 environment]%
1373 {\protect\tstidxenvfmt{#2} environment}{#1}%
1374 {\tstidxenvfmt{#2}}%
1375 }
1376 \else
1377 \newcommand*{\tstidxcloseenv}[2][]{%
1378 \tstindexclosepost[#2 environment]%
1379 {\protect\tstidxenvfmt{#2} environment}{#1}%
1380 {\tstidxenvfmt{#2}}%
1381 }
1382 \fi
1383 % \end{macrocode}
1384 %\end{macro}
1385 %
1386 %\begin{macro}{\tstidxappfmt}
1387 % Display an application name.
1388 % \begin{macrocode}
1389 \newcommand*{\tstidxappfmt}[1]{\texttt{#1}}
1390 % \end{macrocode}
1391 %\end{macro}
1392 %
1393 %\begin{macro}{\tstidxapp}
1394 % Display and index an application name.
1395 % \begin{macrocode}
1396 \if@tstidx@use@encaps
1397 \newcommand*{\tstidxapp}[2][tstidxencapi]{%
1398 \tstidxfmtpost{#2}{\tstidxappfmt}{#1}%
1399 \tstsubindexpost{applications}[#2]{\protect\tstidxappfmt{#2}}{#1}{}%
1400 }
1401 \else
1402 \newcommand*{\tstidxapp}[2][]{%
1403 \tstidxfmtpost{#2}{\tstidxappfmt}{#1}%
1404 \tstsubindexpost{applications}[#2]{\protect\tstidxappfmt{#2}}{#1}{}%
1405 }
1406 \fi
1407 % \end{macrocode}
1408 %\end{macro}
1409 %
1410 %\begin{macro}{\tstidxopenapp}
1411 %As above but starts a range.
1412 % \begin{macrocode}
1413 \if@tstidx@use@encaps
1414 \newcommand*{\tstidxopenapp}[2][tstidxencapi]{%
1415 \tstidxfmtopenpost{#2}{\tstidxappfmt}{#1}%
1416 \tstsubindexopenpost{applications}[#2]{\protect\tstidxappfmt{#2}}{#1}{}%
1417 }
1418 \else
1419 \newcommand*{\tstidxopenapp}[2][]{%
1420 \tstidxfmtopenpost{#2}{\tstidxappfmt}{#1}%
1421 \tstsubindexopenpost{applications}[#2]{\protect\tstidxappfmt{#2}}{#1}{}%
1422 }
1423 \fi
1424 % \end{macrocode}
1425 %\end{macro}
1426 %
1427 %\begin{macro}{\tstidxcloseapp}
1428 %As above but ends a range.
1429 % \begin{macrocode}
1430 \if@tstidx@use@encaps
1431 \newcommand*{\tstidxcloseapp}[2][tstidxencapi]{%
1432 \tstidxfmtclosepost{#2}{\tstidxappfmt}{#1}%
1433 \tstsubindexclosepost{applications}[#2]{\protect\tstidxappfmt{#2}}{#1}{}%
1434 }
1435 \else
1436 \newcommand*{\tstidxcloseapp}[2][]{%
1437 \tstidxfmtclosepost{#2}{\tstidxappfmt}{#1}%
1438 \tstsubindexclosepost{applications}[#2]{\protect\tstidxappfmt{#2}}{#1}{}%
1439 }
1440 \fi
1441 % \end{macrocode}
1442 %\end{macro}
1443 %
1444 %\begin{macro}{\tstidxappoptfmt}
1445 % Display an application option.
1446 % \begin{macrocode}
1447 \newcommand*{\tstidxappoptfmt}[1]{\texttt{#1}}
1448 % \end{macrocode}
1449 %\end{macro}
1450 %
1451 %\begin{macro}{\tstidxappopt}
1452 % Display and index an application option.
1453 % \begin{macrocode}
1454 \if@tstidx@use@encaps
1455 \newcommand*{\tstidxappopt}[3][tstidxencapiii]{%
1456 \tstindexpost[#3 (#2)]%
1457 {\protect\tstidxappoptfmt{#3} (\protect\tstidxappfmt{#2})}%
1458 [#3.#2option]{#1}{\tstidxappoptfmt{#3}}%
1459 \tstsubindexpost[#2]{\protect\tstidxappfmt{#2}}%
1460 [#3]{\protect\tstidxappoptfmt{#3}}{#1}{}%
1461 \tstsubsubindexpost{applications}[#2]{\protect\tstidxappfmt{#2}}%
1462 [#3]{\protect\tstidxappoptfmt{#3}}{#1}{}%
1463 }
1464 \else
1465 \newcommand*{\tstidxappopt}[3][]{%
1466 \tstindexpost[#3 (#2)]%
1467 {\protect\tstidxappoptfmt{#3} (\protect\tstidxappfmt{#2})}%
1468 [#3.#2option]{#1}{\tstidxappoptfmt{#3}}%
1469 \tstsubindexpost[#2]{\protect\tstidxappfmt{#2}}%
1470 [#3]{\protect\tstidxappoptfmt{#3}}{#1}{}%
1471 \tstsubsubindexpost{applications}[#2]{\protect\tstidxappfmt{#2}}%
1472 [#3]{\protect\tstidxappoptfmt{#3}}{#1}{}%
1473 }
1474 \fi
1475 % \end{macrocode}
1476 %\end{macro}
1477 %
1478 %\begin{macro}{\tstidxopenappopt}
1479 % As above but start a range.
1480 % \begin{macrocode}
1481 \if@tstidx@use@encaps
1482 \newcommand*{\tstidxopenappopt}[3][tstidxencapiii]{%
1483 \tstsubindexopenpost[#2]{\protect\tstidxappfmt{#2}}%
1484 [#3]{\protect\tstidxappoptfmt{#3}}{#1}{\tstidxappoptfmt{#3}}%
1485 \tstsubsubindexopenpost{applications}[#2]%
1486 {\protect\tstidxappfmt{#2}}%
1487 [#3]{\protect\tstidxappoptfmt{#3}}{#1}{}%
1488 }
1489 \else
1490 \newcommand*{\tstidxopenappopt}[3][]{%
1491 \tstsubindexopenpost[#2]{\protect\tstidxappfmt{#2}}%
1492 [#3]{\protect\tstidxappoptfmt{#3}}{#1}{\tstidxappoptfmt{#3}}%
1493 \tstsubsubindexopenpost{applications}[#2]%
1494 {\protect\tstidxappfmt{#2}}%
1495 [#3]{\protect\tstidxappoptfmt{#3}}{#1}{}%
1496 }
1497 \fi
1498 % \end{macrocode}
1499 %\end{macro}
1500 %
1501 %\begin{macro}{\tstidxcloseappopt}
1502 % As above but end a range.
1503 % \begin{macrocode}
1504 \if@tstidx@use@encaps
1505 \newcommand*{\tstidxcloseappopt}[3][tstidxencapiii]{%
1506 \tstsubindexclosepost[#2]{\protect\tstidxappfmt{#2}}%
1507 [#3]{\protect\tstidxappoptfmt{#3}}{#1}{\tstidxappoptfmt{#3}}%
1508 \tstsubsubindexclosepost{applications}[#2]%
1509 {\protect\tstidxappfmt{#2}}%
1510 [#3]{\protect\tstidxappoptfmt{#3}}{#1}{}%
1511 }
1512 \else
1513 \newcommand*{\tstidxcloseappopt}[3][]{%
1514 \tstsubindexclosepost[#2]{\protect\tstidxappfmt{#2}}%
1515 [#3]{\protect\tstidxappoptfmt{#3}}{#1}{\tstidxappoptfmt{#3}}%
1516 \tstsubsubindexclosepost{applications}[#2]%
1517 {\protect\tstidxappfmt{#2}}%
1518 [#3]{\protect\tstidxappoptfmt{#3}}{#1}{}%
1519 }
1520 \fi
1521 % \end{macrocode}
1522 %\end{macro}
1523 %
1524 %\begin{macro}{\tstidxstyfmt}
1525 % Display a package name.
1526 % \begin{macrocode}
1527 \newcommand*{\tstidxstyfmt}[1]{\texttt{#1}}
1528 % \end{macrocode}
1529 %\end{macro}
1530 %
1531 %\begin{macro}{\tstindexstysee}
1532 %\changes{1.1}{2017-08-11}{new}
1533 %Cross-reference one package with another.
1534 % \begin{macrocode}
1535 \newcommand*{\tstindexstysee}[3]{%
1536 \tstindexsee[#1package]{\protect\tstidxstyfmt{#1} package}{#2}%
1537 [#3package]{\protect\tstidxstyfmt{#3}}%
1538 }
1539 % \end{macrocode}
1540 %\end{macro}
1541 %
1542 %\begin{macro}{\tstidxsty}
1543 % Display and index a package name.
1544 % \begin{macrocode}
1545 \if@tstidx@use@encaps
1546 \newcommand*{\tstidxsty}[2][tstidxencapiii]{%
1547 \tstindexpost[#2 package]%
1548 {\protect\tstidxstyfmt{#2} package}[#2package]{#1}{\tstidxstyfmt{#2}}%
1549 \tstsubindexpost{packages}[#2 package]%
1550 {\protect\tstidxstyfmt{#2} package}[packages.#2package]{#1}{}%
1551 }
1552 \else
1553 \newcommand*{\tstidxsty}[2][]{%
1554 \tstindexpost[#2 package]%
1555 {\protect\tstidxstyfmt{#2} package}[#2package]{#1}{\tstidxstyfmt{#2}}%
1556 \tstsubindexpost{packages}[#2 package]%
1557 {\protect\tstidxstyfmt{#2} package}[packages.#2package]{#1}{}%
1558 }
1559 \fi
1560 % \end{macrocode}
1561 %\end{macro}
1562 %
1563 %\begin{macro}{\tstidxopensty}
1564 %As above but starts a range.
1565 % \begin{macrocode}
1566 \if@tstidx@use@encaps
1567 \newcommand*{\tstidxopensty}[2][tstidxencapiii]{%
1568 \tstindexopenpost[#2 package]{\protect\tstidxstyfmt{#2} package}[#2package]{#1}%
1569 {\tstidxstyfmt{#2}}%
1570 \tstsubindexopenpost{packages}[#2 package]%
1571 {\protect\tstidxstyfmt{#2} package}[packages.#2package]{#1}{}%
1572 }
1573 \else
1574 \newcommand*{\tstidxopensty}[2][]{%
1575 \tstindexopenpost[#2 package]{\protect\tstidxstyfmt{#2} package}[#2package]{#1}%
1576 {\tstidxstyfmt{#2}}%
1577 \tstsubindexopenpost{packages}[#2 package]%
1578 {\protect\tstidxstyfmt{#2} package}[packages.#2package]{#1}{}%
1579 }
1580 \fi
1581 % \end{macrocode}
1582 %\end{macro}
1583 %
1584 %\begin{macro}{\tstidxclosesty}
1585 %As above but ends a range.
1586 % \begin{macrocode}
1587 \if@tstidx@use@encaps
1588 \newcommand*{\tstidxclosesty}[2][tstidxencapiii]{%
1589 \tstindexclosepost[#2 package]{\protect\tstidxstyfmt{#2} package}%
1590 [#2package]{#1}%
1591 {\tstidxstyfmt{#2}}%
1592 \tstsubindexclosepost{packages}[#2 package]%
1593 {\protect\tstidxstyfmt{#2} package}[packages.#2package]{#1}{}%
1594 }
1595 \else
1596 \newcommand*{\tstidxclosesty}[2][]{%
1597 \tstindexclosepost[#2 package]{\protect\tstidxstyfmt{#2} package}%
1598 [#2package]{#1}%
1599 {\tstidxstyfmt{#2}}%
1600 \tstsubindexclosepost{packages}[#2 package]%
1601 {\protect\tstidxstyfmt{#2} package}[packages.#2package]{#1}{}%
1602 }
1603 \fi
1604 % \end{macrocode}
1605 %\end{macro}
1606 %
1607 %\begin{macro}{\tstidxstyoptfmt}
1608 % Display a package option.
1609 % \begin{macrocode}
1610 \newcommand*{\tstidxstyoptfmt}[1]{\texttt{#1}}
1611 % \end{macrocode}
1612 %\end{macro}
1613 %
1614 %\begin{macro}{\tstidxstyopt}
1615 % Display and index a package option.
1616 % \begin{macrocode}
1617 \if@tstidx@use@encaps
1618 \newcommand*{\tstidxstyopt}[3][tstidxencapiii]{%
1619 \tstsubindexpost[#2 package]{\protect\tstidxstyfmt{#2} package}%
1620 [#3]{\protect\tstidxstyoptfmt{#3}}{#1}{\tstidxstyoptfmt{#3}}%
1621 \tstsubsubindexpost{packages}[#2 package]%
1622 {\protect\tstidxstyfmt{#2} package}%
1623 [#3]{\protect\tstidxstyoptfmt{#3}}{#1}{}%
1624 }
1625 \else
1626 \newcommand*{\tstidxstyopt}[3][]{%
1627 \tstsubindexpost[#2 package]{\protect\tstidxstyfmt{#2} package}%
1628 [#3]{\protect\tstidxstyoptfmt{#3}}{#1}{\tstidxstyoptfmt{#3}}%
1629 \tstsubsubindexpost{packages}[#2 package]%
1630 {\protect\tstidxstyfmt{#2} package}%
1631 [#3]{\protect\tstidxstyoptfmt{#3}}{#1}{}%
1632 }
1633 \fi
1634 % \end{macrocode}
1635 %\end{macro}
1636 %
1637 %\begin{macro}{\tstidxopenstyopt}
1638 % As above but start a range.
1639 % \begin{macrocode}
1640 \if@tstidx@use@encaps
1641 \newcommand*{\tstidxopenstyopt}[3][tstidxencapiii]{%
1642 \tstsubindexopenpost[#2 package]{\protect\tstidxstyfmt{#2} package}%
1643 [#3]{\protect\tstidxstyoptfmt{#3}}{#1}{\tstidxstyoptfmt{#3}}%
1644 \tstsubsubindexopenpost{packages}[#2 package]%
1645 {\protect\tstidxstyfmt{#2} package}%
1646 [#3]{\protect\tstidxstyoptfmt{#3}}{#1}{}%
1647 }
1648 \else
1649 \newcommand*{\tstidxopenstyopt}[3][]{%
1650 \tstsubindexopenpost[#2 package]{\protect\tstidxstyfmt{#2} package}%
1651 [#3]{\protect\tstidxstyoptfmt{#3}}{#1}{\tstidxstyoptfmt{#3}}%
1652 \tstsubsubindexopenpost{packages}[#2 package]%
1653 {\protect\tstidxstyfmt{#2} package}%
1654 [#3]{\protect\tstidxstyoptfmt{#3}}{#1}{}%
1655 }
1656 \fi
1657 % \end{macrocode}
1658 %\end{macro}
1659 %
1660 %\begin{macro}{\tstidxclosestyopt}
1661 % As above but end a range.
1662 % \begin{macrocode}
1663 \if@tstidx@use@encaps
1664 \newcommand*{\tstidxclosestyopt}[3][tstidxencapiii]{%
1665 \tstsubindexclosepost[#2 package]{\protect\tstidxstyfmt{#2} package}%
1666 [#3]{\protect\tstidxstyoptfmt{#3}}{#1}{\tstidxstyoptfmt{#3}}%
1667 \tstsubsubindexclosepost{packages}[#2 package]%
1668 {\protect\tstidxstyfmt{#2} package}%
1669 [#3]{\protect\tstidxstyoptfmt{#3}}{#1}{}%
1670 }
1671 \else
1672 \newcommand*{\tstidxclosestyopt}[3][]{%
1673 \tstsubindexclosepost[#2 package]{\protect\tstidxstyfmt{#2} package}%
1674 [#3]{\protect\tstidxstyoptfmt{#3}}{#1}{\tstidxstyoptfmt{#3}}%
1675 \tstsubsubindexclosepost{packages}[#2 package]%
1676 {\protect\tstidxstyfmt{#2} package}%
1677 [#3]{\protect\tstidxstyoptfmt{#3}}{#1}{}%
1678 }
1679 \fi
1680 % \end{macrocode}
1681 %\end{macro}
1682 %
1683 %\begin{macro}{\tstidxword}
1684 % Display and index a word.
1685 % \begin{macrocode}
1686 \newcommand*{\tstidxword}[2][]{%
1687 \tstindexpost{#2}{#1}{#2}%
1688 }
1689 % \end{macrocode}
1690 %\end{macro}
1691 %
1692 %\begin{macro}{\tstidxwordpl}
1693 %\changes{1.1}{2017-08-11}{new}
1694 % Display the plural and index the singular. This just appends
1695 % \qt{s} for convenience. The \sty{testidx-glossaries} package
1696 % uses \cs{glspl} instead.
1697 % \begin{macrocode}
1698 \newcommand*{\tstidxwordpl}[1][]{\@tstidxwordpl{#1}}
1699 \newcommand*{\@tstidxwordpl}[2]{\tstidxword[#1]{#2}s}
1700 % \end{macrocode}
1701 %\end{macro}
1702 %
1703 %\begin{macro}{\tstidxopenword}
1704 % As above but starts a range.
1705 % \begin{macrocode}
1706 \newcommand*{\tstidxopenword}[2][]{%
1707 \tstindexopenpost{#2}{#1}{#2}%
1708 }
1709 % \end{macrocode}
1710 %\end{macro}
1711 %
1712 %\begin{macro}{\tstidxcloseword}
1713 % As above but ends a range.
1714 % \begin{macrocode}
1715 \newcommand*{\tstidxcloseword}[2][]{%
1716 \tstindexclosepost{#2}{#1}{#2}%
1717 }
1718 % \end{macrocode}
1719 %\end{macro}
1720 %
1721 %\begin{macro}{\tstidxsubword}
1722 %\begin{definition}
1723 %\cs{tstidxsubword}\oarg{encap}\marg{main-entry}\marg{word}
1724 %\end{definition}
1725 % Display and index a word as a sub-entry.
1726 % \begin{macrocode}
1727 \newcommand*{\tstidxsubword}[3][]{%
1728 \tstsubindexpost{#2}{#3}{#1}{#3}%
1729 }
1730 % \end{macrocode}
1731 %\end{macro}
1732 %
1733 %\begin{macro}{\tstidxnumber}
1734 % Display and index a word.
1735 % \begin{macrocode}
1736 \if@tstidx@use@encaps
1737 \newcommand*{\tstidxnumber}[2][tstidxencapiii]{%
1738 \tstindexpost{#2}{#1}{#2}%
1739 }
1740 \else
1741 \newcommand*{\tstidxnumber}[2][]{%
1742 \tstindexpost{#2}{#1}{#2}%
1743 }
1744 \fi
1745 % \end{macrocode}
1746 %\end{macro}
1747 %
1748 %\begin{macro}{\tstidxphrase}
1749 % Display and index a phrase.
1750 % \begin{macrocode}
1751 \newcommand*{\tstidxphrase}[2][]{%
1752 \tstindexpre{#2}{#1}{#2}%
1753 }
1754 % \end{macrocode}
1755 %\end{macro}
1756 %
1757 %\begin{macro}{\tstidxphrasepl}
1758 %\changes{1.1}{2017-08-11}{new}
1759 % Display the plural and index the singular of a phrase. This just appends
1760 % \qt{s} for convenience. The \sty{testidx-glossaries} package
1761 % uses \cs{glspl} instead.
1762 % \begin{macrocode}
1763 \newcommand*{\tstidxphrasepl}[1][]{\@tstidxphrasepl{#1}}
1764 \newcommand*{\@tstidxphrasepl}[2]{\tstidxphrase[#1]{#2}s}
1765 % \end{macrocode}
1766 %\end{macro}
1767 %
1768 %\begin{macro}{\tstidxopenphrase}
1769 % As above but starts a range.
1770 % \begin{macrocode}
1771 \newcommand*{\tstidxopenphrase}[2][]{%
1772 \tstindexopenpre{#2}{#1}{#2}%
1773 }
1774 % \end{macrocode}
1775 %\end{macro}
1776 %
1777 %\begin{macro}{\tstidxclosephrase}
1778 % As above but ends a range.
1779 % \begin{macrocode}
1780 \newcommand*{\tstidxclosephrase}[2][]{%
1781 \tstindexclosepre{#2}{#1}{#2}%
1782 }
1783 % \end{macrocode}
1784 %\end{macro}
1785 %
1786 %\begin{macro}{\tstidxartphrase}
1787 %\begin{definition}
1788 %\cs{tstidxartphrase}\oarg{encap}\marg{article}\marg{remainder}
1789 %\end{definition}
1790 % Display and index a phrase that starts with (in)definite
1791 % article.
1792 % \begin{macrocode}
1793 \newcommand*{\tstidxartphrase}[3][]{%
1794 \tstindexpost{#3, #2}[#3]{#1}{#2 #3}%
1795 }
1796 % \end{macrocode}
1797 %\end{macro}
1798 %
1799 %\begin{macro}{\tstidxopenartphrase}
1800 %As above but starts a range.
1801 % \begin{macrocode}
1802 \newcommand*{\tstidxopenartphrase}[3][]{%
1803 \tstindexopenpost{#3, #2}[#3]{#1}{#2 #3}%
1804 }
1805 % \end{macrocode}
1806 %\end{macro}
1807 %
1808 %\begin{macro}{\tstidxcloseartphrase}
1809 %As above but ends a range.
1810 % \begin{macrocode}
1811 \newcommand*{\tstidxcloseartphrase}[3][]{%
1812 \tstindexclosepost{#3, #2}[#3]{#1}{#2 #3}%
1813 }
1814 % \end{macrocode}
1815 %\end{macro}
1816 %
1817 %\begin{macro}{\tstidxperson}
1818 % Display and index a person's name.
1819 % \begin{macrocode}
1820 \newcommand*{\tstidxperson}[3][]{%
1821 \tstidxutfperson[#1]{#2}{#3}{#2}{#3}%
1822 }
1823 % \end{macrocode}
1824 %\end{macro}
1825 %
1826 %\begin{macro}{\tstidxopenperson}
1827 % As above but starts a range.
1828 % \begin{macrocode}
1829 \newcommand*{\tstidxopenperson}[3][]{%
1830 \tstidxutfopenperson[#1]{#2}{#3}{#2}{#3}%
1831 }
1832 % \end{macrocode}
1833 %\end{macro}
1834 %
1835 %\begin{macro}{\tstidxcloseperson}
1836 % As above but ends a range.
1837 % \begin{macrocode}
1838 \newcommand*{\tstidxcloseperson}[3][]{%
1839 \tstidxutfcloseperson[#1]{#2}{#3}{#2}{#3}%
1840 }
1841 % \end{macrocode}
1842 %\end{macro}
1843 %
1844 %\begin{macro}{\tstidxutfperson}
1845 %\begin{definition}
1846 %\cs{tstidxutfperson}\oarg{encap}\marg{ascii forename}\marg{ascii
1847 %surname}\oarg{label}\marg{utf8 forname}{utf8 surname}
1848 %\end{definition}
1849 % Display and index a person's name with UTF-8 characters.
1850 % \begin{macrocode}
1851 \newcommand*{\tstidxutfperson}[3][]{%
1852 \@ifnextchar[{\@tstidxutfperson{#1}{#2}{#3}}%
1853 {\@tstidxutfperson{#1}{#2}{#3}[#2#3]}%
1854 }
1855 \def\@tstidxutfperson#1#2#3[#4]#5#6{%
1856 \@tstidx@ifutfviii
1857 {%
1858 \tstidxutfpost[#5 #6]{#3, #2}[#4]{#6, #5}{#1}%
1859 }%
1860 {%
1861 \tstidxutfpost[#2 #3]{#3, #2}[#4]{#6, #5}{#1}%
1862 }%
1863 \tstidxutfsubpost[\relax]{people}{people}{#3, #2}[people.#4]{#6, #5}{#1}%
1864 }
1865 % \end{macrocode}
1866 %\end{macro}
1867 %
1868 %\begin{macro}{\tstidxopenutfperson}
1869 % As above but starts a range.
1870 % \begin{macrocode}
1871 \newcommand*{\tstidxutfopenperson}[3][]{%
1872 \@ifnextchar[{\@tstidxutfopenperson{#1}{#2}{#3}}%
1873 {\@tstidxutfopenperson{#1}{#2}{#3}[#2#3]}%
1874 }
1875 \def\@tstidxutfopenperson#1#2#3[#4]#5#6{%
1876 \@tstidx@ifutfviii
1877 {%
1878 \tstidxutfopenpost[#5 #6]{#3, #2}[#4]{#6, #5}{#1}%
1879 }%
1880 {%
1881 \tstidxutfopenpost[#2 #3]{#3, #2}[#4]{#6, #5}{#1}%
1882 }%
1883 }
1884 % \end{macrocode}
1885 %\end{macro}
1886 %
1887 %\begin{macro}{\tstidxcloseutfperson}
1888 % As above but ends a range.
1889 % \begin{macrocode}
1890 \newcommand*{\tstidxutfcloseperson}[3][]{%
1891 \@ifnextchar[{\@tstidxutfcloseperson{#1}{#2}{#3}}%
1892 {\@tstidxutfcloseperson{#1}{#2}{#3}[#2#3]}%
1893 }
1894 \def\@tstidxutfcloseperson#1#2#3[#4]#5#6{%
1895 \@tstidx@ifutfviii
1896 {%
1897 \tstidxutfclosepost[#5 #6]{#3, #2}[#4]{#6, #5}{#1}%
1898 }%
1899 {%
1900 \tstidxutfclosepost[#2 #3]{#3, #2}[#4]{#6, #5}{#1}%
1901 }%
1902 }
1903 % \end{macrocode}
1904 %\end{macro}
1905 %
1906 %\begin{macro}{\tstidxsym}
1907 %\begin{definition}
1908 %\cs{tstidxsym}\oarg{encap}\marg{sort}\oarg{label}\marg{indexed symbol}
1909 %\end{definition}
1910 % Display and index a symbol.
1911 % \begin{macrocode}
1912 \newcommand*{\tstidxsym}[2][]{%
1913 \@ifnextchar[{\@tstidxsym{#1}{#2}}{\@tstidxsym{#1}{#2}[#2]}%
1914 }
1915 \def\@tstidxsym#1#2[#3]#4{%
1916 \tstindexpost[#2]{\protect#4}[#3]{#1}{#4}%
1917 }
1918 % \end{macrocode}
1919 %\end{macro}
1920 %
1921 %\begin{macro}{\tstidxopensym}
1922 %\begin{definition}
1923 %\cs{tstidxopensym}\oarg{encap}\marg{sort}\oarg{label}\marg{indexed symbol}
1924 %\end{definition}
1925 % As above but starts a range.
1926 % \begin{macrocode}
1927 \newcommand*{\tstidxopensym}[2][]{%
1928 \@ifnextchar[{\@tstidxopensym{#1}{#2}}{\@tstidxopensym{#1}{#2}[]}%
1929 }
1930 \def\@tstidxopensym#1#2[#3]#4{%
1931 \tstindexopenpost[#2]{\protect#4}[#3]{#1}{#4}%
1932 }
1933 % \end{macrocode}
1934 %\end{macro}
1935 %
1936 %\begin{macro}{\tstidxclosesym}
1937 %\begin{definition}
1938 %\cs{tstidxclosesym}\oarg{encap}\marg{sort}\oarg{label}\marg{indexed symbol}
1939 %\end{definition}
1940 % As above but ends a range.
1941 % \begin{macrocode}
1942 \newcommand*{\tstidxclosesym}[2][]{%
1943 \@ifnextchar[{\@tstidxclosesym{#1}{#2}}{\@tstidxclosesym{#1}{#2}[]}%
1944 }
1945 \def\@tstidxclosesym#1#2[#3]#4{%
1946 \tstindexclosepost[#2]{\protect#4}[#3]{#1}{#4}%
1947 }
1948 % \end{macrocode}
1949 %\end{macro}
1950 %
1951 %\begin{macro}{\tstidxindexmarker}
1952 % \begin{macrocode}
1953 \newcommand{\tstidxindexmarker}[1]{%
1954 \iftestidxprefix
1955 \expandafter\tstidxsym\expandafter
1956 {\tstidxindexmarkerprefix#1}[#1]{\csname#1\endcsname
1957 \protect\space (\protect\tstidxcsfmt{#1})}%
1958 \else
1959 \tstidxsym{#1}[#1]{\csname#1\endcsname
1960 \protect\space (\protect\tstidxcsfmt{#1})}%
1961 \fi
1962 }
1963 % \end{macrocode}
1964 %\end{macro}
1965 %\begin{macro}{\tstidxindexmarkerprefix}
1966 % \begin{macrocode}
1967 \newcommand*{\tstidxindexmarkerprefix}{<}
1968 % \end{macrocode}
1969 %\end{macro}
1970 %
1971 %\begin{macro}{\tstidxmath}
1972 %\begin{definition}
1973 %\cs{tstidxmath}\oarg{encap}\marg{sort}\oarg{label}\marg{entry}
1974 %\end{definition}
1975 % Display and index something in maths-mode.
1976 % \begin{macrocode}
1977 \if@tstidx@use@encaps
1978 \newcommand*{\tstidxmath}[2][tstidxencapii]{%
1979 \@ifnextchar[{\@tstidxmath{#1}{#2}}{\@tstidxmath{#1}{#2}[#2]}%
1980 }
1981 \else
1982 \newcommand*{\tstidxmath}[2][]{%
1983 \@ifnextchar[{\@tstidxmath{#1}{#2}}{\@tstidxmath{#1}{#2}[#2]}%
1984 }
1985 \fi
1986 \def\@tstidxmath#1#2[#3]#4{%
1987 \tstindexpre[#2]{$#4$}[#3]{#1}{#4}%
1988 }
1989 % \end{macrocode}
1990 %\end{macro}
1991 %
1992 %\begin{macro}{\tstidxmathsym}
1993 %\begin{definition}
1994 %\cs{tstidxmathsym}\oarg{encap}\marg{sort}\oarg{label}\marg{entry}
1995 %\end{definition}
1996 %Inserts a prefix before \meta{sort}.
1997 % \begin{macrocode}
1998 \if@tstidx@use@encaps
1999 \newcommand*{\tstidxmathsym}[2][tstidxencapii]{%
2000 \@ifnextchar[{\@tstidxmathsym{#1}{#2}}{\@tstidxmathsym{#1}{#2}[#2]}%
2001 }
2002 \else
2003 \newcommand*{\tstidxmathsym}[2][]{%
2004 \@ifnextchar[{\@tstidxmathsym{#1}{#2}}{\@tstidxmathsym{#1}{#2}[#2]}%
2005 }
2006 \fi
2007 \def\@tstidxmathsym#1#2[#3]#4{%
2008 \iftestidxprefix
2009 \expandafter\tstindexpre\expandafter
2010 [\tstidxmathsymprefix#2]{$#4$}[#3]{#1}{#4}%
2011 \else
2012 \tstindexpre[#2]{$#4$}[#3]{#1}{#4}%
2013 \fi
2014 }
2015 % \end{macrocode}
2016 %\end{macro}
2017 %\begin{macro}{\tstidxmathsymprefix}
2018 % \begin{macrocode}
2019 \newcommand*{\tstidxmathsymprefix}{>}
2020 % \end{macrocode}
2021 %\end{macro}
2022 %
2023 %\begin{macro}{\tstidxutfword}
2024 %\begin{definition}
2025 %\cs{tstidxutfword}\oarg{encap}\marg{ascii}\oarg{label}\marg{utf8}
2026 %\end{definition}
2027 % Display and index a word with UTF-8 characters. The \meta{label}
2028 % is needed for \sty{testidx-glossaries}.
2029 % \begin{macrocode}
2030 \newcommand*{\tstidxutfword}[2][]{%
2031 \@ifnextchar[{\@tstidxutfword{#1}{#2}}{\@tstidxutfword{#1}{#2}[#2]}%
2032 }
2033 % \end{macrocode}
2034 %\end{macro}
2035 %
2036 %\begin{macro}{\@tstidxutfword}
2037 % \begin{macrocode}
2038 \def\@tstidxutfword#1#2[#3]#4{%
2039 \tstidxutfpost{#2}[#3]{#4}{#1}%
2040 }
2041 % \end{macrocode}
2042 %\end{macro}
2043 %
2044 %\begin{macro}{\tstidxgphword}
2045 %\begin{definition}
2046 %\cs{tstidxutfword}\oarg{encap}\marg{ascii}\marg{label}\marg{utf8}\marg{utf8
2047 %with digraph}
2048 %\end{definition}
2049 % Display and index a word with UTF-8 characters with alternative
2050 % form that uses a glyph for the digraph.
2051 %\changes{1.1}{2017-08-11}{new}
2052 % \begin{macrocode}
2053 \newcommand*{\tstidxgphword}[2][]{%
2054 \@ifnextchar[{\@tstidxgphword{#1}{#2}}{\@tstidxgphword{#1}{#2}[#2]}%
2055 }
2056 \def\@tstidxgphword#1#2[#3]#4#5{%
2057 \iftestidxdiglyphs
2058 \tstidxutfpost{#2}[#3]{#5}{#1}%
2059 \else
2060 \tstidxutfpost{#2}[#3]{#4}{#1}%
2061 \fi
2062 }
2063 % \end{macrocode}
2064 %\end{macro}
2065 %
2066 %\begin{macro}{\tstidxopenutf}
2067 %\begin{definition}
2068 %\cs{tstidxopenutf}\oarg{encap}\marg{sort}\marg{ascii}\marg{utf8}
2069 %\end{definition}
2070 % As above but starts a range.
2071 % \begin{macrocode}
2072 \newcommand*{\tstidxopenutf}[4][]{%
2073 \tstidxutfopenpost{#2}{#3}{#1}%
2074 }
2075 % \end{macrocode}
2076 %\end{macro}
2077 %
2078 %\begin{macro}{\tstidxcloseutf}
2079 %\begin{definition}
2080 %\cs{tstidxcloseutf}\oarg{encap}\marg{sort}\marg{ascii}\marg{utf8}
2081 %\end{definition}
2082 % As above but ends a range.
2083 % \begin{macrocode}
2084 \newcommand*{\tstidxcloseutf}[4][]{%
2085 \tstidxutfclosepost{#2}{#3}{#1}%
2086 }
2087 % \end{macrocode}
2088 %\end{macro}
2089 %
2090 %\begin{macro}{\tstidxutfphrase}
2091 %\begin{definition}
2092 %\cs{tstidxutfphrase}\oarg{encap}\marg{ascii}\oarg{label}\marg{utf8}
2093 %\end{definition}
2094 % Display and index a phrase with UTF-8 characters.
2095 % \begin{macrocode}
2096 \newcommand*{\tstidxutfphrase}[2][]{%
2097 \@ifnextchar[{\@tstidxutfphrase{#1}{#2}}{\@tstidxutfphrase{#1}{#2}[#2]}%
2098 }
2099 \def\@tstidxutfphrase#1#2[#3]#4{%
2100 \tstidxutfpre{#2}[#3]{#4}{#1}%
2101 }
2102 % \end{macrocode}
2103 %\end{macro}
2104 %
2105 %\begin{macro}{\tstidxopenutfphrase}
2106 %\begin{definition}
2107 %\cs{tstidxopenutfphrase}\oarg{encap}\marg{ascii}\marg{utf8}
2108 %\end{definition}
2109 % As above but starts a range.
2110 % \begin{macrocode}
2111 \newcommand*{\tstidxopenutfphrase}[3][]{%
2112 \tstidxutfopenpre{#2}{#3}{#1}%
2113 }
2114 % \end{macrocode}
2115 %\end{macro}
2116 %
2117 %\begin{macro}{\tstidxcloseutfphrase}
2118 %\begin{definition}
2119 %\cs{tstidxcloseutf}\oarg{encap}\marg{ascii}\marg{utf8}
2120 %\end{definition}
2121 % As above but ends a range.
2122 % \begin{macrocode}
2123 \newcommand*{\tstidxcloseutfphrase}[3][]{%
2124 \tstidxutfclosepre{#2}{#3}{#1}%
2125 }
2126 % \end{macrocode}
2127 %\end{macro}
2128 %
2129 %\begin{macro}{\tstidxplace}
2130 % Display and index a place name.
2131 % \begin{macrocode}
2132 \newcommand*{\tstidxplace}[2][]{%
2133 \tstidxutfplace[#1]{#2}{#2}%
2134 }
2135 % \end{macrocode}
2136 %\end{macro}
2137 %
2138 %\begin{macro}{\tstidxutfplace}
2139 %\begin{definition}
2140 %\cs{tstidxutfplace}\oarg{encap}\marg{ascii}\oarg{label}\marg{utf8}
2141 %\end{definition}
2142 % Display and index a word with UTF-8 characters.
2143 % \begin{macrocode}
2144 \newcommand*{\tstidxutfplace}[2][]{%
2145 \@ifnextchar[{\@tstidxutfplace{#1}{#2}}{\@tstidxutfplace{#1}{#2}[#2]}%
2146 }
2147 \def\@tstidxutfplace#1#2[#3]#4{%
2148 \tstidxutfpost{#2}[#3]{#4}{#1}%
2149 \tstidxutfsubpost[\relax]{places}{places}{#2}[places.#3]{#4}{#1}%
2150 }
2151 % \end{macrocode}
2152 %\end{macro}
2153 %
2154 %\begin{macro}{\tstidxartplace}
2155 % Display and index a place name that starts with an article.
2156 % \begin{macrocode}
2157 \newcommand*{\tstidxartplace}[3][]{%
2158 \tstindexpost{#3, #2}[#3]{#1}{#2 #3}%
2159 \tstidxutfsubpost[\relax]{places}{places}{#3, #2}[places.#3]{#3, #2}{#1}%
2160 }
2161 % \end{macrocode}
2162 %\end{macro}
2163 %
2164 %\begin{macro}{\tstidxbookfmt}
2165 % Display an book title.
2166 % \begin{macrocode}
2167 \newcommand*{\tstidxbookfmt}[1]{\emph{#1}}
2168 % \end{macrocode}
2169 %\end{macro}
2170 %
2171 %\begin{macro}{\tstidxbook}
2172 % Display and index a book title.
2173 % \begin{macrocode}
2174 \if@tstidx@use@encaps
2175 \newcommand*{\tstidxbook}[2][tstidxencapii]{%
2176 \tstindexpost[#2]{\protect\tstidxbookfmt{#2}}[#2]{#1}{\tstidxbookfmt{#2}}%
2177 \tstsubindexpost{books}[#2]{\protect\tstidxbookfmt{#2}}{#1}{}%
2178 }
2179 \else
2180 \newcommand*{\tstidxbook}[2][]{%
2181 \tstindexpost[#2]{\protect\tstidxbookfmt{#2}}[#2]{#1}{\tstidxbookfmt{#2}}%
2182 \tstsubindexpost{books}[#2]{\protect\tstidxbookfmt{#2}}{#1}{}%
2183 }
2184 \fi
2185 % \end{macrocode}
2186 %\end{macro}
2187 %
2188 %\begin{macro}{\tstidxopenbook}
2189 %As above but starts a range.
2190 % \begin{macrocode}
2191 \if@tstidx@use@encaps
2192 \newcommand*{\tstidxopenbook}[2][tstidxencapii]{%
2193 \tstindexopenpost[#2]{\protect\tstidxbookfmt{#2}}{#1}{\tstidxbookfmt{#2}}%
2194 \tstsubindexopenpost{books}[#2]{\protect\tstidxbookfmt{#2}}{#1}{}%
2195 }
2196 \else
2197 \newcommand*{\tstidxopenbook}[2][]{%
2198 \tstindexopenpost[#2]{\protect\tstidxbookfmt{#2}}{#1}{\tstidxbookfmt{#2}}%
2199 \tstsubindexopenpost{books}[#2]{\protect\tstidxbookfmt{#2}}{#1}{}%
2200 }
2201 \fi
2202 % \end{macrocode}
2203 %\end{macro}
2204 %
2205 %\begin{macro}{\tstidxclosebook}
2206 %As above but ends a range.
2207 % \begin{macrocode}
2208 \if@tstidx@use@encaps
2209 \newcommand*{\tstidxclosebook}[2][tstidxencapii]{%
2210 \tstindexclosepost[#2]{\protect\tstidxbookfmt{#2}}{#1}{\tstidxbookfmt{#2}}%
2211 \tstsubindexclosepost{books}[#2]{\protect\tstidxbookfmt{#2}}{#1}{}%
2212 }
2213 \else
2214 \newcommand*{\tstidxclosebook}[2][]{%
2215 \tstindexclosepost[#2]{\protect\tstidxbookfmt{#2}}{#1}{\tstidxbookfmt{#2}}%
2216 \tstsubindexclosepost{books}[#2]{\protect\tstidxbookfmt{#2}}{#1}{}%
2217 }
2218 \fi
2219 % \end{macrocode}
2220 %\end{macro}
2221 %
2222 %\begin{macro}{\tstidxartbook}
2223 %\begin{definition}
2224 %\cs{tstidxartbook}\oarg{encap}\marg{article}\marg{remainder}
2225 %\end{definition}
2226 % Display and index a book title that starts with (in)definite
2227 % article.
2228 % \begin{macrocode}
2229 \if@tstidx@use@encaps
2230 \newcommand*{\tstidxartbook}[3][tstidxencapii]{%
2231 \tstindexpost[#3, #2]{\protect\tstidxbookfmt{#3, #2}}[#3]{#1}{\tstidxbookfmt{#2 #3}}%
2232 \tstsubindexpost{books}[#3, #2]{\protect\tstidxbookfmt{#3, #2}}[books.#3]{#1}{}%
2233 }
2234 \else
2235 \newcommand*{\tstidxartbook}[3][]{%
2236 \tstindexpost[#3, #2]{\protect\tstidxbookfmt{#3, #2}}[#3]{#1}{\tstidxbookfmt{#2 #3}}%
2237 \tstsubindexpost{books}[#3, #2]{\protect\tstidxbookfmt{#3,
2238 #2}}[books.#3]{#1}{}%
2239 }
2240 \fi
2241 % \end{macrocode}
2242 %\end{macro}
2243 %
2244 %\begin{macro}{\tstidxopenartbook}
2245 %As above but starts a range.
2246 % \begin{macrocode}
2247 \if@tstidx@use@encaps
2248 \newcommand*{\tstidxopenartbook}[3][tstidxencapii]{%
2249 \tstindexopenpost[#3, #2]{\protect\tstidxbookfmt{#3, #2}}{#1}%
2250 {\tstidxbookfmt{#2 #3}}%
2251 \tstsubindexopenpost{books}[#3, #2]{\protect\tstidxbookfmt{#3, #2}}[books.#3]{#1}{}%
2252 }
2253 \else
2254 \newcommand*{\tstidxopenartbook}[3][]{%
2255 \tstindexopenpost[#3, #2]{\protect\tstidxbookfmt{#3, #2}}{#1}%
2256 {\tstidxbookfmt{#2 #3}}%
2257 \tstsubindexopenpost{books}[#3, #2]{\protect\tstidxbookfmt{#3, #2}}[books.#3]{#1}{}%
2258 }
2259 \fi
2260 % \end{macrocode}
2261 %\end{macro}
2262 %
2263 %\begin{macro}{\tstidxcloseartbook}
2264 %As above but ends a range.
2265 % \begin{macrocode}
2266 \if@tstidx@use@encaps
2267 \newcommand*{\tstidxcloseartbook}[3][tstidxencapii]{%
2268 \tstindexclosepost[#3, #2]{\protect\tstidxbookfmt{#3, #2}}{#1}%
2269 {\tstidxbookfmt{#2 #3}}%
2270 \tstsubindexclosepost{books}[#3, #2]{\protect\tstidxbookfmt{#3, #2}}[books.#3]{#1}{}%
2271 }
2272 \else
2273 \newcommand*{\tstidxcloseartbook}[3][]{%
2274 \tstindexclosepost[#3, #2]{\protect\tstidxbookfmt{#3, #2}}{#1}%
2275 {\tstidxbookfmt{#2 #3}}%
2276 \tstsubindexclosepost{books}[#3, #2]{\protect\tstidxbookfmt{#3, #2}}[books.#3]{#1}{}%
2277 }
2278 \fi
2279 % \end{macrocode}
2280 %\end{macro}
2281 %
2282 %\begin{macro}{\tstidxfilmfmt}
2283 % Display an film title.
2284 % \begin{macrocode}
2285 \newcommand*{\tstidxfilmfmt}[1]{\emph{#1}}
2286 % \end{macrocode}
2287 %\end{macro}
2288 %
2289 %\begin{macro}{\tstidxfilm}
2290 % Display and index a film title.
2291 % \begin{macrocode}
2292 \if@tstidx@use@encaps
2293 \newcommand*{\tstidxfilm}[2][tstidxencapii]{%
2294 \tstindexpost[#2]{\protect\tstidxfilmfmt{#2}}{#1}{\tstidxfilmfmt{#2}}%
2295 \tstsubindexpost{films}[#2]{\protect\tstidxfilmfmt{#2}}{#1}{}%
2296 }
2297 \else
2298 \newcommand*{\tstidxfilm}[2][]{%
2299 \tstindexpost[#2]{\protect\tstidxfilmfmt{#2}}{#1}{\tstidxfilmfmt{#2}}%
2300 \tstsubindexpost{films}[#2]{\protect\tstidxfilmfmt{#2}}{#1}{}%
2301 }
2302 \fi
2303 % \end{macrocode}
2304 %\end{macro}
2305 %
2306 %\begin{macro}{\tstidxopenfilm}
2307 %As above but starts a range.
2308 % \begin{macrocode}
2309 \if@tstidx@use@encaps
2310 \newcommand*{\tstidxopenfilm}[2][tstidxencapii]{%
2311 \tstindexopenpost[#2]{\protect\tstidxfilmfmt{#2}}{#1}{\tstidxfilmfmt{#2}}%
2312 \tstsubindexopenpost{films}[#2]{\protect\tstidxfilmfmt{#2}}{#1}{}%
2313 }
2314 \else
2315 \newcommand*{\tstidxopenfilm}[2][]{%
2316 \tstindexopenpost[#2]{\protect\tstidxfilmfmt{#2}}{#1}{\tstidxfilmfmt{#2}}%
2317 \tstsubindexopenpost{films}[#2]{\protect\tstidxfilmfmt{#2}}{#1}{}%
2318 }
2319 \fi
2320 % \end{macrocode}
2321 %\end{macro}
2322 %
2323 %\begin{macro}{\tstidxclosefilm}
2324 %As above but ends a range.
2325 % \begin{macrocode}
2326 \if@tstidx@use@encaps
2327 \newcommand*{\tstidxclosefilm}[2][tstidxencapii]{%
2328 \tstindexclosepost[#2]{\protect\tstidxfilmfmt{#2}}{#1}{\tstidxfilmfmt{#2}}%
2329 \tstsubindexclosepost{films}[#2]{\protect\tstidxfilmfmt{#2}}{#1}{}%
2330 }
2331 \else
2332 \newcommand*{\tstidxclosefilm}[2][]{%
2333 \tstindexclosepost[#2]{\protect\tstidxfilmfmt{#2}}{#1}{\tstidxfilmfmt{#2}}%
2334 \tstsubindexclosepost{films}[#2]{\protect\tstidxfilmfmt{#2}}{#1}{}%
2335 }
2336 \fi
2337 % \end{macrocode}
2338 %\end{macro}
2339 %
2340 %\begin{macro}{\tstidxartfilm}
2341 % As above but the title starts with an article.
2342 % \begin{macrocode}
2343 \if@tstidx@use@encaps
2344 \newcommand*{\tstidxartfilm}[3][tstidxencapii]{%
2345 \tstindexpost[#3, #2]{\protect\tstidxfilmfmt{#3, #2}}[#3]{#1}%
2346 {\tstidxfilmfmt{#2 #3}}%
2347 \tstsubindexpost{films}[#3, #2]{\protect\tstidxfilmfmt{#3,
2348 #2}}[films.#3]{#1}{}%
2349 }
2350 \else
2351 \newcommand*{\tstidxartfilm}[3][]{%
2352 \tstindexpost[#3, #2]{\protect\tstidxfilmfmt{#3, #2}}[#3]{#1}%
2353 {\tstidxfilmfmt{#2 #3}}%
2354 \tstsubindexpost{films}[#3, #2]{\protect\tstidxfilmfmt{#3, #2}}[films.#3]{#1}{}%
2355 }
2356 \fi
2357 % \end{macrocode}
2358 %\end{macro}
2359 %
2360 %\section{Generic Indexing Test Commands}
2361 %\subsection{Top-Level Entries}
2362 %The \cs{expandafter} stuff here is done to help simulate the user directly
2363 %using \cs{index}.
2364 %
2365 %\begin{macro}{\tstindexpost}
2366 %\begin{definition}
2367 %\cs{tstindexpost}\oarg{sort}\marg{term}\oarg{label}\marg{encap}\marg{display}
2368 %\end{definition}
2369 % \begin{macrocode}
2370 \newcommand*{\tstindexpost}[2][]{%
2371 \@ifnextchar[{\@tstindexpost{#1}{#2}}{\@tstindexpost{#1}{#2}[]}%
2372 }%
2373 \def\@tstindexpost#1#2[#3]#4#5{%
2374 \def\@tstidx@sort{#1}%
2375 \def\@tstidx@encap{#4}%
2376 \ifx\@tstidx@sort\@empty
2377 \def\@tstidx@entry{#2}%
2378 \else
2379 \toks@{#1}%
2380 \edef\@tstidx@entry{\the\toks@\tstidxactual}%
2381 \expandafter\def\expandafter\@tstidx@entry\expandafter{\@tstidx@entry#2}%
2382 \fi
2383 \ifx\@tstidx@encap\@empty
2384 \iftestidxshowmarks
2385 \tstidxtext{#5\tstidxmarker}%
2386 \else
2387 #5%
2388 \fi
2389 \else
2390 \iftestidxshowmarks
2391 \tstidxtext{\tstidxencaptext{#4}{#5\tstidxmarker}}%
2392 \else
2393 #5%
2394 \fi
2395 \expandafter\toks@\expandafter{\@tstidx@entry}%
2396 \edef\@tstidx@entry{\the\toks@\tstidxencap#4}%
2397 \fi
2398 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
2399 }
2400 % \end{macrocode}
2401 %\end{macro}
2402 %
2403 %\begin{macro}{\tstindexopenpost}
2404 %As previous but starts a range.
2405 % \begin{macrocode}
2406 \newcommand*{\tstindexopenpost}[2][]{%
2407 \@ifnextchar[{\@tstindexopenpost{#1}{#2}}{\@tstindexopenpost{#1}{#2}[]}}%
2408 \def\@tstindexopenpost#1#2[#3]#4#5{%
2409 \def\@tstidx@sort{#1}%
2410 \def\@tstidx@encap{#4}%
2411 \ifx\@tstidx@sort\@empty
2412 \def\@tstidx@entry{#2}%
2413 \else
2414 \toks@{#1}%
2415 \edef\@tstidx@entry{\the\toks@\tstidxactual}%
2416 \expandafter\def\expandafter\@tstidx@entry\expandafter{\@tstidx@entry#2}%
2417 \fi
2418 \ifx\@tstidx@encap\@empty
2419 \iftestidxshowmarks
2420 \tstidxtext{#5\tstidxopenmarker}%
2421 \else
2422 #5%
2423 \fi
2424 \expandafter\toks@\expandafter{\@tstidx@entry}%
2425 \edef\@tstidx@entry{\the\toks@\tstidxencap\tstidxopenrange}%
2426 \else
2427 \iftestidxshowmarks
2428 \tstidxtext{\tstidxencaptext{#4}{#5\tstidxopenmarker}}%
2429 \else
2430 #5%
2431 \fi
2432 \expandafter\toks@\expandafter{\@tstidx@entry}%
2433 \edef\@tstidx@entry{\the\toks@\tstidxencap\tstidxopenrange#4}%
2434 \fi
2435 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
2436 }
2437 % \end{macrocode}
2438 %\end{macro}
2439 %
2440 %\begin{macro}{\tstindexclosepost}
2441 %As previous but ends a range.
2442 % \begin{macrocode}
2443 \newcommand*{\tstindexclosepost}[2][]{%
2444 \@ifnextchar[{\@tstindexclosepost{#1}{#2}}{\@tstindexclosepost{#1}{#2}[]}}%
2445 \def\@tstindexclosepost#1#2[#3]#4#5{%
2446 \def\@tstidx@sort{#1}%
2447 \def\@tstidx@encap{#4}%
2448 \ifx\@tstidx@sort\@empty
2449 \def\@tstidx@entry{#2}%
2450 \else
2451 \toks@{#1}%
2452 \edef\@tstidx@entry{\the\toks@\tstidxactual}%
2453 \expandafter\def\expandafter\@tstidx@entry\expandafter{\@tstidx@entry#2}%
2454 \fi
2455 \ifx\@tstidx@encap\@empty
2456 \iftestidxshowmarks
2457 \tstidxtext{#5\tstidxclosemarker}%
2458 \else
2459 #5%
2460 \fi
2461 \expandafter\toks@\expandafter{\@tstidx@entry}%
2462 \edef\@tstidx@entry{\the\toks@\tstidxencap\tstidxcloserange}%
2463 \else
2464 \iftestidxshowmarks
2465 \tstidxtext{\tstidxencaptext{#4}{#5\tstidxclosemarker}}%
2466 \else
2467 #5%
2468 \fi
2469 \expandafter\toks@\expandafter{\@tstidx@entry}%
2470 \edef\@tstidx@entry{\the\toks@\tstidxencap\tstidxcloserange#4}%
2471 \fi
2472 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
2473 }
2474 % \end{macrocode}
2475 %\end{macro}
2476 %
2477 %\begin{macro}{\tstindexpre}
2478 %\begin{definition}
2479 %\cs{tstindexpre}\oarg{sort}\marg{term}\oarg{label}\marg{encap}\marg{display}
2480 %\end{definition}
2481 % \begin{macrocode}
2482 \newcommand*{\tstindexpre}[2][]{%
2483 \@ifnextchar[{\@tstindexpre{#1}{#2}}{\@tstindexpre{#1}{#2}[]}}%
2484 \def\@tstindexpre#1#2[#3]#4#5{%
2485 \def\@tstidx@sort{#1}%
2486 \def\@tstidx@encap{#4}%
2487 \ifx\@tstidx@sort\@empty
2488 \def\@tstidx@entry{#2}%
2489 \else
2490 \toks@{#1}%
2491 \edef\@tstidx@entry{\the\toks@\tstidxactual}%
2492 \expandafter\def\expandafter\@tstidx@entry\expandafter{\@tstidx@entry#2}%
2493 \fi
2494 \ifx\@tstidx@encap\@empty
2495 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
2496 \iftestidxshowmarks
2497 \tstidxtext{\tstidxmarker#5}%
2498 \else
2499 #5%
2500 \fi
2501 \else
2502 \expandafter\toks@\expandafter{\@tstidx@entry}%
2503 \edef\@tstidx@entry{\the\toks@\tstidxencap#4}%
2504 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
2505 \iftestidxshowmarks
2506 \tstidxtext{\tstidxencaptext{#4}{\tstidxmarker#5}}%
2507 \else
2508 #5%
2509 \fi
2510 \fi
2511 }
2512 % \end{macrocode}
2513 %\end{macro}
2514 %
2515 %\begin{macro}{\tstindexopenpre}
2516 %As previous but starts a range.
2517 % \begin{macrocode}
2518 \newcommand*{\tstindexopenpre}[2][]{%
2519 \@ifnextchar[{\@tstindexopenpre{#1}{#2}}{\@tstindexopenpre{#1}{#2}[]}}%
2520 \def\@tstindexopenpre#1#2[#3]#4#5{%
2521 \def\@tstidx@sort{#1}%
2522 \def\@tstidx@encap{#4}%
2523 \ifx\@tstidx@sort\@empty
2524 \def\@tstidx@entry{#2}%
2525 \else
2526 \toks@{#1}%
2527 \edef\@tstidx@entry{\the\toks@\tstidxactual}%
2528 \expandafter\def\expandafter\@tstidx@entry\expandafter{\@tstidx@entry#2}%
2529 \fi
2530 \ifx\@tstidx@encap\@empty
2531 \expandafter\toks@\expandafter{\@tstidx@entry}%
2532 \edef\@tstidx@entry{\the\toks@\tstidxencap\tstidxopenrange}%
2533 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
2534 \iftestidxshowmarks
2535 \tstidxtext{\tstidxopenmarker#5}%
2536 \else
2537 #5%
2538 \fi
2539 \else
2540 \expandafter\toks@\expandafter{\@tstidx@entry}%
2541 \edef\@tstidx@entry{\the\toks@\tstidxencap\tstidxopenrange#4}%
2542 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
2543 \iftestidxshowmarks
2544 \tstidxtext{\tstidxencaptext{#4}{\tstidxopenmarker#5}}%
2545 \else
2546 #5%
2547 \fi
2548 \fi
2549 }
2550 % \end{macrocode}
2551 %\end{macro}
2552 %
2553 %\begin{macro}{\tstindexclosepre}
2554 %As previous but ends a range.
2555 % \begin{macrocode}
2556 \newcommand*{\tstindexclosepre}[2][]{%
2557 \@ifnextchar[{\@tstindexclosepre{#1}{#2}}{\@tstindexclosepre{#1}{#2}[]}}%
2558 \def\@tstindexclosepre#1#2[#3]#4#5{%
2559 \def\@tstidx@sort{#1}%
2560 \def\@tstidx@encap{#4}%
2561 \ifx\@tstidx@sort\@empty
2562 \def\@tstidx@entry{#2}%
2563 \else
2564 \toks@{#1}%
2565 \edef\@tstidx@entry{\the\toks@\tstidxactual}%
2566 \expandafter\def\expandafter\@tstidx@entry\expandafter{\@tstidx@entry#2}%
2567 \fi
2568 \ifx\@tstidx@encap\@empty
2569 \expandafter\toks@\expandafter{\@tstidx@entry}%
2570 \edef\@tstidx@entry{\the\toks@\tstidxencap\tstidxcloserange}%
2571 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
2572 \iftestidxshowmarks
2573 \tstidxtext{\tstidxclosemarker#5}%
2574 \else
2575 #5%
2576 \fi
2577 \else
2578 \expandafter\toks@\expandafter{\@tstidx@entry}%
2579 \edef\@tstidx@entry{\the\toks@\tstidxencap\tstidxcloserange#4}%
2580 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
2581 \iftestidxshowmarks
2582 \tstidxtext{\tstidxencaptext{#4}{\tstidxclosemarker#5}}%
2583 \else
2584 #5%
2585 \fi
2586 \fi
2587 }
2588 % \end{macrocode}
2589 %\end{macro}
2590 %
2591 %\begin{macro}{\@tstidxseeencap}
2592 %\changes{1.1}{2017-08-11}{new}
2593 %Allow customization of cross-reference encaps.
2594 % \begin{macrocode}
2595 \newcommand*{\@tstidxseeencap}[1]{%
2596 \@ifundefined{tstidx@#1@encapname}{#1}{\csname tstidx@#1@encapname\endcsname}%
2597 }
2598 % \end{macrocode}
2599 %\end{macro}
2600 %
2601 %\begin{macro}{\tstidxSetSeeEncap}
2602 %\changes{1.1}{2017-08-11}{new}
2603 % \begin{macrocode}
2604 \newcommand*{\tstidxSetSeeEncap}[1]{%
2605 \@namedef{tstidx@see@encapname}{#1}%
2606 }
2607 % \end{macrocode}
2608 %\end{macro}
2609 %
2610 %\begin{macro}{\tstidxSetSeeAlsoEncap}
2611 %\changes{1.1}{2017-08-11}{new}
2612 % \begin{macrocode}
2613 \newcommand*{\tstidxSetSeeAlsoEncap}[1]{%
2614 \@namedef{tstidx@seealso@encapname}{#1}%
2615 }
2616 % \end{macrocode}
2617 %\end{macro}
2618 %
2619 %
2620 %\begin{macro}{\tstindexsee}
2621 %\begin{definition}
2622 %\cs{tstindexsee}\oarg{sort}\marg{term}\oarg{label}\marg{see
2623 %cs}\oarg{xr-labels}\marg{cross-reference}
2624 %\end{definition}
2625 % \begin{macrocode}
2626 \newcommand*{\tstindexsee}[2][]{%
2627 \@ifnextchar[{\@tstindex@see{#1}{#2}}{\@tstindex@see{#1}{#2}[]}}%
2628 \def\@tstindex@see#1#2[#3]#4{%
2629 \@ifnextchar[{\@tstindexsee{#1}{#2}{#3}{#4}}{\@tstindexsee{#1}{#2}{#3}{#4}[]}}%
2630 \def\@tstindexsee#1#2#3#4[#5]#6{%
2631 \def\@tstidx@sort{#1}%
2632 \def\@tstidx@entry{#2}%
2633 \ifx\@tstidx@sort\@empty
2634 \@tstidx@ifutfviii
2635 {%
2636 \tstidxprocessutf{\@tstidx@entry}{#2}%
2637 }%
2638 {%
2639 \def\@tstidx@sort{#2}%
2640 \tstidxprocessasciisort{\@tstidx@sort}{#2}%
2641 \ifx\@tstidx@sort\@tstidx@entry
2642 \else
2643 \expandafter\toks@\expandafter{\@tstidx@sort}%
2644 \edef\@tstidx@entry{\the\toks@\tstidxactual}%
2645 \expandafter\def\expandafter\@tstidx@entry\expandafter
2646 {\@tstidx@entry#2}%
2647 \fi
2648 }%
2649 \else
2650 \@tstidx@ifutfviii
2651 {%
2652 \expandafter\tstidxprocessutf\expandafter\@tstidx@sort
2653 \expandafter{\@tstidx@sort}%
2654 }%
2655 {%
2656 \expandafter\tstidxprocessasciisort\expandafter\@tstidx@sort
2657 \expandafter{\@tstidx@sort}%
2658 }%
2659 \expandafter\toks@\expandafter{\@tstidx@sort}%
2660 \edef\@tstidx@entry{\the\toks@\tstidxactual}%
2661 \expandafter\def\expandafter\@tstidx@entry\expandafter{\@tstidx@entry#2}%
2662 \fi
2663 \expandafter\toks@\expandafter{\@tstidx@entry}%
2664 \protected@edef\@tstidx@entry{\the\toks@\tstidxencap
2665 \@tstidxseeencap{#4}{#6}}%
2666 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
2667 \iftestidxshowmarks
2668 \tstidxseeref{#2}{#4}{#6}%
2669 \fi
2670 }
2671 % \end{macrocode}
2672 %\end{macro}
2673 %
2674 %
2675 %\begin{macro}{\tstindexutfsee}
2676 %\begin{definition}
2677 %\cs{tstindexutfsee}\oarg{ascii sort}\marg{ascii term}\oarg{utf sort}
2678 %\marg{utf term}\oarg{label}\marg{see cs}\oarg{xr-labels}%
2679 %\marg{ascii cross-reference}\marg{utf cross-reference}
2680 %\end{definition}
2681 % \begin{macrocode}
2682 \newcommand*{\tstindexutfsee}[2][]{%
2683 \@tstindexutfsee{#1}{#2}%
2684 }
2685 \newcommand*{\@tstindexutfsee}[2]{%
2686 \@ifnextchar[{\@tst@indexutfsee{#1}{#2}}{\@tst@indexutfsee{#1}{#2}[]}%
2687 }
2688 \def\@tst@indexutfsee#1#2[#3]#4{%
2689 \@ifnextchar[{\@@tst@indexutfsee{#1}{#2}{#3}{#4}}%
2690 {\@@tst@indexutfsee{#1}{#2}{#3}{#4}[]}%
2691 }
2692 \def\@@tst@indexutfsee#1#2#3#4[#5]#6{%
2693 \@ifnextchar[{\@@tst@@indexutfsee{#1}{#2}{#3}{#4}{#5}{#6}}%
2694 {\@@tst@@indexutfsee{#1}{#2}{#3}{#4}{#5}{#6}[]}%
2695 }
2696 \def\@@tst@@indexutfsee#1#2#3#4#5#6[#7]#8#9{%
2697 \@tstidx@ifutfviii
2698 {%
2699 \@tstindexsee{#3}{#4}{#5}{#6}[#7]{#9}%
2700 }%
2701 {%
2702 \@tstindexsee{#1}{#2}{#5}{#6}[#7]{#8}%
2703 }%
2704 }
2705 % \end{macrocode}
2706 %\end{macro}
2707 %
2708 %\subsection{Sub-Entries}
2709 %One sub-level.
2710 %\begin{macro}{\tstsubindexpost}
2711 %\begin{definition}
2712 %\cs{tstsubindexpost}\oarg{main sort}\marg{main term}\oarg{sub
2713 %sort}\marg{sub term}\oarg{label}\marg{encap}\marg{text}
2714 %\end{definition}
2715 % \begin{macrocode}
2716 \newcommand*{\tstsubindexpost}[2][]{%
2717 \def\@tstidx@sort{#1}%
2718 \def\@tstidx@term{#2}%
2719 \@tst@subindexpost
2720 }
2721 \newcommand*{\@tst@subindexpost}[2][]{%
2722 \@ifnextchar[{\@tstidx@subindexpost{#1}{#2}}{\@tstidx@subindexpost{#1}{#2}[]}}%
2723 \def\@tstidx@subindexpost#1#2[#3]#4#5{%
2724 \def\@tstidx@subsort{#1}%
2725 \def\@tstidx@subterm{#2}%
2726 \def\@tstidx@encap{#4}%
2727 \ifx\@tstidx@sort\@empty
2728 \let\@tstidx@entry\@tstidx@term
2729 \else
2730 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@sort}\tstidxactual
2731 \unexpanded\expandafter{\@tstidx@term}}%
2732 \fi
2733 \ifx\@tstidx@subsort\@empty
2734 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
2735 \unexpanded\expandafter{\@tstidx@subterm}}%
2736 \else
2737 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
2738 \unexpanded\expandafter{\@tstidx@subsort}\tstidxactual
2739 \unexpanded\expandafter{\@tstidx@subterm}}%
2740 \fi
2741 \ifx\@tstidx@encap\@empty
2742 \iftestidxshowmarks
2743 \tstidxtext{#5\tstidxsubmarker}%
2744 \else
2745 #5%
2746 \fi
2747 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
2748 \else
2749 \iftestidxshowmarks
2750 \tstidxtext{\tstidxencaptext{#4}{#5\tstidxsubmarker}}%
2751 \else
2752 #5%
2753 \fi
2754 \expandafter\toks@\expandafter{\@tstidx@entry}%
2755 \edef\@tstidx@entry{\the\toks@\tstidxencap#4}%
2756 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
2757 \fi
2758 }
2759 % \end{macrocode}
2760 %\end{macro}
2761 %
2762 %\begin{macro}{\tstsubindexopenpost}
2763 %\begin{definition}
2764 %\cs{tstsubindexopenpost}\oarg{main sort}\marg{main term}\oarg{sub
2765 %sort}\marg{sub term}\oarg{label}\marg{encap}\marg{text}
2766 %\end{definition}
2767 % \begin{macrocode}
2768 \newcommand*{\tstsubindexopenpost}[2][]{%
2769 \def\@tstidx@sort{#1}%
2770 \def\@tstidx@term{#2}%
2771 \@tst@subindexopenpost
2772 }
2773 \newcommand*{\@tst@subindexopenpost}[2][]{%
2774 \@ifnextchar[{\@tstidx@subindexopenpost{#1}{#2}}{\@tstidx@subindexopenpost{#1}{#2}[]}}%
2775 \def\@tstidx@subindexopenpost#1#2[#3]#4#5{%
2776 \def\@tstidx@subsort{#1}%
2777 \def\@tstidx@subterm{#2}%
2778 \def\@tstidx@encap{#4}%
2779 \ifx\@tstidx@sort\@empty
2780 \let\@tstidx@entry\@tstidx@term
2781 \else
2782 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@sort}\tstidxactual
2783 \unexpanded\expandafter{\@tstidx@term}}%
2784 \fi
2785 \ifx\@tstidx@subsort\@empty
2786 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
2787 \unexpanded\expandafter{\@tstidx@subterm}}%
2788 \else
2789 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
2790 \unexpanded\expandafter{\@tstidx@subsort}\tstidxactual
2791 \unexpanded\expandafter{\@tstidx@subterm}}%
2792 \fi
2793 \ifx\@tstidx@encap\@empty
2794 \iftestidxshowmarks
2795 \tstidxtext{#5\tstidxopensubmarker}%
2796 \else
2797 #5%
2798 \fi
2799 \expandafter\toks@\expandafter{\@tstidx@entry}%
2800 \edef\@tstidx@entry{\the\toks@\tstidxencap\tstidxopenrange}%
2801 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
2802 \else
2803 \iftestidxshowmarks
2804 \tstidxtext{\tstidxencaptext{#4}{#5\tstidxopensubmarker}}%
2805 \else
2806 #5%
2807 \fi
2808 \expandafter\toks@\expandafter{\@tstidx@entry}%
2809 \edef\@tstidx@entry{\the\toks@\tstidxencap\tstidxopenrange#4}%
2810 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
2811 \fi
2812 }
2813 % \end{macrocode}
2814 %\end{macro}
2815 %
2816 %\begin{macro}{\tstsubindexclosepost}
2817 %\begin{definition}
2818 %\cs{tstsubindexclosepost}\oarg{main sort}\marg{main term}\oarg{sub
2819 %sort}\marg{sub term}\oarg{label}\marg{encap}\marg{text}
2820 %\end{definition}
2821 % \begin{macrocode}
2822 \newcommand*{\tstsubindexclosepost}[2][]{%
2823 \def\@tstidx@sort{#1}%
2824 \def\@tstidx@term{#2}%
2825 \@tst@subindexclosepost
2826 }
2827 \newcommand*{\@tst@subindexclosepost}[2][]{%
2828 \@ifnextchar[{\@tstidx@subindexclosepost{#1}{#2}}{\@tstidx@subindexclosepost{#1}{#2}[]}}%
2829 \def\@tstidx@subindexclosepost#1#2[#3]#4#5{%
2830 \def\@tstidx@subsort{#1}%
2831 \def\@tstidx@subterm{#2}%
2832 \def\@tstidx@encap{#4}%
2833 \ifx\@tstidx@sort\@empty
2834 \let\@tstidx@entry\@tstidx@term
2835 \else
2836 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@sort}\tstidxactual
2837 \unexpanded\expandafter{\@tstidx@term}}%
2838 \fi
2839 \ifx\@tstidx@subsort\@empty
2840 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
2841 \unexpanded\expandafter{\@tstidx@subterm}}%
2842 \else
2843 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
2844 \unexpanded\expandafter{\@tstidx@subsort}\tstidxactual
2845 \unexpanded\expandafter{\@tstidx@subterm}}%
2846 \fi
2847 \ifx\@tstidx@encap\@empty
2848 \iftestidxshowmarks
2849 \tstidxtext{#5\tstidxclosesubmarker}%
2850 \else
2851 #5%
2852 \fi
2853 \expandafter\toks@\expandafter{\@tstidx@entry}%
2854 \edef\@tstidx@entry{\the\toks@\tstidxencap\tstidxcloserange}%
2855 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
2856 \else
2857 \iftestidxshowmarks
2858 \tstidxtext{\tstidxencaptext{#4}{#5\tstidxclosesubmarker}}%
2859 \else
2860 #5%
2861 \fi
2862 \expandafter\toks@\expandafter{\@tstidx@entry}%
2863 \edef\@tstidx@entry{\the\toks@\tstidxencap\tstidxcloserange#4}%
2864 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
2865 \fi
2866 }
2867 % \end{macrocode}
2868 %\end{macro}
2869 %
2870 %\begin{macro}{\tstsubindexpre}
2871 %\begin{definition}
2872 %\cs{tstsubindexpre}\oarg{main sort}\marg{main term}\oarg{sub
2873 %sort}\marg{sub term}\oarg{label}\marg{encap}\marg{text}
2874 %\end{definition}
2875 % \begin{macrocode}
2876 \newcommand*{\tstsubindexpre}[2][]{%
2877 \def\@tstidx@sort{#1}%
2878 \def\@tstidx@term{#2}%
2879 \@tst@subindexpre
2880 }
2881 \newcommand*{\@tst@subindexpre}[2][]{%
2882 \@ifnextchar[{\@tstidx@subindexpre{#1}{#2}}{\@tstidx@subindexpre{#1}{#2}[]}}%
2883 \def\@tstidx@subindexpre#1#2[#3]#4#5{%
2884 \def\@tstidx@subsort{#1}%
2885 \def\@tstidx@subterm{#2}%
2886 \def\@tstidx@encap{#4}%
2887 \ifx\@tstidx@sort\@empty
2888 \let\@tstidx@entry\@tstidx@term
2889 \else
2890 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@sort}\tstidxactual
2891 \unexpanded\expandafter{\@tstidx@term}}%
2892 \fi
2893 \ifx\@tstidx@subsort\@empty
2894 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
2895 \unexpanded\expandafter{\@tstidx@subterm}}%
2896 \else
2897 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
2898 \unexpanded\expandafter{\@tstidx@subsort}\tstidxactual
2899 \unexpanded\expandafter{\@tstidx@subterm}}%
2900 \fi
2901 \ifx\@tstidx@encap\@empty
2902 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
2903 \iftestidxshowmarks
2904 \tstidxtext{#5\tstidxsubmarker}%
2905 \else
2906 #5%
2907 \fi
2908 \else
2909 \expandafter\toks@\expandafter{\@tstidx@entry}%
2910 \edef\@tstidx@entry{\the\toks@\tstidxencap#4}%
2911 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
2912 \iftestidxshowmarks
2913 \tstidxtext{\tstidxencaptext{#4}{#5\tstidxsubmarker}}%
2914 \else
2915 #5%
2916 \fi
2917 \fi
2918 }
2919 % \end{macrocode}
2920 %\end{macro}
2921 %
2922 %\begin{macro}{\tstsubindexopenpre}
2923 %\begin{definition}
2924 %\cs{tstsubindexopenpre}\oarg{main sort}\marg{main term}\oarg{sub
2925 %sort}\marg{sub term}\marg{label}\marg{encap}\marg{text}
2926 %\end{definition}
2927 % \begin{macrocode}
2928 \newcommand*{\tstsubindexopenpre}[2][]{%
2929 \def\@tstidx@sort{#1}%
2930 \def\@tstidx@term{#2}%
2931 \@tst@subindexopenpre
2932 }
2933 \newcommand*{\@tst@subindexopenpre}[2][]{%
2934 \@ifnextchar[{\@tstidx@subindexopenpre{#1}{#2}}{\@tstidx@subindexopenpre{#1}{#2}[]}}%
2935 \def\@tstidx@subindexopenpre#1#2[#3]#4#5{%
2936 \def\@tstidx@subsort{#1}%
2937 \def\@tstidx@subterm{#2}%
2938 \def\@tstidx@encap{#4}%
2939 \ifx\@tstidx@sort\@empty
2940 \let\@tstidx@entry\@tstidx@term
2941 \else
2942 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@sort}\tstidxactual
2943 \unexpanded\expandafter{\@tstidx@term}}%
2944 \fi
2945 \ifx\@tstidx@subsort\@empty
2946 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
2947 \unexpanded\expandafter{\@tstidx@subterm}}%
2948 \else
2949 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
2950 \unexpanded\expandafter{\@tstidx@subsort}\tstidxactual
2951 \unexpanded\expandafter{\@tstidx@subterm}}%
2952 \fi
2953 \ifx\@tstidx@encap\@empty
2954 \expandafter\toks@\expandafter{\@tstidx@entry}%
2955 \edef\@tstidx@entry{\the\toks@\tstidxencap\tstidxopenrange}%
2956 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
2957 \iftestidxshowmarks
2958 \tstidxtext{#5\tstidxopensubmarker}%
2959 \else
2960 #5%
2961 \fi
2962 \else
2963 \expandafter\toks@\expandafter{\@tstidx@entry}%
2964 \edef\@tstidx@entry{\the\toks@\tstidxencap\tstidxopenrange#4}%
2965 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
2966 \iftestidxshowmarks
2967 \tstidxtext{\tstidxencaptext{#4}{#5\tstidxopensubmarker}}%
2968 \else
2969 #5%
2970 \fi
2971 \fi
2972 }
2973 % \end{macrocode}
2974 %\end{macro}
2975 %
2976 %\begin{macro}{\tstsubindexclosepre}
2977 %\begin{definition}
2978 %\cs{tstsubindexclosepre}\oarg{main sort}\marg{main term}\oarg{sub
2979 %sort}\marg{sub term}\oarg{label}\marg{encap}\marg{text}
2980 %\end{definition}
2981 % \begin{macrocode}
2982 \newcommand*{\tstsubindexclosepre}[2][]{%
2983 \def\@tstidx@sort{#1}%
2984 \def\@tstidx@term{#2}%
2985 \@tst@subindexclosepre
2986 }
2987 \newcommand*{\@tst@subindexclosepre}[2][]{%
2988 \@ifnextchar[{\@tstidx@subindexclosepre{#1}{#2}}{\@tstidx@subindexclosepre{#1}{#2}[]}}%
2989 \def\@tstidx@subindexclosepre#1#2[#3]#4#5{%
2990 \def\@tstidx@subsort{#1}%
2991 \def\@tstidx@subterm{#2}%
2992 \def\@tstidx@encap{#4}%
2993 \ifx\@tstidx@sort\@empty
2994 \let\@tstidx@entry\@tstidx@term
2995 \else
2996 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@sort}\tstidxactual
2997 \unexpanded\expandafter{\@tstidx@term}}%
2998 \fi
2999 \ifx\@tstidx@subsort\@empty
3000 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3001 \unexpanded\expandafter{\@tstidx@subterm}}%
3002 \else
3003 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3004 \unexpanded\expandafter{\@tstidx@subsort}\tstidxactual
3005 \unexpanded\expandafter{\@tstidx@subterm}}%
3006 \fi
3007 \ifx\@tstidx@encap\@empty
3008 \expandafter\toks@\expandafter{\@tstidx@entry}%
3009 \edef\@tstidx@entry{\the\toks@\tstidxencap\tstidxcloserange}%
3010 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
3011 \iftestidxshowmarks
3012 \tstidxtext{#5\tstidxclosesubmarker}%
3013 \else
3014 #5%
3015 \fi
3016 \else
3017 \expandafter\toks@\expandafter{\@tstidx@entry}%
3018 \edef\@tstidx@entry{\the\toks@\tstidxencap\tstidxcloserange#4}%
3019 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
3020 \iftestidxshowmarks
3021 \tstidxtext{\tstidxencaptext{#4}{#5\tstidxclosesubmarker}}%
3022 \else
3023 #5%
3024 \fi
3025 \fi
3026 }
3027 % \end{macrocode}
3028 %\end{macro}
3029 %
3030 %\begin{macro}{\tstindexsubsee}
3031 %\begin{definition}
3032 %\cs{tstindexsubsee}\oarg{main sort}\marg{main term}\oarg{sub sort}
3033 %\marg{sub term}\oarg{label}\marg{cs name}\oarg{xr-labels}\marg{text}
3034 %\end{definition}
3035 % \begin{macrocode}
3036 \newcommand*{\tstindexsubsee}[2][]{%
3037 \def\@tstidx@sort{#1}%
3038 \def\@tstidx@term{#2}%
3039 \ifx\@tstidx@sort\@empty
3040 \def\@tstidx@entry{#2}%
3041 \else
3042 \toks@{#1}%
3043 \edef\@tstidx@entry{\the\toks@\tstidxactual}%
3044 \expandafter\def\expandafter\@tstidx@entry\expandafter{\@tstidx@entry#2}%
3045 \fi
3046 \@tstindexsubsee
3047 }
3048 % \end{macrocode}
3049 %\end{macro}
3050 %\begin{macro}{\@tstindexsubsee}
3051 % \begin{macrocode}
3052 \newcommand*{\@tstindexsubsee}[2][]{%
3053 \@ifnextchar[{\@tstidx@index@subsee{#1}{#2}}%
3054 {\@tstidx@index@subsee{#1}{#2}[]}%
3055 }%
3056 \def\@tstidx@index@subsee#1#2[#3]#4{%
3057 \@ifnextchar[{\@tstidx@indexsubsee{#1}{#2}{#3}{#4}}%
3058 {\@tstidx@indexsubsee{#1}{#2}{#3}{#4}[]}%
3059 }
3060 \def\@tstidx@indexsubsee#1#2#3#4[#5]#6{%
3061 \def\@tstidx@subsort{#1}%
3062 \ifx\@tstidx@subsort\@empty
3063 \toks@{#2}%
3064 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}%
3065 \tstidxlevel\the\toks@}%
3066 \else
3067 \toks@{#1}%
3068 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}%
3069 \tstidxlevel\the\toks@\tstidxactual}%
3070 \expandafter\def\expandafter\@tstidx@entry\expandafter{\@tstidx@entry#2}%
3071 \fi
3072 \expandafter\toks@\expandafter{\@tstidx@entry}%
3073 \edef\@tstidx@entry{\the\toks@\tstidxencap
3074 \@tstidxseeencap{#4}{#6}}%
3075 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
3076 \iftestidxshowmarks
3077 \tstidxsubseeref{\@tstidx@term}{#2}{#4}{#6}%
3078 \fi
3079 }
3080 % \end{macrocode}
3081 %\end{macro}
3082 %
3083 %
3084 %Two sub-levels.
3085 %\begin{macro}{\tstsubsubindexpost}
3086 %\begin{definition}
3087 %\cs{tstsubsubindexpost}\oarg{main sort}\marg{main term}\oarg{sub
3088 %sort}\marg{sub term}\oarg{sub-sub sort}\marg{sub-sub
3089 %term}\oarg{label}\marg{encap}\marg{text}
3090 %\end{definition}
3091 % \begin{macrocode}
3092 \newcommand*{\tstsubsubindexpost}[2][]{%
3093 \def\@tstidx@sort{#1}%
3094 \def\@tstidx@term{#2}%
3095 \@tst@subsubindexpost
3096 }
3097 \newcommand*{\@tst@subsubindexpost}[2][]{%
3098 \def\@tstidx@subsort{#1}%
3099 \def\@tstidx@subterm{#2}%
3100 \@@tst@subsubindexpost
3101 }
3102 \newcommand*{\@@tst@subsubindexpost}[2][]{%
3103 \@ifnextchar[{\@@tstidx@subsubindexpost{#1}{#2}}%
3104 {\@@tstidx@subsubindexpost{#1}{#2}[]}}%
3105 \def\@@tstidx@subsubindexpost#1#2[#3]#4#5{%
3106 \def\@tstidx@subsubsort{#1}%
3107 \def\@tstidx@subsubterm{#2}%
3108 \def\@tstidx@encap{#4}%
3109 \ifx\@tstidx@sort\@empty
3110 \let\@tstidx@entry\@tstidx@term
3111 \else
3112 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@sort}\tstidxactual
3113 \unexpanded\expandafter{\@tstidx@term}}%
3114 \fi
3115 \ifx\@tstidx@subsort\@empty
3116 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3117 \unexpanded\expandafter{\@tstidx@subterm}}%
3118 \else
3119 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3120 \unexpanded\expandafter{\@tstidx@subsort}\tstidxactual
3121 \unexpanded\expandafter{\@tstidx@subterm}}%
3122 \fi
3123 \ifx\@tstidx@subsubsort\@empty
3124 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3125 \unexpanded\expandafter{\@tstidx@subsubterm}}%
3126 \else
3127 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3128 \unexpanded\expandafter{\@tstidx@subsubsort}\tstidxactual
3129 \unexpanded\expandafter{\@tstidx@subsubterm}}%
3130 \fi
3131 \ifx\@tstidx@encap\@empty
3132 \iftestidxshowmarks
3133 \tstidxtext{#5\tstidxsubsubmarker}%
3134 \else
3135 #5%
3136 \fi
3137 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
3138 \else
3139 \iftestidxshowmarks
3140 \tstidxtext{\tstidxencaptext{#4}{#5\tstidxsubsubmarker}}%
3141 \else
3142 #5%
3143 \fi
3144 \expandafter\toks@\expandafter{\@tstidx@entry}%
3145 \edef\@tstidx@entry{\the\toks@\tstidxencap#4}%
3146 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
3147 \fi
3148 }
3149 % \end{macrocode}
3150 %\end{macro}
3151 %
3152 %\begin{macro}{\tstsubsubindexopenpost}
3153 %\begin{definition}
3154 %\cs{tstsubsubindexopenpost}\oarg{main sort}\marg{main term}\oarg{sub
3155 %sort}\marg{sub term}\oarg{sub-sub sort}\marg{sub-sub
3156 %term}\oarg{label}\marg{encap}\marg{text}
3157 %\end{definition}
3158 % \begin{macrocode}
3159 \newcommand*{\tstsubsubindexopenpost}[2][]{%
3160 \def\@tstidx@sort{#1}%
3161 \def\@tstidx@term{#2}%
3162 \@tst@subsubindexopenpost
3163 }
3164 \newcommand*{\@tst@subsubindexopenpost}[2][]{%
3165 \def\@tstidx@subsort{#1}%
3166 \def\@tstidx@subterm{#2}%
3167 \@@tst@subsubindexopenpost
3168 }
3169 \newcommand*{\@@tst@subsubindexopenpost}[2][]{%
3170 \@ifnextchar[{\@@tstidx@subsubindexopenpost{#1}{#2}}%
3171 {\@@tstidx@subsubindexopenpost{#1}{#2}[]}%
3172 }%
3173
3174 \def\@@tstidx@subsubindexopenpost#1#2[#3]#4#5{%
3175 \def\@tstidx@subsubsort{#1}%
3176 \def\@tstidx@subsubterm{#2}%
3177 \def\@tstidx@encap{#4}%
3178 \ifx\@tstidx@sort\@empty
3179 \let\@tstidx@entry\@tstidx@term
3180 \else
3181 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@sort}\tstidxactual
3182 \unexpanded\expandafter{\@tstidx@term}}%
3183 \fi
3184 \ifx\@tstidx@subsort\@empty
3185 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3186 \unexpanded\expandafter{\@tstidx@subterm}}%
3187 \else
3188 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3189 \unexpanded\expandafter{\@tstidx@subsort}\tstidxactual
3190 \unexpanded\expandafter{\@tstidx@subterm}}%
3191 \fi
3192 \ifx\@tstidx@subsubsort\@empty
3193 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3194 \unexpanded\expandafter{\@tstidx@subsubterm}}%
3195 \else
3196 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3197 \unexpanded\expandafter{\@tstidx@subsubsort}\tstidxactual
3198 \unexpanded\expandafter{\@tstidx@subsubterm}}%
3199 \fi
3200 \ifx\@tstidx@encap\@empty
3201 \iftestidxshowmarks
3202 \tstidxtext{#5\tstidxopensubmarker}%
3203 \else
3204 #5%
3205 \fi
3206 \expandafter\toks@\expandafter{\@tstidx@entry}%
3207 \edef\@tstidx@entry{\the\toks@\tstidxencap\tstidxopenrange}%
3208 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
3209 \else
3210 \iftestidxshowmarks
3211 \tstidxtext{\tstidxencaptext{#4}{#5\tstidxopensubmarker}}%
3212 \else
3213 #5%
3214 \fi
3215 \expandafter\toks@\expandafter{\@tstidx@entry}%
3216 \edef\@tstidx@entry{\the\toks@\tstidxencap\tstidxopenrange#4}%
3217 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
3218 \fi
3219 }
3220 % \end{macrocode}
3221 %\end{macro}
3222 %
3223 %\begin{macro}{\tstsubsubindexclosepost}
3224 %\begin{definition}
3225 %\cs{tstsubsubindexclosepost}\oarg{main sort}\marg{main term}\oarg{sub
3226 %sort}\marg{sub term}\oarg{sub-sub sort}\marg{sub-sub
3227 %term}\oarg{label}\marg{encap}\marg{text}
3228 %\end{definition}
3229 % \begin{macrocode}
3230 \newcommand*{\tstsubsubindexclosepost}[2][]{%
3231 \def\@tstidx@sort{#1}%
3232 \def\@tstidx@term{#2}%
3233 \@tst@subsubindexclosepost
3234 }
3235 \newcommand*{\@tst@subsubindexclosepost}[2][]{%
3236 \def\@tstidx@subsort{#1}%
3237 \def\@tstidx@subterm{#2}%
3238 \@@tst@subsubindexclosepost
3239 }
3240 \newcommand*{\@@tst@subsubindexclosepost}[2][]{%
3241 \@ifnextchar[{\@@tstidx@subsubindexclosepost{#1}{#2}}%
3242 {\@@tstidx@subsubindexclosepost{#1}{#2}[]}%
3243 }%
3244
3245 \def\@@tstidx@subsubindexclosepost#1#2[#3]#4#5{%
3246 \def\@tstidx@subsubsort{#1}%
3247 \def\@tstidx@subsubterm{#2}%
3248 \def\@tstidx@encap{#4}%
3249 \ifx\@tstidx@sort\@empty
3250 \let\@tstidx@entry\@tstidx@term
3251 \else
3252 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@sort}\tstidxactual
3253 \unexpanded\expandafter{\@tstidx@term}}%
3254 \fi
3255 \ifx\@tstidx@subsort\@empty
3256 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3257 \unexpanded\expandafter{\@tstidx@subterm}}%
3258 \else
3259 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3260 \unexpanded\expandafter{\@tstidx@subsort}\tstidxactual
3261 \unexpanded\expandafter{\@tstidx@subterm}}%
3262 \fi
3263 \ifx\@tstidx@subsubsort\@empty
3264 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3265 \unexpanded\expandafter{\@tstidx@subsubterm}}%
3266 \else
3267 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3268 \unexpanded\expandafter{\@tstidx@subsubsort}\tstidxactual
3269 \unexpanded\expandafter{\@tstidx@subsubterm}}%
3270 \fi
3271 \ifx\@tstidx@encap\@empty
3272 \iftestidxshowmarks
3273 \tstidxtext{#5\tstidxclosesubmarker}%
3274 \else
3275 #5%
3276 \fi
3277 \expandafter\toks@\expandafter{\@tstidx@entry}%
3278 \edef\@tstidx@entry{\the\toks@\tstidxencap\tstidxcloserange}%
3279 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
3280 \else
3281 \iftestidxshowmarks
3282 \tstidxtext{\tstidxencaptext{#4}{#5\tstidxclosesubmarker}}%
3283 \else
3284 #5%
3285 \fi
3286 \expandafter\toks@\expandafter{\@tstidx@entry}%
3287 \edef\@tstidx@entry{\the\toks@\tstidxencap\tstidxcloserange#4}%
3288 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
3289 \fi
3290 }
3291 % \end{macrocode}
3292 %\end{macro}
3293 %
3294 %\begin{macro}{\tstsubsubindexpre}
3295 %\begin{definition}
3296 %\cs{tstsubsubindexpre}\oarg{main sort}\marg{main term}\oarg{sub
3297 %sort}\marg{sub term}\oarg{sub-sub sort}\marg{sub-sub
3298 %term}\oarg{label}\marg{encap}\marg{text}
3299 %\end{definition}
3300 % \begin{macrocode}
3301 \newcommand*{\tstsubsubindexpre}[2][]{%
3302 \def\@tstidx@sort{#1}%
3303 \def\@tstidx@term{#2}%
3304 \@tst@subsubindexpre
3305 }
3306 \newcommand*{\@tst@subsubindexpre}[2][]{%
3307 \def\@tstidx@subsort{#1}%
3308 \def\@tstidx@subterm{#2}%
3309 \@@tst@subsubindexpre
3310 }
3311 \newcommand*{\@@tst@subsubindexpre}[2][]{%
3312 \@ifnextchar[{\@@tstidx@subsubindexpre{#1}{#2}}%
3313 {\@@tstidx@subsubindexpre{#1}{#2}[]}%
3314 }%
3315
3316 \def\@@tstidx@subsubindexpre#1#2[#3]#4#5{%
3317 \def\@tstidx@subsubsort{#1}%
3318 \def\@tstidx@subsubterm{#2}%
3319 \def\@tstidx@encap{#4}%
3320 \ifx\@tstidx@sort\@empty
3321 \let\@tstidx@entry\@tstidx@term
3322 \else
3323 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@sort}\tstidxactual
3324 \unexpanded\expandafter{\@tstidx@term}}%
3325 \fi
3326 \ifx\@tstidx@subsort\@empty
3327 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3328 \unexpanded\expandafter{\@tstidx@subterm}}%
3329 \else
3330 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3331 \unexpanded\expandafter{\@tstidx@subsort}\tstidxactual
3332 \unexpanded\expandafter{\@tstidx@subterm}}%
3333 \fi
3334 \ifx\@tstidx@subsubsort\@empty
3335 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3336 \unexpanded\expandafter{\@tstidx@subsubterm}}%
3337 \else
3338 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3339 \unexpanded\expandafter{\@tstidx@subsubsort}\tstidxactual
3340 \unexpanded\expandafter{\@tstidx@subsubterm}}%
3341 \fi
3342 \ifx\@tstidx@encap\@empty
3343 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
3344 \iftestidxshowmarks
3345 \tstidxtext{#5\tstidxsubsubmarker}%
3346 \else
3347 #5%
3348 \fi
3349 \else
3350 \expandafter\toks@\expandafter{\@tstidx@entry}%
3351 \edef\@tstidx@entry{\the\toks@\tstidxencap#4}%
3352 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
3353 \iftestidxshowmarks
3354 \tstidxtext{\tstidxencaptext{#4}{#5\tstidxsubsubmarker}}%
3355 \else
3356 #5%
3357 \fi
3358 \fi
3359 }
3360 % \end{macrocode}
3361 %\end{macro}
3362 %
3363 %\begin{macro}{\tstsubsubindexopenpre}
3364 %\begin{definition}
3365 %\cs{tstsubsubindexopenpre}\oarg{main sort}\marg{main term}\oarg{sub
3366 %sort}\marg{sub term}\oarg{sub-sub sort}\marg{sub-sub
3367 %term}\oarg{label}\marg{encap}\marg{text}
3368 %\end{definition}
3369 % \begin{macrocode}
3370 \newcommand*{\tstsubsubindexopenpre}[2][]{%
3371 \def\@tstidx@sort{#1}%
3372 \def\@tstidx@term{#2}%
3373 \@tst@subsubindexopenpre
3374 }
3375 \newcommand*{\@tst@subsubindexopenpre}[2][]{%
3376 \def\@tstidx@subsort{#1}%
3377 \def\@tstidx@subterm{#2}%
3378 \@@tst@subsubindexopenpre
3379 }
3380 \newcommand*{\@@tst@subsubindexopenpre}[2][]{%
3381 \@ifnextchar[{\@@tstidx@subsubindexopenpre{#1}{#2}}%
3382 {\@@tstidx@subsubindexopenpre{#1}{#2}[]}%
3383 }%
3384 \def\@@tstidx@subsubindexopenpre#1#2[#3]#4#5{%
3385 \def\@tstidx@subsubsort{#1}%
3386 \def\@tstidx@subsubterm{#2}%
3387 \def\@tstidx@encap{#4}%
3388 \ifx\@tstidx@sort\@empty
3389 \let\@tstidx@entry\@tstidx@term
3390 \else
3391 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@sort}\tstidxactual
3392 \unexpanded\expandafter{\@tstidx@term}}%
3393 \fi
3394 \ifx\@tstidx@subsort\@empty
3395 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3396 \unexpanded\expandafter{\@tstidx@subterm}}%
3397 \else
3398 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3399 \unexpanded\expandafter{\@tstidx@subsort}\tstidxactual
3400 \unexpanded\expandafter{\@tstidx@subterm}}%
3401 \fi
3402 \ifx\@tstidx@subsubsort\@empty
3403 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3404 \unexpanded\expandafter{\@tstidx@subsubterm}}%
3405 \else
3406 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3407 \unexpanded\expandafter{\@tstidx@subsubsort}\tstidxactual
3408 \unexpanded\expandafter{\@tstidx@subsubterm}}%
3409 \fi
3410 \ifx\@tstidx@encap\@empty
3411 \expandafter\toks@\expandafter{\@tstidx@entry}%
3412 \edef\@tstidx@entry{\the\toks@\tstidxencap\tstidxopenrange}%
3413 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
3414 \iftestidxshowmarks
3415 \tstidxtext{#5\tstidxopensubmarker}%
3416 \else
3417 #5%
3418 \fi
3419 \else
3420 \expandafter\toks@\expandafter{\@tstidx@entry}%
3421 \edef\@tstidx@entry{\the\toks@\tstidxencap\tstidxopenrange#4}%
3422 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
3423 \iftestidxshowmarks
3424 \tstidxtext{\tstidxencaptext{#4}{#5\tstidxopensubmarker}}%
3425 \else
3426 #5%
3427 \fi
3428 \fi
3429 }
3430 % \end{macrocode}
3431 %\end{macro}
3432 %
3433 %\begin{macro}{\tstsubsubindexclosepre}
3434 %\begin{definition}
3435 %\cs{tstsubsubindexclosepre}\oarg{main sort}\marg{main term}\oarg{sub
3436 %sort}\marg{sub term}\oarg{sub-sub sort}\marg{sub-sub
3437 %term}\oarg{label}\marg{encap}\marg{text}
3438 %\end{definition}
3439 % \begin{macrocode}
3440 \newcommand*{\tstsubsubindexclosepre}[2][]{%
3441 \def\@tstidx@sort{#1}%
3442 \def\@tstidx@term{#2}%
3443 \@tst@subsubindexclosepre
3444 }
3445 \newcommand*{\@tst@subsubindexclosepre}[2][]{%
3446 \def\@tstidx@subsort{#1}%
3447 \def\@tstidx@subterm{#2}%
3448 \@@tst@subsubindexclosepre
3449 }
3450 \newcommand*{\@@tst@subsubindexclosepre}[2][]{%
3451 \@ifnextchar[{\@@tstidx@subsubindexclosepre{#1}{#2}}%
3452 {\@@tstidx@subsubindexclosepre{#1}{#2}[]}%
3453 }%
3454
3455 \def\@@tstidx@subsubindexclosepre#1#2[#3]#4#5{%
3456 \def\@tstidx@subsubsort{#1}%
3457 \def\@tstidx@subsubterm{#2}%
3458 \def\@tstidx@encap{#4}%
3459 \ifx\@tstidx@sort\@empty
3460 \let\@tstidx@entry\@tstidx@term
3461 \else
3462 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@sort}\tstidxactual
3463 \unexpanded\expandafter{\@tstidx@term}}%
3464 \fi
3465 \ifx\@tstidx@subsort\@empty
3466 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3467 \unexpanded\expandafter{\@tstidx@subterm}}%
3468 \else
3469 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3470 \unexpanded\expandafter{\@tstidx@subsort}\tstidxactual
3471 \unexpanded\expandafter{\@tstidx@subterm}}%
3472 \fi
3473 \ifx\@tstidx@subsubsort\@empty
3474 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3475 \unexpanded\expandafter{\@tstidx@subsubterm}}%
3476 \else
3477 \edef\@tstidx@entry{\unexpanded\expandafter{\@tstidx@entry}\tstidxlevel
3478 \unexpanded\expandafter{\@tstidx@subsubsort}\tstidxactual
3479 \unexpanded\expandafter{\@tstidx@subsubterm}}%
3480 \fi
3481 \ifx\@tstidx@encap\@empty
3482 \expandafter\toks@\expandafter{\@tstidx@entry}%
3483 \edef\@tstidx@entry{\the\toks@\tstidxencap\tstidxcloserange}%
3484 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
3485 \iftestidxshowmarks
3486 \tstidxtext{#5\tstidxclosesubmarker}%
3487 \else
3488 #5%
3489 \fi
3490 \else
3491 \expandafter\toks@\expandafter{\@tstidx@entry}%
3492 \edef\@tstidx@entry{\the\toks@\tstidxencap\tstidxcloserange#4}%
3493 \expandafter\@tstindex\expandafter{\@tstidx@entry}%
3494 \iftestidxshowmarks
3495 \tstidxtext{\tstidxencaptext{#4}{#5\tstidxclosesubmarker}}%
3496 \else
3497 #5%
3498 \fi
3499 \fi
3500 }
3501 % \end{macrocode}
3502 %\end{macro}
3503 %
3504 %\section{Filler Text Generator}
3505 %\begin{macro}{\testidx}
3506 %Provide a command similar to \cs{lipsum} from the \sty{lipsum}
3507 %package. May take a comma-separated list or a range of paragraph
3508 %indices. The starred form suppresses paragraph breaks.
3509 % \begin{macrocode}
3510 \newcommand*{\testidx}{%
3511 \@ifstar
3512 {%
3513 \def\@testidx@block@sep{\space}%
3514 \@testidx
3515 }%
3516 {%
3517 \def\@testidx@block@sep{\tstidxdefblocksep}%
3518 \@testidx
3519 }%
3520 }
3521 % \end{macrocode}
3522 %\end{macro}
3523 %\begin{macro}{\@testidx}
3524 % \begin{macrocode}
3525 \newcommand*{\@testidx}[1][1-\tstidxmaxblocks]{%
3526 \@for\@tidx@block@range:=#1\do{%
3527 \ifx\@tidx@block@range\@empty
3528 \else
3529 \expandafter\@test@idx\@tidx@block@range-\@nil-\@nil\@end@test@idx
3530 \fi
3531 }%
3532 }
3533 % \end{macrocode}
3534 %\end{macro}
3535 %
3536 %\begin{macro}{\tstidxdefblocksep}
3537 % The default separator between blocks is \cs{par}.
3538 % \begin{macrocode}
3539 \newcommand{\tstidxdefblocksep}{\par}
3540 % \end{macrocode}
3541 %\end{macro}
3542 %
3543 %\begin{macro}{\tstidxprefixblock}
3544 %Prefix for each paragraph. Argument is the paragraph number.
3545 % \begin{macrocode}
3546 \newcommand*{\tstidxprefixblock}[1]{{\scriptsize\number#1.}\ }
3547 % \end{macrocode}
3548 %\end{macro}
3549 %
3550 %\begin{macro}{\@tidx@parctr}
3551 % \begin{macrocode}
3552 \newcount\@tidx@parctr
3553 % \end{macrocode}
3554 %\end{macro}
3555 %
3556 %\begin{macro}{\@test@idx}
3557 % \begin{macrocode}
3558 \def\@test@idx#1-#2-#3\@end@test@idx{%
3559 \def\@tst@idx@arg{#1}%
3560 \ifx\@tst@idx@arg\@nnil
3561 \PackageError{testidx}{Invalid range `\@tidx@block@range'}{}%
3562 \else
3563 \def\@tst@idx@arg{#2}%
3564 \ifx\@tst@idx@arg\@empty
3565 \PackageError{testidx}{Invalid range `\@tidx@block@range'}{}%
3566 \else
3567 \ifx\@tst@idx@arg\@nnil
3568 \@@test@idx{#1}%
3569 \else
3570 \ifnum#2<#1\relax
3571 \@tidx@parctr=\numexpr#1+1\relax
3572 \loop
3573 \advance\@tidx@parctr by -\@ne
3574 \@@test@idx\@tidx@parctr
3575 \ifnum\@tidx@parctr>#2
3576 \repeat
3577 \else
3578 \@tidx@parctr=\numexpr#1-1\relax
3579 \loop
3580 \advance\@tidx@parctr by \@ne
3581 \@@test@idx\@tidx@parctr
3582 \ifnum\@tidx@parctr<#2
3583 \repeat
3584 \fi
3585 \fi
3586 \fi
3587 \fi
3588 }
3589 % \end{macrocode}
3590 %\end{macro}
3591 %
3592 %\begin{macro}{\@@test@idx}
3593 %Do paragraph identified by argument.
3594 % \begin{macrocode}
3595 \newcommand*{\@@test@idx}[1]{%
3596 \@ifundefined{@tidx@par@\romannumeral#1}%
3597 {%
3598 \PackageError{testidx}{No such test block `\number#1'}%
3599 {Blocks are numbered from 1 to \number\tstidxmaxblocks}%
3600 }%
3601 {%
3602 \tstidxprefixblock{#1}%
3603 \csname @tidx@par@\romannumeral#1\endcsname
3604 \@testidx@block@sep
3605 }%
3606 }
3607 % \end{macrocode}
3608 %\end{macro}
3609 %
3610 %\begin{macro}{\tstidxmaxblocks}
3611 % \begin{macrocode}
3612 \newcount\tstidxmaxblocks
3613 % \end{macrocode}
3614 %\end{macro}
3615 %\subsection{Adding Test Paragraphs}
3616 %
3617 %\begin{macro}{\tstidxnewblock}
3618 % \begin{macrocode}
3619 \newcommand*{\tstidxnewblock}{
3620 \@ifstar\s@tstidxnewblock\@tstidxnewblock
3621 }
3622 % \end{macrocode}
3623 %\end{macro}
3624 %\begin{macro}{\s@tstidxnewblock}
3625 %\begin{definition}
3626 %\cs{tstidxnewblock}*\marg{cs}\marg{block text}
3627 %\end{definition}
3628 %(Starred form.) Define a new block and assign the block's number
3629 % to the control sequence \meta{cs} for reference in another
3630 % block. (Can't use the normal \cs{ref}\slash\cs{label} as the
3631 % reference is more useful to the user if the referred block is
3632 % missing. The undefined ?? indicator isn't much use in this
3633 % context.)
3634 % \begin{macrocode}
3635 \newcommand{\s@tstidxnewblock}[2]{%
3636 \@tstidxnewblock{#2}%
3637 \edef#1{\number\tstidxmaxblocks}%
3638 }
3639 % \end{macrocode}
3640 %\end{macro}
3641 %\begin{macro}{\@tstidxnewblock}
3642 %\begin{definition}
3643 %\cs{tstidxnewblock}\marg{block text}
3644 %\end{definition}
3645 % (Unstarred form.) Define a new block.
3646 % \begin{macrocode}
3647 \newcommand{\@tstidxnewblock}[1]{%
3648 \advance\tstidxmaxblocks by \@ne
3649 \expandafter
3650 \newcommand\csname @tidx@par@\romannumeral\tstidxmaxblocks\endcsname{#1}%
3651 }
3652 % \end{macrocode}
3653 %\end{macro}
3654 %
3655 %\subsection{Test Paragraphs}
3656 % These are all the predefined test paragraphs.
3657 %\begin{macro}{\@tidx@par@i}
3658 % \begin{macrocode}
3659 \tstidxnewblock
3660 {%
3661 This is a~sample block of text designed to test
3662 \tstidxcs{index}, the
3663 \if@tstidx@use@encaps
3664 \tstidxword[tstidxencapii]{layout}
3665 \else
3666 \tstidxword{layout}
3667 \fi
3668 of the
3669 \if@tstidx@use@encaps
3670 \tstidxword[tstidxencapii]{index}
3671 \else
3672 \tstidxword{index}
3673 \fi
3674 (\tstidxenv{theindex} environment) and any
3675 \if@tstidx@use@encaps
3676 \tstidxphrase[tstidxencapii]{indexing application},
3677 \else
3678 \tstidxphrase{indexing application},
3679 \fi
3680 such as
3681 \tstidxapp{makeindex} or
3682 \tstidxapp{xindy}. This text is just
3683 \tstidxword{filler} (produced using \tstidxcs{testidx} provided
3684 by the \tstidxopensty{testidx} package) to
3685 pad\tstindexsee{padding}{seealso}{filler} out
3686 the document with instances of \tstidxcs{index} interspersed
3687 throughout. You can use it, for \tstidxword{example}, to test an indexing
3688 package, such as \tstidxsty{makeidx} or \tstidxsty{imakeidx}, or to
3689 test a \tstidxapp{makeindex} style file or \tstidxapp{xindy} module.
3690 You can find out more
3691 information from the \tstidxsty{testidx} user manual, which
3692 can be accessed using the \tstidxapp{texdoc} application.
3693 This block starts a range that is closed in block~\@tidx@close@testidxsty.%
3694 }
3695 % \end{macrocode}
3696 %\end{macro}
3697 %
3698 %\begin{macro}{\@tidx@par@ii}
3699 % \begin{macrocode}
3700 \tstidxnewblock
3701 {%
3702 The \tstidxsty{testidx} package doesn't make any
3703 modifications to \tstidxcs{index} or \tstidxenv{theindex}. All
3704 \tstidxphrase{visual effects} in this \tstidxphrase{dummy text} are produced
3705 using markup commands provided solely for this \tstidxword{purpose} that
3706 internally use \tstidxcs{index} or, more specifically, internally use
3707 \tstidxcs{tstindex}, which is defined to use \tstidxcs{index} (so you can
3708 redefine \tstidxcs{tstindex} if you have multiple indexes). This package
3709 doesn't attempt to \tstidxword{parse} or otherwise \tstidxword{interpret} the
3710 \tstidxword{argument} of \tstidxcs{index}, nor does it attempt to
3711 produce a well-designed index. Its purpose is to help you
3712 \tstidxword{test} your chosen \tstidxword{design}, which is easier to do with a
3713 relatively small test \tstidxword{document}, than with a large
3714 \tstidxword{book}. The \tstidxphrase{dummy text} is intended to produce an
3715 \tstidxword{index} that is at least three pages long to allow you
3716 to test the page headers and footers in a two-sided document.
3717 You can hide the visual effects with the
3718 \tstidxstyopt{testidx}{hidemarks} package option.%
3719 \iftestidxshowmarks
3720 \else
3721 \space (It seems you already have this option set.
3722 Remove it or use \tstidxstyopt{testidx}{showmarks} to show them
3723 again.)%
3724 \fi
3725 }
3726 % \end{macrocode}
3727 %\end{macro}
3728 %
3729 %\begin{macro}{\@tidx@par@iii}
3730 %\changes{1.2}{2019-09-29}{added lonely sub-item}
3731 % \begin{macrocode}
3732 \tstidxnewblock
3733 {%
3734 The actual place where the \tstidxcs{index} command occurs in this
3735 \if@tstidx@use@encaps
3736 \tstidxphrase[tstidxencapiii]{dummy text}
3737 \else
3738 \tstidxphrase{dummy text}
3739 \fi
3740 is marked with the symbol
3741 \tstidxindexmarker{tstidxmarker} if there is no \tstidxword{range} or
3742 \tstidxphrase{cross-reference}. The
3743 \if@tstidx@use@encaps
3744 \tstidxword[tstidxencapi]{word}
3745 \else
3746 \tstidxword{word}
3747 \fi
3748 or
3749 \if@tstidx@use@encaps
3750 \tstidxword[tstidxencapii]{phrase}
3751 \else
3752 \tstidxword{phrase}
3753 \fi
3754 adjacent to this \tstidxword{marker} is
3755 the text being indexed.\tstidxfootnote{The \tstidxcs{index} command may
3756 occur before or after the \tstidxword{word} or \tstidxword{phrase} being
3757 indexed in this
3758 \if@tstidx@use@encaps
3759 \tstidxphrase[tstidxencapiii]{dummy text},
3760 \else
3761 \tstidxphrase{dummy text},
3762 \fi
3763 but there's no
3764 space between the \tstidxword{marker} and the term being indexed. Always
3765 remember not to surround your \tstidxcs{index} usage with spaces. Keep it
3766 flush against the term being indexed and only have a space on one
3767 side. Incidentally, this \tstidxword{footnote} text was produced
3768 using the command \tstidxcs{tstidxfootnote}, which you can
3769 redefined as required. (It defaults to just \tstidxcs{footnote}.)}
3770 A sub-entry is indicated with the symbol
3771 \tstidxindexmarker{tstidxsubmarker} and a sub-sub-entry is
3772 indicated with the symbol \tstidxindexmarker{tstidxsubsubmarker}.
3773 If an \tstidxword{encap} value is provided, both the
3774 \if@tstidx@use@encaps
3775 \tstidxword[tstidxencapiii]{text}
3776 \else
3777 \tstidxword{text}
3778 \fi
3779 and the
3780 \if@tstidx@use@encaps
3781 \tstidxword[tstidxencapii]{marker}
3782 \else
3783 \tstidxword{marker}
3784 \fi
3785 are typeset in the \tstidxword{argument} of the corresponding command.
3786 (The text occurring in the document is also typeset within the argument of
3787 \tstidxcs{tstidxtext}. The default value is to use a dark grey, but since the
3788 default values for the \tstidxword{predefined} encaps used in this text all
3789 change the colour, the dark grey will only apply where the encap hasn't
3790 been set.) There are three \tstidxword{encap} values used throughout this
3791 \tstidxphrase{dummy text} (unless you've used the
3792 \tstidxstyopt{testidx}{notestencaps} package option):
3793 \if@tstidx@use@encaps
3794 \tstidxencapcsn[tstidxencapi]{tstidxencapi},
3795 \else
3796 \tstidxencapcsn{tstidxencapi},
3797 \fi
3798 \if@tstidx@use@encaps
3799 \tstidxencapcsn[tstidxencapii]{tstidxencapii}
3800 \else
3801 \tstidxencapcsn{tstidxencapii}
3802 \fi
3803 and
3804 \if@tstidx@use@encaps
3805 \tstidxencapcsn[tstidxencapiii]{tstidxencapiii}.
3806 \else
3807 \tstidxencapcsn{tstidxencapiii}.
3808 \fi
3809 (The default values use \tstidxcs{textcolor}, so you might want to use the
3810 \tstidxstyopt{hyperref}{hidelinks} option
3811 if you want to use the \tstidxsty{hyperref} package.) A cross-referenced
3812 entry (using \tstidxencapcsn{see} or \tstidxencapcsn{seealso}) is identified
3813 using the \tstidxword{marker} \tstidxindexmarker{tstidxseemarker}
3814 and the cross-referenced information is displayed as
3815 a \tstidxphrase{marginal note} by default, with the term being indexed
3816 followed by the \tstidxword{cross-reference}.
3817 For example,
3818 \tstidxword{lyuk}\tstindexsee{lyuk}{seealso}{digraph} has
3819 the marker \tstidxmarker\ to show that the word \tstidxqt{lyuk} was
3820 indexed followed by the marker \tstidxseemarker\ to show that
3821 a cross-reference to \tstidxword{digraph} has also been indexed
3822 (with the details shown in the margin).
3823 A sub-level
3824 \tstidxword{cross-reference} is identified with the \tstidxword{marker}
3825 \tstidxindexmarker{tstidxsubseemarker} and the marginal note
3826 displays the main term followed by the sub-term (separated by the
3827 symbol \tstidxsubseesep). The \tstidxword{marker} used for the start of
3828 a range is \tstidxindexmarker{tstidxopenmarker} and the
3829 \tstidxword{marker} used for the end of
3830 a range is \tstidxindexmarker{tstidxclosemarker}
3831 unless the entry is a sub-level, in which case the
3832 \tstidxword{marker} for the start of the range is
3833 \tstidxindexmarker{tstidxopensubmarker}
3834 and the \tstidxword{marker} used for the end of a range is
3835 \tstidxindexmarker{tstidxclosesubmarker}, or for a sub-sub-level
3836 \tstidxindexmarker{tstidxopensubsubmarker} and
3837 \tstidxindexmarker{tstidxclosesubsubmarker}. There are no tests for
3838 any further sub-levels. Although \tstidxapp{xindy} allows more than
3839 three levels (\tstidxapp{makeindex} doesn't), it's somewhat
3840 \tstidxword{excessive} to go below a sub-sub-level.
3841 You'll have to add your own tests for anything deeper.
3842 Watch out for \tstidxsubword{sub-items}{lonely} sub-items.%
3843 }
3844 % \end{macrocode}
3845 %\end{macro}
3846 %
3847 %\begin{macro}{\@tidx@par@iv}
3848 % \begin{macrocode}
3849 \tstidxnewblock*{\@tidx@openrangepar}
3850 {%
3851 Here's an \tstidxword{example} of the start of a \tstidxopenword{range} but
3852 remember that a range must also have an end, so make sure that
3853 \tstidxword{block}~\@tidx@closerangepar\ has been included in this
3854 \if@tstidx@use@encaps
3855 \tstidxphrase[tstidxencapiii]{dummy text},
3856 \else
3857 \tstidxphrase{dummy text},
3858 \fi
3859 which closes this
3860 \tstidxword{example}.
3861 \iftestidxverbose
3862 I see you've used the \tstidxstyopt{testidx}{verbose} package option which
3863 shows the \tstidxword{argument} being passed to \tstidxcs{tstindex}.
3864 I expect it's caused some \tstidxphrase{overfull lines}.%
3865 \else
3866 If you want more detail, you can use the \tstidxstyopt{testidx}{verbose}
3867 package option which will show the \tstidxword{argument} being passed to
3868 \tstidxcs{tstindex} but be warned that it will
3869 cause \tstidxphrase{overfull lines}.%
3870 \fi
3871 }
3872 % \end{macrocode}
3873 %\end{macro}
3874 %
3875 %\begin{macro}{\@tidx@par@v}
3876 % \begin{macrocode}
3877 \tstidxnewblock
3878 {%
3879 Now that the preliminaries have been dispensed with in the previous
3880 \tstidxwordpl{paragraph}, we can get on
3881 to some serious
3882 \if@tstidx@use@encaps
3883 \tstidxword[tstidxencapii]{waffle}
3884 \else
3885 \tstidxword{waffle}
3886 \fi
3887 to act as
3888 \if@tstidx@use@encaps
3889 \tstidxword[tstidxencapi]{filler}
3890 \else
3891 \tstidxword{filler}
3892 \fi
3893 text because this really needs
3894 some \tstidxword{padding} in order to get a decent sized
3895 \tstidxword{index} with lots of locations. I did consider using just
3896 plain old \tstidxphrase{lorem ipsum} (like the \tstidxsty{lipsum}
3897 package), but it gets a bit boring after a while, and it's easier to
3898 check the indexing has been performed successfully if you can understand
3899 the text. Of course, this doesn't help those who don't know any English, but at
3900 least they're no worse off than they would have been with random
3901 \tstidxword{gibberish}\tstindexsee{gobbledegook}{see}{gibberish},
3902 at least, I hope not. In other words, if I could just \tstidxword{clarify}
3903 what I'm trying to say here, in a \tstidxword{confidential} and not too
3904 \tstidxword{roundabout} \tstidxword{fashion}\tstidxdash
3905 \tstidxphrase{between you, me and the gatepost}\tstidxdash is please don't
3906 consider this to be an
3907 \tstidxword{illustration}\tstindexsee{illustration}{seealso}{example} of
3908 my stunning \tstidxword{wit}, \tstidxword{eloquence} and
3909 \tstidxphrase{way with words} because I'm shamelessly contravening the
3910 \tstidxphrase{creative writing}
3911 \tstidxword{adage} (or possibly \tstidxword{motto}) of
3912 \tstidxphrase{cut to the chase}, remove excessive
3913 \tstidxword{verbiage} and \tstidxphrase{get to the point}. I shall
3914 take care to hide this \tstidxword{drivel} from my
3915 \if@tstidx@use@encaps
3916 \tstidxphrase[tstidxencapiii]{creative writing}
3917 \else
3918 \tstidxphrase{creative writing}
3919 \fi
3920 \tstidxword{tutor} and
3921 fellow writers, so
3922 \tstidxphrase{keep mum}\tstindexsee{keep mum}{seealso}{confidential}
3923 and don't \tstidxword{grass} on me because that just won't be fair,
3924 and it might \tstidxword{distress} them to a certain extent.
3925 I shall not be \tstidxword{assailed} by indecision and will
3926 \tstidxword{aspire} to find the \tstidxphrase{mot juste}.
3927 Where was I? Oh, yes, \tstidxword{padding}. I'm trying to make this
3928 \tstidxword{paragraph} quite long, not because I have any pretensions of being
3929 the next \tstidxperson{James}{Joyce} and competing with
3930 \tstidxbook{Ulysses}, but because one of the things
3931 we need to check for is what happens with paragraphs that span a
3932 \tstidxphrase{page break}. (If you're feeling particularly daring,
3933 try out the starred version of \tstidxcs{testidx}, although
3934 some of the blocks, such as \tstidxword{block}~\@tidx@xdypar, have some
3935 sneaky \tstidxword{paragraph} breaks that won't
3936 be suppressed.) \tstidxsym{TeX}{\TeX}'s asynchronous
3937 \if@tstidx@use@encaps
3938 \tstidxphrase[tstidxencapii]{output routine}
3939 \else
3940 \tstidxphrase{output routine}
3941 \fi
3942 can cause things to go a bit
3943 \if@tstidx@use@encaps
3944 \tstidxphrase[tstidxencapiii]{out of whack},
3945 \else
3946 \tstidxphrase{out of whack},
3947 \fi
3948 so lengthy paragraphs in this
3949 \if@tstidx@use@encaps
3950 \tstidxword[tstidxencapii]{example}
3951 \else
3952 \tstidxword{example}
3953 \fi
3954 document increase the chances of testing for these occurrences.
3955 Whether or not this particular \tstidxword{paragraph}
3956 actually spans a \tstidxphrase{page break} does, of course, depend on
3957 various things including your document \tstidxsubword{document}{properties},
3958 such as the \tstidxphrase{page dimensions}, \tstidxphrase{font family} and
3959 \tstidxphrase{font size}. If it turns out that this
3960 \if@tstidx@use@encaps
3961 \tstidxword[tstidxencapi]{paragraph}
3962 \else
3963 \tstidxword{paragraph}
3964 \fi
3965 has spanned a \tstidxphrase{page break}, you might want to check the terms
3966 indexed here to make sure they have the correct page numbers listed.
3967 Something else that you might want to check, while you're at it, is
3968 what's happened to the \tstindexsee{location list}{seealso}{cross-reference}%
3969 \tstidxword{location list} for the word
3970 \if@tstidx@use@encaps
3971 \tstidxqt{\tstidxword[tstidxencapii]{paragraph}},
3972 \else
3973 \tstidxqt{\tstidxword{paragraph}},
3974 \fi
3975 as I've used different
3976 \tstidxword{encap} values for it in various places in this
3977 \tstidxword{example}
3978 \if@tstidx@use@encaps
3979 \tstidxword[tstidxencapiii]{paragraph}.
3980 \else
3981 \tstidxword{paragraph}.
3982 \fi
3983 If you are using
3984 \tstidxapp{makeindex}, you might notice some warnings about
3985 \tstidxphrase{multiple encaps}, and the \tstidxphrase{page number}
3986 may be duplicated in the location list. If you are using
3987 \tstidxapp{xindy}, then it will discard duplicate page numbers and
3988 give preference to the first defined attribute in whatever
3989 \tstidxapp{xindy} module you're using. However, be careful if a
3990 \if@tstidx@use@encaps
3991 \tstidxword[tstidxencapi]{range}
3992 \else
3993 \tstidxword{range}
3994 \fi
3995 overlaps a different \tstidxword{encap}.
3996 Remember that there's a difference between an \tstidxword{index} and a
3997 \tstidxword{concordance}. If you just index pertinent places, there's less
3998 likelihood of conflicting encaps. This is the end of a
3999 \if@tstidx@use@encaps
4000 \tstidxword[tstidxencapiii]{paragraph}
4001 \else
4002 \tstidxword{paragraph}
4003 \fi
4004 that was written to deliberately upset \tstidxapp{makeindex}.
4005 Mean, aren't I?%
4006 }
4007 % \end{macrocode}
4008 %\end{macro}
4009 %
4010 %\begin{macro}{\@tidx@par@vi}
4011 % \begin{macrocode}
4012 \tstidxnewblock*{\@tidx@xdypar}
4013 {%
4014 On the subject of \tstidxapp{xindy}, if you want to use it with
4015 this \tstidxword{example} document, you'll need to add the
4016 \tstidxword{encap} values used in this \tstidxphrase{dummy text}
4017 as allowed attributes. For example, you may want to create a file
4018 called, say, \texttt{\jobname.xdy} that contains the following:
4019 % \end{macrocode}
4020 % Can't use verbatim so fudge it.
4021 % \begin{macrocode}
4022 \begin{flushleft}\ttfamily\obeylines
4023 ; list of allowed attributes
4024 \par\medskip\par
4025 (define-attributes ((
4026 \string"tstidxencapi\string"
4027 \string"tstidxencapii\string"
4028 \string"tstidxencapiii\string"
4029 )))
4030 \par\medskip\par
4031 ; define format to use for locations
4032 \par\medskip\par
4033 (markup-locref :open \string"\string\tstidxencapi\expandafter\@gobble\string\{\string"
4034 :close \string"\expandafter\@gobble\string\}\string"
4035 :attr \string"tstidxencapi\string")
4036
4037 (markup-locref :open \string"\string\tstidxencapii\expandafter\@gobble\string\{\string"
4038 :close \string"\expandafter\@gobble\string\}\string"
4039 :attr \string"tstidxencapii\string")
4040
4041 (markup-locref :open
4042 \string"\string\tstidxencapiii\expandafter\@gobble\string\{\string"
4043 :close \string"\expandafter\@gobble\string\}\string"
4044 :attr \string"tstidxencapiii\string")
4045 \end{flushleft}
4046 This sets up allowed encap values and how they should be formatted.
4047 The ordering of the allowed \tstidxword{attributes} here gives the
4048 \tstidxencapcsn{tstidxencapi} encap precedence in the
4049 event of a \tstidxphrase{multiple encaps} clash, since it's the
4050 first one in the list. You can then
4051 run \tstidxapp{xindy} using:
4052 \begin{flushleft}\ttfamily
4053 xindy -L english -C utf8 -M \jobname.xdy -M texindy -t \jobname.ilg
4054 \jobname.idx
4055 \end{flushleft}
4056 You might also want to set the location list
4057 \tstidxsubword{location list}{page separator}
4058 and the \tstidxsubword{location list}{range separator}%
4059 \tstindexsee{range separator}{see}{location list}
4060 in your \texttt{.xdy} file. For example:
4061 \begin{flushleft}\ttfamily
4062 (markup-locref-list :sep \string", \string")\par
4063 (markup-range :sep \string"\string-\string-\string")
4064 \end{flushleft}
4065 Check out the difference between using \tstidxapp{xindy} and
4066 \tstidxapp{makeindex} on this document.
4067 On the subject of location lists, the word
4068 \tstidxword{passim} (meaning \tstidxqt{here and there}) is
4069 sometimes used to tidy up ragged lists. For example,
4070 the locations \tstidxqt{1, 3, 4, 6, 7} may look neater as
4071 \tstidxqt{1-7 passim}, which indicates references are scattered (here
4072 and there) throughout that range.%
4073 }
4074 % \end{macrocode}
4075 %\end{macro}
4076 %
4077 %\begin{macro}{\@tidx@par@vii}
4078 % \begin{macrocode}
4079 \tstidxnewblock
4080 {%
4081 Computer algorithms can sometimes have difficulties with
4082 \tstidxword{localisation}. They can be tripped up by
4083 \tstidxphrase{input encoding} issues and \tstidxwordpl{digraph}
4084 (such as the Welsh \tstidxgphword{ll}{ll}{ỻ} digraph in
4085 \tstidxgphword{llan}{llan}{ỻan},
4086 the Dutch \tstidxgphword{ij}{ij}{ij} digraph in
4087 \tstidxgphword{lijnbus}{lijnbus}{lijnbus} and
4088 \tstidxgphword{ijsvrij}{ijsvrij}{ijsvrij}, and the
4089 \tstidxgphword{dz}{dz}{dz} digraph in the Hungarian
4090 \tstidxgphword{dz\'eta}[dzeta]{dzéta}{dzéta} and Polish
4091 \tstidxgphword{dzwon}{dzwon}{dzwon})
4092 or \tstidxwordpl{trigraph} (such as the Hungarian \tstidxword{dzs}
4093 trigraph in \tstidxutfword{dzs\'oker}[dzsoker]{dzsóker}
4094 and \tstidxword{dzsungel}\tstindexsee{dzsungel}{seealso}{trigraph}),
4095 so this \tstidxword{paragraph} is designed to provide some examples for
4096 testing various Latin alphabets. If you enable both UTF-8 (either
4097 with \tstidxsty{inputenc} or using XeLaTeX\slash LuaLaTeX) and
4098 the \tstidxstyopt{testidx}{digraphs} option, then the examples above
4099 will use the \tstidxqt{ll}, \tstidxqt{ij} and \tstidxqt{dz}
4100 \tstidxwordpl{glyph} (\emph{if supported}) for the \tstidxwordpl{digraph}
4101 (but not for \tstidxqt{dzs}, which is a
4102 \tstidxword{trigraph}). Remember that you'll also need a font that
4103 supports those glyphs.
4104 \iftestidxdiglyphs
4105 (If characters are missing from the above words, then they're not supported.)
4106 \fi
4107 Other digraphs include the Welsh \tstidxword{dd}, \tstidxword{ff},
4108 and \tstidxword{ng}, the Hungarian \tstidxword{ly} (in \tstidxword{lyuk}
4109 mentioned earlier) and the Polish \tstidxword{cz}, but these
4110 don't use glyphs in the sort value.
4111 Now for some more \tstidxword{nonsense} text to pad the index.
4112 We, the \tstidxutfword{\'elite}[elite]{élite} who discovered the
4113 \tstidxutfword{\ae sthetic}[aesthetic]{æsthetic}
4114 delights of \tstidxsym{TeX}{\TeX}, must not become
4115 \tstidxutfword{blas\'e}[blase]{blasé} about being the
4116 \tstidxutfword{prot\'eg\'e}[protege]{protégé}
4117 of the great \tstidxperson{Donald}{Knuth}.
4118 It may stagger the
4119 \tstidxutfword{client\`ele}[clientele]{clientèle} of
4120 \if@tstidx@use@encaps
4121 \tstidxartphrase[tstidxencapii]{the}{commercial world}
4122 \else
4123 \tstidxartphrase{the}{commercial world}
4124 \fi
4125 to discover our
4126 \tstidxutfword{r\'esum\'e}[resumee]{résumé}
4127 (after foraging for it in our natty
4128 \tstidxutfphrase{attach\'e case}[attachecase]{attaché case})
4129 while we sample a \tstidxword{vol-au-vent} or \tstidxword{two}
4130 at the \tstidxutfword{soir\'ee}[soiree]{soirée}
4131 in the \tstidxutfphrase{pied-\`a-terre}[piedaterre]{pied-à-terre}
4132 with the delightful \tstidxutfword{ph\oe nix}[phoenix]{phœnix}-%
4133 themed \tstidxutfword{d\'ecor}[decor]{décor}, \tstidxword{daft}
4134 \tstidxword{oak} \tstidxphrase{dado rail} and
4135 \tstidxutfword{f\ae rie}[faerie]{færie}
4136 \tstidxutfword{fa\c{c}ade}[facade]{façade}
4137 that has stunned
4138 many an \tstidxutfword{\ae thereal}[aethereal]{æthereal}
4139 \tstidxutfword{d\'ebutante}[debutante]{débutante}
4140 sporting a \tstidxutfphrase{berg\`ere hat}[bergerehat]{bergère hat},
4141 but it would be \tstidxutfword{na\"ive}[naive]{naïve}
4142 to fall for such a \tstidxutfword{f\oe tid}[foetid]{fœtid}
4143 \tstidxutfword{clich\'e}[cliche]{cliché}.
4144 This \tstidxword{paragraph} is in a state of
4145 \tstidxutfword{d\'eshabill\'e}[deshabille]{déshabillé}.
4146 Like a \tstidxword{sculpture} of \tstidxword{Venus} in a
4147 \tstidxutfword{n\'eglig\'ee}[negligee]{négligée}, it's transparently
4148 obvious that this \tstidxword{paragraph} is provided for the sole purpose of
4149 \tstidxword{ogling}\tstindexsee{gawping}{see}{ogling}
4150 \tstidxphrase{extended Latin characters} and testing
4151 how \tstidxapp{xindy} and \tstidxapp{makeindex} compare.
4152 Time for a quick trip to the \tstidxutfword{caf\'e}[cafe]{café}
4153 for an \tstidxutfword{an\ae mic}[anaemic]{anæmic}
4154 \tstidxphrase{cup of tea} (to \tstidxword{recover} from our travels) with
4155 \tstidxutfperson{Anders Jonas}{\AA ngstr\"om}[AndersJonasAngstrom]%
4156 {Anders Jonas}{Ångström} (but don't let it scald your
4157 \tstidxutfword{\oe sophagus}[oesophagus]{œsophagus})
4158 and then off to find a \tstidxword{zoo}
4159 in \tstidxutfplace{\"Osterg\"otland}[Ostergotland]{Östergötland},
4160 so we can get to the end of the \tstidxword{alphabet}. (We may even
4161 see an adventurous \tstidxword{aardvark} or
4162 a lucky \tstidxgphword{llama}{llama}{ỻama} or a
4163 \tstidxword{rhinoceros} eating \tstidxword{rhubarb}.) Perhaps
4164 then we should go over to
4165 \tstidxutfplace{\"Angelholm}[Angelholm]{Ängelholm}
4166 and head off across the
4167 \tstidxutfplace{\O resund}[Oresund]{Øresund} bridge and
4168 \tstidxword{resume} our search for some more examples.
4169 We'll go on a \tstidxphrase{whistle-stop tour} around
4170 \tstidxutfplace{T\r{a}rnby}[Tarnby]{Tårnby},
4171 \tstidxutfplace{R\o dovre}[Rodovre]{Rødovre},
4172 \tstidxutfplace{N\ae stved}[Naestved]{Næstved} and
4173 \tstidxutfplace{\O lstykke-Stenl\o se}[OlstykkeStenlose]{Ølstykke-Stenløse}.
4174 Afterwards, we'll \tstidxword{fly} to
4175 \tstidxplace{Poland} (possibly in an \tstidxword{aeroplane}\tstidxdash
4176 if passengers would like to look out of their \tstidxword{window}, they'll
4177 see we're passing over
4178 \tstidxutfplace{A\ss lar}[Asslar]{Aßlar} and
4179 \tstidxutfplace{Bad Gottleuba-Berggie\ss h\"ubel}[BadGottleubaBerggiesshubel]{Bad Gottleuba-Berggießhübel})
4180 and then we'll say
4181 \tstidxqt{\tstidxutfword{cze\'s\'c}[czesc]{cześć}} to
4182 \tstidxutfplace{\L\'od\'z}[Lodz]{Łódź}, and visit
4183 \@tstidx@if@notOT@ne
4184 {%
4185 \tstidxutfplace{\'Swi\k{e}tokrzyskie}[Swietokrzyskie]{Świętokrzyskie}%
4186 \ifxetex
4187 \else
4188 \ifluatex
4189 \else
4190 \space(that one will cause a problem for certain font encodings
4191 because of the \tstidxword{ogonek} and
4192 will be omitted if you use the default
4193 \tstidxsubword{font encoding}{OT1}
4194 encoding, but not if you use the \tstidxsty{fontenc}
4195 package\tstindexstysee{fontenc}{seealso}{inputenc} with,
4196 for example, the \tstidxstyopt{fontenc}{T1} option)%
4197 \fi
4198 \fi,
4199 }%
4200 {%
4201 [a place with an \tstidxword{ogonek} has been omitted because this document
4202 is using the default \tstidxsubword{font encoding}{OT1} font
4203 encoding\tstidxdash try loading the \tstidxsty{fontenc}
4204 package\tstindexstysee{fontenc}{seealso}{inputenc} with the
4205 \tstidxstyopt{fontenc}{T1} option],
4206 }%
4207 \tstidxutfplace{\.Zory}[Zory]{Żory},
4208 \tstidxutfplace{\.Zelech\'ow}[Zelechow]{Żelechów},
4209 \tstidxutfplace{\L obez}[Lobez]{Łobez},
4210 \tstidxutfplace{G\l og\'ow}[Glogow]{Głogów}
4211 (not to be confused with \tstidxplace{Glasgow}),
4212 \tstidxutfplace{\'Cmiel\'ow}[Cmielow]{Ćmielów},
4213 \tstidxutfplace{\'Scinawa}[Scinawa]{Ścinawa}
4214 and
4215 \tstidxutfplace{\'Swidnica}[Swidnica]{Świdnica}.
4216 Then let's \tstidxword{sail} to \tstidxplace{Iceland} (possibly in
4217 a \tstidxword{ship}) and visit the lakes of
4218 \tstidxplace{Iceland}, such as
4219 \tstidxutfplace{\"Olvesvatn}[Olvesvatn]{Ölvesvatn},
4220 \tstidxutfplace{\'Ulfsvatn}[Ulfsvatn]{Úlfsvatn},
4221 \tstidxutfplace{\'Anavatn}[Anavatn]{Ánavatn},
4222 \tstidxutfplace{M\'asvatn}[Masvatn]{Másvatn},
4223 \@tstidx@if@notOT@ne
4224 {%
4225 \tstidxutfplace{\TH r\'{\i}hyrningsvatn}[Thrihyrningsvatn]{Þríhyrningsvatn}
4226 (that one starts with a
4227 \tstidxutfword{thorn (\th)}[thorn]{thorn (þ)}%
4228 \tstindexutfsee{\th}{þ}[thornletter]{see}[thorn]{thorn (\th)}{thorn (þ)}),
4229 \tstidxutfplace{Sigr\'{\i}\dh arsta\dh avatn}[Sigridharstadhavatn]{Sigríðarstaðavatn}
4230 (that one has an \tstidxutfword{eth (\dh)}[eth]{eth (ð)}%
4231 \tstindexutfsee{\dh}{ð}[ethletter]{see}[eth]{eth (\dh)}{eth (ð)}%
4232 \ifxetex
4233 )%
4234 \else
4235 \ifluatex
4236 )%
4237 \else
4238 \tstidxdash those last two will also be omitted if you use the default
4239 \tstidxword{OT1} \tstidxword{font encoding})%
4240 \fi
4241 \fi,
4242 }%
4243 {%
4244 [a couple of lakes with a \tstidxword{thorn} and an
4245 \tstidxword{eth} have been omitted because this document is using the
4246 default \tstidxword{OT1} \tstidxword{font encoding}\tstidxdash try loading
4247 \tstidxsty{fontenc} with the \tstidxstyopt{fontenc}{T1} option],
4248 }%
4249 \tstidxutfplace{Gr\ae navatn}[Graenavatn]{Grænavatn},
4250 \tstidxutfplace{\'Arnesl\'on}[Arneslon]{Árneslón}
4251 and
4252 \tstidxutfplace{\'Ish\'olsvatn}[Isholsvatn]{Íshólsvatn}.
4253 If you are using this with \tstidxapp{xindy} and
4254 \tstidxword{UTF-8}, try this out with a different language option,
4255 for example \tstidxappopt{xindy}{-L swedish} or
4256 \tstidxappopt{xindy}{-L danish} or \tstidxappopt{xindy}{-L german-duden} or
4257 \tstidxappopt{xindy}{-L german-din5007} or \tstidxappopt{xindy}{-L polish} or
4258 \tstidxappopt{xindy}{-L icelandic}.
4259 \@tstidx@ifgerman
4260 {I notice you've use the \tstidxstyopt{testidx}{german} or
4261 \tstidxstyopt{testidx}{ngerman} package option. This means that if you want
4262 to use \tstidxapp{makeindex} instead of \tstidxapp{xindy}, you can
4263 use \tstidxapp{makeindex}'s \tstidxappopt{makeindex}{-g} option.%
4264 }%
4265 {%
4266 If you want to use \tstidxapp{makeindex} instead of
4267 \tstidxapp{xindy}, then the package option \tstidxstyopt{testidx}{german} or
4268 \tstidxstyopt{testidx}{ngerman} will allow you to use
4269 \tstidxapp{makeindex}'s \tstidxappopt{makeindex}{-g} option.%
4270 }%
4271 \@tstidx@ifutfviii
4272 {%
4273 \ifxetex
4274 \else
4275 \ifluatex
4276 \else
4277 \@tidx@sanitizenote
4278 \fi
4279 \fi
4280 }%
4281 { No UTF-8 support has been detected for this document.\@tidx@stripaccentsnote}%
4282 }
4283 % \end{macrocode}
4284 %\end{macro}
4285 %
4286 %\begin{macro}{\@tidx@sanitizenote}
4287 % \begin{macrocode}
4288 \newcommand{\@tidx@sanitizenote}{%
4289 \space You currently have the
4290 \@tstidx@ifsanitize
4291 {\tstidxstyopt{testidx}{sanitize} option on.
4292 This means that the words containing \tstidxword{UTF-8} characters will
4293 first be sanitized before being passed to \tstidxcs{tstindex}, which
4294 will allow you to test how well the \tstidxphrase{indexing application}
4295 sorts \tstidxword{UTF-8} characters. If you'd rather test how
4296 \tstidxcs{index} writes these characters to the file read by the
4297 indexing application, use the \tstidxstyopt{testidx}{nosanitize}
4298 option instead. This may cause the \tstidxword{UTF-8} characters to be
4299 written in terms of \tstidxcs{IeC}.%
4300 }%
4301 {\tstidxstyopt{testidx}{nosanitize} option on.
4302 This means that the words containing \tstidxword{UTF-8} characters
4303 may be written to the file processed by the
4304 \tstidxphrase{indexing application} in terms of
4305 \tstidxcs{IeC}. This allows you to test how \tstidxcs{index} behaves.
4306 If you'd rather test how the indexing application sorts
4307 \tstidxword{UTF-8} characters, use the \tstidxstyopt{testidx}{sanitize}
4308 option instead, which will sanitize the \tstidxword{UTF-8} characters
4309 before passing them to \tstidxcs{tstindex}.%
4310 }%
4311 }
4312 % \end{macrocode}
4313 %\end{macro}
4314 %
4315 %\begin{macro}{\@tidx@stripaccentsnote}
4316 % \begin{macrocode}
4317 \newcommand{\@tidx@stripaccentsnote}{%
4318 \space The \tstidxstyopt{testidx}{stripaccents} package option will
4319 effectively do, for example,
4320 \texttt{\string\index\char`\{elite@\string\'elite\char`\}}
4321 whereas the
4322 \tstidxstyopt{testidx}{nostripaccents} package option will
4323 effectively do, for example,
4324 \texttt{\string\index\char`\{\string\'elite\char`\}}.
4325 These options have no effect in UTF-8 mode.%
4326 }
4327 % \end{macrocode}
4328 %\end{macro}
4329 %
4330 %\begin{macro}{\@tidx@par@viii}
4331 % \begin{macrocode}
4332 \tstidxnewblock
4333 {%
4334 Don't forget there's also a \tstidxphrase{number group}, so let's
4335 have some numbers.
4336 \tstidxartbook{The}{Hitchhiker's Guide to the Galaxy} has
4337 of course propelled the number \tstidxnumber{42} to stardom, as the
4338 answer to \tstidxword{life}, the \tstidxword{universe} and
4339 everything. We usually deal in base~\tstidxnumber{10}, but sometimes
4340 base~\tstidxnumber{16} is useful to programmers, and computers
4341 prefer base~\tstidxnumber{2} (and \tstidxnumber{2} is the only
4342 \tstidxword{even} \tstidxword{prime number}). A \tstidxword{century} in
4343 \tstidxword{cricket} means \tstidxnumber{100} runs, and in the
4344 \tstidxword{calendar} \tstidxnumber{100} years.
4345 \@tidx@numberlettergroup
4346 Whilst we're on the subject of numbers, let's try out some
4347 equations.
4348 \begin{equation}
4349 \tstidxmath{E}{E} = mc^2
4350 \end{equation}
4351 \@tstidx@ifamsmath
4352 {%
4353 Since this document is using \tstidxsty{amsmath}, let's try out
4354 the \tstidxenv{align} environment:
4355 \begin{align}
4356 \tstidxmath{f(x)}[fx]{f(\protect\vec{x})} &=
4357 \tstidxmathsym{alpha}{\protect\alpha}
4358 \tstidxmathsym{sum}{\protect\sum}_i^{\tstidxmath{n}{n}} x_i
4359 +\tstidxmathsym{beta}{\protect\beta} \sum_{i}^n x_i^2
4360 +\tstidxmathsym{gamma}{\protect\gamma}\\
4361 \frac{\tstidxmathsym{partial}{\protect\partial}f}{\partial x_j} &=
4362 \alpha + 2\beta x_j
4363 \end{align}
4364 \@tidx@scriptnote
4365 If this document hadn't loaded the \tstidxsty{amsmath} package,
4366 we would have had to use the \tstidxenv{eqnarray} environment
4367 instead.
4368 }%
4369 {%
4370 This document doesn't load the \tstidxsty{amsmath} package, so
4371 let's try out the \tstidxenv{eqnarray} environment:
4372 \begin{eqnarray}
4373 \tstidxmath{f(x)}{f(\protect\vec{x})} &=&
4374 \tstidxmathsym{alpha}{\protect\alpha}
4375 \tstidxmathsym{sum}{\protect\sum}_i^{\tstidxmath{n}{n}} x_i
4376 +\tstidxmathsym{beta}{\protect\beta} \sum_{i}^n x_i^2
4377 +\tstidxmathsym{gamma}{\protect\gamma}\\
4378 \frac{\tstidxmathsym{partial}{\protect\partial}f}{\partial x_j} &=&
4379 \alpha + 2\beta x_j
4380 \end{eqnarray}
4381 \@tidx@scriptnote
4382 If you load the \tstidxsty{amsmath} package, we'll test the
4383 \tstidxenv{align} environment instead.
4384 }%
4385 Incidentally, that's just a regular partial derivative symbol
4386 $\tstidxmathsym{partial}{\protect\partial}$. Not to be confused
4387 with the spin-weighted partial derivative
4388 \@tstidx@ifamssymb{$\tstidxmathsym{eth}[spinderiv]{\protect\eth}$,
4389 which can be displayed here as this document has loaded the
4390 \tstidxsty{amssymb} package}
4391 {[you need the \tstidxsty{amssymb} package for that symbol]}.
4392 \@tidx@mathslettergroup
4393 \iftestidxprefix
4394 I've done something similar with the \tstidxwordpl{marker} where I've used
4395 \texttt{\tstidxindexmarkerprefix} as the \tstidxword{prefix}.%
4396 \else
4397 With the prefixes on I can also do something similar with the
4398 \tstidxwordpl{marker} where I'll use
4399 \texttt{\tstidxindexmarkerprefix} as the \tstidxword{prefix}.%
4400 \fi
4401 }
4402 % \end{macrocode}
4403 %\end{macro}
4404 %
4405 %\begin{macro}{\@tidx@scriptnote}
4406 % \begin{macrocode}
4407 \newcommand{\@tidx@scriptnote}{%
4408 (Note how the subscripts and superscripts can be affected
4409 by material inserted between the symbol and the sub- and
4410 superscripts.)
4411 }
4412 % \end{macrocode}
4413 %\end{macro}
4414 %
4415 %\begin{macro}{\@tidx@numberlettergroup}
4416 % \begin{macrocode}
4417 \newcommand*{\@tidx@numberlettergroup}{%
4418 If you're using \tstidxapp{xindy}, you can provide a numbers group
4419 by adding the following to your \texttt{.xdy} module:
4420 \begin{flushleft}\ttfamily
4421 (define-letter-group \string"Numbers\string"\par
4422 \string:prefixes (\string"0\string" \string"1\string" \string"2\string"
4423 \string"3\string" \string"4\string" \string"5\string"
4424 \string"6\string" \string"7\string" \string"8\string"
4425 \string"9\string")\par
4426 \string:before \string"A\string")
4427 \end{flushleft}
4428 }
4429 % \end{macrocode}
4430 %\end{macro}
4431 %
4432 %\begin{macro}{\@tidx@mathslettergroup}
4433 % \begin{macrocode}
4434 \newcommand*{\@tidx@mathslettergroup}{%
4435 \iftestidxprefix
4436 Now I've been a bit fancy here and inserted
4437 \texttt{\tstidxmathsymprefix} in front of
4438 the sort key so I can get \tstidxapp{xindy} to create a special
4439 group for the maths symbols. Here's
4440 \else
4441 This document has used the \tstidxstyopt{testidx}{noprefix}
4442 package option, which has switched of the sort prefixes.
4443 If you use the \tstidxstyopt{testidx}{prefix} option I can be a
4444 bit fancy here and insert
4445 \texttt{\tstidxmathsymprefix} in front of
4446 the sort key so I can get \tstidxapp{xindy} to create a special
4447 group for the maths symbols. When you switch on the prefixes here's
4448 \fi
4449 the code you can add to your \texttt{.xdy} file to implement it:
4450 \begin{flushleft}\ttfamily
4451 (define-letter-group \string"Maths\string"
4452 \string:prefixes (\string"\tstidxmathsymprefix\string")
4453 \string:before \string"Numbers\string")
4454 \end{flushleft}
4455 }
4456 % \end{macrocode}
4457 %\end{macro}
4458 %
4459 %\begin{macro}{\@tidx@par@ix}
4460 % \begin{macrocode}
4461 \tstidxnewblock*{\@tidx@closerangepar}%
4462 {%
4463 % \end{macrocode}
4464 %This isn't really a UTF-8 word but it needs a different label to
4465 %avoid clashing with \qt{recover}.
4466 % \begin{macrocode}
4467 Let's \tstidxutfword{re-cover}[reecover]{re-cover} old ground and
4468 talk about ranges again.
4469 This is the end of the \tstidxcloseword{range}
4470 \tstidxword{example} from \tstidxword{block}~\@tidx@openrangepar.
4471 There's not much else to say about this \tstidxword{block} really.
4472 It's quite boring, isn't it? However, you'll need it if you've
4473 included block~\@tidx@openrangepar. Unless you're testing for
4474 a mis-matched range, of course. That might be quite interesting,
4475 possibly, but I'm not going to \tstidxphrase{hold my breath}.%
4476 }
4477 % \end{macrocode}
4478 %\end{macro}
4479 %
4480 %\begin{macro}{\@tidx@par@x}
4481 % \begin{macrocode}
4482 \tstidxnewblock
4483 {%
4484 Now this is going to be hard to believe\tstidxdash in fact I'm
4485 totally \tstidxword{gobsmacked} and utterly \tstidxword{astounded}
4486 \tstidxdash but I've discovered that we're still missing some
4487 \tstidxphrase{letter groups}, and I've run out of anything
4488 \tstidxword{quaint} to say, so I'm going to have to
4489 \tstidxword{yatter} for a while longer, which will probably make
4490 you \tstidxword{yawn} and fall \tstidxword{asleep}.
4491 What shall we talk about? My \tstidxword{quirky}
4492 \tstidxword{badinage} is about to \tstidxword{expire}. How about a
4493 \tstidxword{story}? Here's one I made up for my friend
4494 \tstidxperson{Paulo}{Cereda} in \tstidxsym{TeX}{\TeX}.SE chat because he likes
4495 ducks and is the creator of \tstidxapp{arara}.
4496 So, are you sitting comfortably? Then let's \tstidxword{begin}. By the way,
4497 before I \tstidxword{forget}, it's called
4498 \tstidxbook{Sir Quackalot and the Golden Arara} and is the
4499 first story in
4500 \tstidxartbook{The}{Adventures of Sir Quackalot}.
4501 It's a \tstidxword{tale} of \tstidxword{adventure} and
4502 \tstidxword{derring-do}. The \tstidxword{hero} of the
4503 \tstidxword{story} is \tstidxperson{Sir}{Quackalot}, in case you
4504 can't tell from the \tstidxword{title}.
4505 \tstidxphrase{Once upon a time}, a long time ago in
4506 \tstidxartphrase{a}{far away land}, there lived a
4507 \tstidxword{knight}. He was \tstidxword{handsome}, he was
4508 \tstidxword{bold}, he was \tstidxword{brave}.
4509 He was\tstidxdash a \tstidxword{duck}. His \tstidxword{name} was
4510 \tstidxperson{Sir}{Quackalot}.
4511 One day \tstidxperson{the}{Fairy Goose} appeared.
4512 \tstidxqt{Brave \tstidxword{knight},} she said. \tstidxqt{A terrible
4513 \tstidxword{plight} has fallen on
4514 the \tstidxword{land}. The evil \tstidxword{OgRe} has stolen
4515 \tstidxartphrase{the}{Golden Arara}. Only you can save it.}
4516 (That's a \tstidxword{reference} to
4517 \tstidxsym{TeX}{\TeX}'s \tstidxphrase{output routine}, if you missed it.)
4518 \tstidxqt{It will be a \tstidxword{perilous} \tstidxword{quest}, but find
4519 \tstidxartphrase{the}{Mighty Helm of Knuth} and
4520 \tstidxartphrase{the}{Legendary Sword} \tstidxword{xor} to aid you.} (Ask
4521 \tstidxperson{David}{Carlisle} about the \tstidxword{xor}
4522 \tstidxword{reference}.)%
4523 }
4524 % \end{macrocode}
4525 %\end{macro}
4526 %
4527 %\begin{macro}{\@tidx@par@xi}
4528 % \begin{macrocode}
4529 \tstidxnewblock
4530 {%
4531 So \tstidxperson{Sir}{Quackalot} set out on his \tstidxword{quest}.
4532 (This is the \tstidxword{continuation} from
4533 the previous \tstidxword{block}, for any \tstidxword{newcomers}
4534 who have just turned up.) He soon arrived at
4535 \tstidxartphrase{the}{Bog of Eternal Glossaries} (that's a
4536 reference to my \tstidxsty{glossaries} package, and it's also a
4537 \tstidxword{nod} to \tstidxartplace{the}{Bog of Eternal Stench} in
4538 \tstidxfilm{Labyrinth}), in the
4539 \tstidxword{centre} (or \tstidxword{center} for those of you
4540 \tstidxphrase{across the pond}) of which was
4541 suspended \tstidxartphrase{the}{Mighty Helm of Knuth}, but
4542 \tstidxperson{Sir}{Quackalot} was learned in the \tstidxword{lore} of
4543 installing \tstidxapp{Perl} and was able to leap upon the \tstidxword{magical}
4544 \tstidxword{raft} \tstidxapp{makeglossaries} and steer his way through the
4545 \tstidxword{external} \tstidxphrasepl{indexing application} and their many
4546 arguments. (That's supposed to be a \tstidxword{pun}, but it's
4547 \tstidxphrase{bad form} to explain the \tstidxword{joke}, and it
4548 wasn't even particularly \tstidxword{witty}.
4549 Incidentally, \tstidxperson{Joseph}{Wright} makes a
4550 \tstidxword{cameo} at this point with the
4551 \tstidxword{exclamation} \tstidxqt{fetchez la vache!}\ but you'll have to
4552 ask \tstidxperson{Paulo}{Cereda} what
4553 that's all about. It wouldn't surprise me if it had something to
4554 do with \tstidxphrase{Monty Python}.)%
4555 }
4556 % \end{macrocode}
4557 %\end{macro}
4558 %
4559 %\begin{macro}{\@tidx@par@xii}
4560 % \begin{macrocode}
4561 \tstidxnewblock
4562 {%
4563 Anyway, where were we? Oh, yes. He (that's
4564 \tstidxperson{Sir}{Quackalot} we're talking about, if you've only
4565 just joined us) snatched up \tstidxartphrase{the}{Mighty Helm of Knuth} and
4566 escaped from the \tstidxword{perilous} \tstidxword{bog}. Soon he came to
4567 \tstidxartphrase{the}{Dread Vale of the Editors}, guarded
4568 at either end by the ever-quarrelling
4569 \tstidxword{leviathans} \tstidxapp{Emacs} and \tstidxapp{Vi}.
4570 As he approached the \tstidxword{vale}, Emacs uttered the
4571 \tstidxphrase{magic incantation} that
4572 sent forth \tstidxartphrase{the}{butterflies of chaos}.
4573 (I know \tstidxqt{\tstidxword{doom}} is more appropriate but,
4574 as is \tstidxphrase{common knowledge}, \tstidxword{chaos} is a
4575 \tstidxword{butterfly} \tstidxword{motif}.)%
4576 }
4577 % \end{macrocode}
4578 %\end{macro}
4579 %
4580 %\begin{macro}{\@tidx@par@xiii}
4581 % \begin{macrocode}
4582 \tstidxnewblock
4583 {%
4584 But \tstidxperson{Sir}{Quackalot} was protected by
4585 \tstidxartphrase{the}{Mighty Helm of Knuth} and
4586 raced past into the \tstidxword{vale}, where he found
4587 \tstidxartphrase{the}{Legendary Sword} \tstidxword{xor} in
4588 the centre of the great \tstidxsty{longtable}. (\tstidxword{Ooh}, I've started a
4589 \tstidxword{sentence} with a \tstidxword{conjunction}.
4590 How \tstidxword{naughty} is that?)
4591 With a great \tstidxword{leap} and a \tstidxword{bound},
4592 \tstidxperson{Sir}{Quackalot} plucked out the \tstidxword{sword} and
4593 headed for the far end of the \tstidxword{vale}.
4594 Up pounced \tstidxapp{Vi} and belched forth a \tstidxword{myriad}
4595 of \tstidxword{clones} that bore down on
4596 \tstidxperson{Sir}{Quackalot}. But, brandishing the \tstidxword{sword}
4597 \tstidxword{xor}, \tstidxperson{Sir}{Quackalot} sliced them down.
4598 (There's some \tstidxword{repetition} there, but hopefully no one's
4599 noticed. There's even more coming up in the next
4600 \tstidxword{block}.)%
4601 }
4602 % \end{macrocode}
4603 %\end{macro}
4604 %
4605 %\begin{macro}{\@tidx@par@xiv}
4606 % \begin{macrocode}
4607 \tstidxnewblock*{\@tidx@close@testidxsty}%
4608 {%
4609 \tstidxperson{Sir}{Quackalot} escaped from
4610 \tstidxartphrase{the}{Dread Vale of the Editors} and set off
4611 up the path that led to the evil \tstidxword{OgRe}'s \tstidxword{lair}.
4612 As \tstidxperson{Sir}{Quackalot} approached, there was a fearful
4613 \tstidxword{roar}, and the \tstidxword{OgRe} pounced on \tstidxperson{Sir}{Quackalot}.
4614 The brave \tstidxword{knight} raised his powerful \tstidxword{sword}
4615 \tstidxword{xor} and brought it down on the \tstidxword{OgRe}, destroying him.
4616 \tstidxperson{Sir}{Quackalot} rescued \tstidxartphrase{the}{Golden Arara}
4617 and the \tstidxword{land} was once more restored to \tstidxword{peace} and
4618 \tstidxword{harmony} and
4619 \tstidxwordpl{paragraph} were able to \tstidxword{span}
4620 \tstidxphrasepl{page break} without \tstidxword{fear}.
4621 \tstidxartphrase{The}{End}. Don't miss the next \tstidxword{thrilling}
4622 \tstidxword{adventure} \tstidxbook{Sir Quackalot and the Hyper Lake of Doom}
4623 where our \tstidxword{seaborne} \tstidxphrase{intrepid hero}%
4624 \tstindexsubsee{hero}{intrepid}[hero.intrepid]{see}{intrepid hero} meets a \tstidxword{quixotic}
4625 \tstidxword{seal} with a \tstidxword{zither} (a \tstidxword{zealous}
4626 \tstidxword{fan} of \tstidxartfilm{The}{Third Man}), a \tstidxword{youthful}
4627 \tstidxphrase{sea lion} with a \tstidxword{magic}
4628 \tstidxword{yo-yo}, and a \tstidxword{wily} \tstidxword{wombat}
4629 \tstidxword{warrior} with a \tstidxword{laser-guided}
4630 \tstidxphrase{sealant gun}. Can they defeat the
4631 \tstidxword{villainous}, \tstidxword{zany} \tstidxword{zoologist}
4632 sailing a \tstidxword{xebec} across the \tstidxword{sea} bearing canisters of
4633 \tstidxword{xenon}, \tstidxword{xylem} and \tstidxword{xylene}?
4634 Oh, \tstidxword{zounds}! He's \tstidxword{ashore} wearing
4635 a \tstidxphrase{zoot suit} and smoking a \tstidxword{zucchini}
4636 whilst playing a \tstidxword{xylophone}.
4637 As one \tstidxphrase{anonymous reviewer} said,
4638 it's as \tstidxword{exhilarating} as watching a \tstidxword{yuppie}
4639 eating a \tstidxphrase{yule log} soaked in \tstidxphrase{yoghurt}.
4640 Hmm, \tstidxword{yummy}\tstidxdash or \tstidxword{yuck}, depending
4641 on your tastes. Don't forget to \tstidxword{check} you
4642 have some \tstidxword{chalk} so we can write
4643 \tstidxword{ddisgynedig} and \tstidxword{ddyrchafedig}
4644 in \tstidxplace{Nghaerdydd} (over in \tstidxplace{Nghymru})
4645 because I want a few more words with \tstidxwordpl{digraph},
4646 and then we can take a \tstidxword{ffotograff} of
4647 \tstidxplace{Ffestiniog}.%
4648 }
4649 % \end{macrocode}
4650 %\end{macro}
4651 %
4652 %\begin{macro}{\@tidx@par@xv}
4653 % \begin{macrocode}
4654 \tstidxnewblock
4655 {%
4656 Oh, did I tell you about the \tstidxphrase{vice-president} who was
4657 a \tstidxword{Viking} in a \tstidxword{vignette}? No? Well, I can't
4658 quite remember the \tstidxword{story} myself, but it had something
4659 to do with a \tstidxphrase{vice admiral} with a
4660 \tstidxphrase{Victoria plum} and a \tstidxphrase{viceroy} with
4661 a \tstidxphrase{Victoria sponge}, or was it
4662 \tstidxphrase{vice versa}? The \tstidxphrase{vice chancellor}
4663 preferred \tstidxword{vichyssoise}.
4664 For \tstidxphrase{letter ordering} use the \tstidxappopt{makeindex}{-l} option
4665 with \tstidxapp{makeindex} or the \texttt{ord/letorder} module
4666 with \tstidxapp{xindy} (\tstidxappopt{xindy}{-M ord/letorder}).
4667 If you omit this, the default
4668 \tstidxphrase{word ordering} is used. The ordering in the
4669 \tstidxbook{Compact Oxford English Dictionary} (third edition,
4670 revised) for these words are: vice admiral, vice chancellor, vice-president,
4671 \tstidxword{viceregal}, viceroy, vice versa. Quick
4672 \tstidxword{quiz}. Can you get \tstidxapp{makeindex} or
4673 \tstidxapp{xindy} to reproduce that order?%
4674 }
4675 % \end{macrocode}
4676 %\end{macro}
4677 %
4678 %\begin{macro}{\@tidx@par@xvi}
4679 % \begin{macrocode}
4680 \tstidxnewblock*{\@tidx@close@testidxsty}%
4681 {%
4682 This is the final \tstidxword{block} of dummy text
4683 provided by the \tstidxclosesty{testidx} package. This block
4684 contains the close of a \tstidxword{range} that was started in block~1.
4685 Fun, wasn't it?%
4686 }
4687 % \end{macrocode}
4688 %\end{macro}
4689 %\iffalse
4690 % \begin{macrocode}
4691 %</testidx.sty>
4692 % \end{macrocode}
4693 %\fi
4694 %\iffalse
4695 % \begin{macrocode}
4696 %<*testidx-glossaries.sty>
4697 % \end{macrocode}
4698 %\fi
4699 %\section{Support for \styfmt{glossaries}}
4700 %This package allows the dummy text to work with the
4701 %\sty{glossaries} (or \sty{glossaries-extra}) package.
4702 %Instead of using \cs{index}, the entries are first defined
4703 %and then used in the dummy text.
4704 % \begin{macrocode}
4705 \NeedsTeXFormat{LaTeX2e}
4706 \ProvidesPackage{testidx-glossaries}[2019/09/29 v1.2 (NLCT)]
4707 % \end{macrocode}
4708 %
4709 %\begin{macro}{\tstidx@glossariespkg}
4710 %\changes{1.1}{2017-08-11}{new}
4711 %By default just load \sty{glossaries}.
4712 % \begin{macrocode}
4713 \newcommand*{\tstidx@glossariespkg}{glossaries}
4714 % \end{macrocode}
4715 %\end{macro}
4716 % Pass options to \sty{glossaries}, unless \sty{glossaries} has
4717 % already been loaded, in which case use \cs{setupglossaries}
4718 %\begin{macro}{\tstidx@setupglossaries}
4719 %\changes{1.1}{2017-08-11}{new}
4720 % \begin{macrocode}
4721 \@ifpackageloaded{glossaries}
4722 {%
4723 \newcommand*{\tstidx@setupglossaries}[1]{\setupglossaries{#1}}%
4724 }%
4725 {%
4726 \newcommand*{\tstidx@setupglossaries}[1]{%
4727 \PassOptionsToPackage{#1}{glossaries}%
4728 }
4729 }
4730 % \end{macrocode}
4731 %\end{macro}
4732 %
4733 %\begin{macro}{\tstidx@setupglossariesextra}
4734 %\changes{1.1}{2017-08-11}{new}
4735 %For options specific to \sty{glossaries-extra}.
4736 % \begin{macrocode}
4737 \@ifpackageloaded{glossaries-extra}
4738 {%
4739 \newcommand*{\tstidx@setupglossariesextra}[1]{\glossariesextrasetup{#1}}%
4740 }%
4741 {%
4742 \newcommand*{\tstidx@setupglossariesextra}[1]{%
4743 \PassOptionsToPackage{#1}{glossaries-extra}%
4744 }
4745 }
4746 % \end{macrocode}
4747 %\end{macro}
4748 %
4749 %\begin{macro}{\tstidx@usemakegloss}
4750 % \begin{macrocode}
4751 \newcommand*{\tstidx@usemakegloss}{\PackageError{testidx-glossaries}{You
4752 need to put \string\tstidxmakegloss\MessageBreak in the preamble in order
4753 to use\MessageBreak \string\testidx\space with testidx-glossaries}{}}
4754 % \end{macrocode}
4755 %\end{macro}
4756 %
4757 %Need to know whether to use \cs{makeglossaries},
4758 %\cs{makenoidxglossaries}, \cs{GlsXtrLoadResources}.
4759 %\begin{macro}{\tstidxmakegloss}
4760 %\changes{1.1}{2017-08-11}{new}
4761 % \begin{macrocode}
4762 \newcommand*{\tstidxmakegloss}[1][]{%
4763 \@tstidx@ifgerman{\GlsSetQuote{+}}{}%
4764 \tstidxdefaultmakegloss
4765 }
4766 % \end{macrocode}
4767 %\end{macro}
4768 %Similarly for displaying the glossary.
4769 %\begin{macro}{\tstidxprintglossaries}
4770 %\changes{1.1}{2017-08-11}{new}
4771 % \begin{macrocode}
4772 \newcommand*{\tstidxprintglossaries}{\printglossaries}
4773 % \end{macrocode}
4774 %\end{macro}
4775 %
4776 %Similarly for displaying the glossary.
4777 %\begin{macro}{\tstidxprintglossary}
4778 %\changes{1.1}{2017-08-11}{new}
4779 % \begin{macrocode}
4780 \newcommand*{\tstidxprintglossary}{\printglossary}
4781 % \end{macrocode}
4782 %\end{macro}
4783 %
4784 %\begin{macro}{\tstidxtexfiles}
4785 %\changes{1.1}{2017-08-11}{new}
4786 % \begin{macrocode}
4787 \newcommand*{\tstidxtexfiles}{testidx-glossaries-samples,\tstidxglyphfile}
4788 % \end{macrocode}
4789 %\end{macro}
4790 %
4791 %\begin{macro}{\tstidxbasebibfiles}
4792 %\changes{1.1}{2017-08-11}{new}
4793 % \begin{macrocode}
4794 \newcommand*{\tstidxbasebibfiles}{testidx-glossaries-samples}
4795 % \end{macrocode}
4796 %\end{macro}
4797 %
4798 %\begin{macro}{\tstidxasciibibfiles}
4799 %\changes{1.1}{2017-08-11}{new}
4800 % \begin{macrocode}
4801 \newcommand*{\tstidxasciibibfiles}{testidx-glossaries-samples-ascii}
4802 % \end{macrocode}
4803 %\end{macro}
4804 %
4805 %\begin{macro}{\tstidxutfbibfiles}
4806 %\changes{1.1}{2017-08-11}{new}
4807 % \begin{macrocode}
4808 \newcommand*{\tstidxutfbibfiles}{testidx-glossaries-samples-utf8}
4809 % \end{macrocode}
4810 %\end{macro}
4811
4812 %\begin{macro}{\tstidxloadsamples}
4813 %\changes{1.1}{2017-08-11}{new}
4814 %Set up \cs{tstidxmakegloss} to use \cs{makenoidxglossaries}
4815 %(use \TeX\ to sort and collate).
4816 % \begin{macrocode}
4817 \newcommand*{\tstidxloadsamples}{%
4818 \@for\tstidxfile:=\tstidxtexfiles\do{\input{\tstidxfile}}%
4819 \renewcommand*{\tstidx@usemakegloss}{}%
4820 }
4821 % \end{macrocode}
4822 %\end{macro}
4823 %
4824 %
4825 %\begin{macro}{\tstidxdefaultmakegloss}
4826 %\changes{1.1}{2017-08-11}{new}
4827 %Set up \cs{tstidxmakegloss} to use \cs{makeglossaries}
4828 %(either \app{makeindex} or \app{xindy}).
4829 % \begin{macrocode}
4830 \newcommand*{\tstidxdefaultmakegloss}{%
4831 \makeglossaries
4832 \tstidxloadsamples
4833 }
4834 % \end{macrocode}
4835 %\end{macro}
4836 %
4837 %\begin{macro}{\tstidxnoidxmakegloss}
4838 %\changes{1.1}{2017-08-11}{new}
4839 %Set up \cs{tstidxmakegloss} to use \cs{makenoidxglossaries}
4840 %(use \TeX\ to sort and collate).
4841 % \begin{macrocode}
4842 \newcommand*{\tstidxnoidxmakegloss}{%
4843 \makenoidxglossaries
4844 \tstidxloadsamples
4845 }
4846 % \end{macrocode}
4847 %\end{macro}
4848 %
4849 %\begin{macro}{\tstidxbibmakegloss}
4850 %\changes{1.1}{2017-08-11}{new}
4851 % \begin{macrocode}
4852 \newcommand*{\tstidxbibmakegloss}[1]{%
4853 \def\@tstidx@resourceargs{}%
4854 \@tstidx@ifutfviii
4855 {%
4856 \def\@tstidx@resource@src{\tstidxbasebibfiles,%
4857 \tstidxutfbibfiles,%
4858 \tstidxglyphfile-utf8}%
4859 }%
4860 {%
4861 \def\@tstidx@resource@src{\tstidxbasebibfiles,%
4862 \tstidxasciibibfiles,%
4863 testidx-glossaries-nodiglyphs}%
4864 }%
4865 \if@tstidx@setdescription
4866 \if@tstidx@useglsseekey
4867 \def\@tstidx@resourceargs{selection={recorded and deps and see}}%
4868 \else
4869 \def\@tstidx@resourceargs{ignore-fields={see,seealso}}%
4870 \fi
4871 \else
4872 \if@tstidx@useglsseekey
4873 \def\@tstidx@resourceargs{%
4874 selection={recorded and deps and see},
4875 ignore-fields={description}}%
4876 \else
4877 \def\@tstidx@resourceargs{%
4878 ignore-fields={description,see,seealso}}%
4879 \fi
4880 \fi
4881 \iftestidxprefix
4882 \tstidxloadglsresource{src={testidx-glossaries-mathsym},%
4883 group={Maths},sort={letter-case},\@tstidx@resourceargs}%
4884 \tstidxloadglsresource{src={testidx-glossaries-markers},%
4885 group={Markers},sort={letter-case},\@tstidx@resourceargs}%
4886 \iftstidxnumbergroup
4887 \tstidxloadglsresource{src={testidx-glossaries-numbers},%
4888 sort={integer},\@tstidx@resourceargs}%
4889 \tstidxloadglsresource{src={\@tstidx@resource@src},%
4890 \@tstidx@resourceargs,#1}%
4891 \else
4892 \tstidxloadglsresource{src={testidx-glossaries-numbers,%
4893 \@tstidx@resource@src},%
4894 \@tstidx@resourceargs,#1}%
4895 \fi
4896 \else
4897 \iftstidxnumbergroup
4898 \tstidxloadglsresource{src={testidx-glossaries-numbers},%
4899 sort={integer},\@tstidx@resourceargs}%
4900 \tstidxloadglsresource{%
4901 src={testidx-glossaries-mathsym,%
4902 testidx-glossaries-markers,%
4903 \@tstidx@resource@src},%
4904 \@tstidx@resourceargs,#1}%
4905 \else
4906 \tstidxloadglsresource{%
4907 src={testidx-glossaries-mathsym,%
4908 testidx-glossaries-markers,%
4909 testidx-glossaries-numbers,%
4910 \@tstidx@resource@src},%
4911 \@tstidx@resourceargs,#1}%
4912 \fi
4913 \fi
4914 \renewcommand*{\tstidx@usemakegloss}{}%
4915 }
4916 % \end{macrocode}
4917 %\end{macro}
4918 %
4919 %\begin{macro}{\tstidxloadglsresource}
4920 %\changes{1.1}{2017-08-11}{new}
4921 % \begin{macrocode}
4922 \newcommand{\tstidxloadglsresource}[1]{%
4923 \iftestidxverbose
4924 \PackageInfo{testidx-glossaries}{\string\GlsXtrLoadResources[#1]}%
4925 \fi
4926 \GlsXtrLoadResources[#1]%
4927 }
4928 % \end{macrocode}
4929 %\end{macro}
4930 %
4931 %
4932 %Determine whether to use the "see" (and "seealso") key or \cs{glssee}.
4933 %\begin{macro}{if@tstidx@useglsseekey}
4934 %\changes{1.1}{2017-08-11}{new}
4935 % \begin{macrocode}
4936 \newif\if@tstidx@useglsseekey
4937 \@tstidx@useglsseekeytrue
4938 % \end{macrocode}
4939 %\end{macro}
4940 %
4941 % \begin{macrocode}
4942 \DeclareOption{seekey}{\@tstidx@useglsseekeytrue}
4943 % \end{macrocode}
4944 %
4945 % \begin{macrocode}
4946 \DeclareOption{noseekey}{\@tstidx@useglsseekeyfalse}
4947 % \end{macrocode}
4948 %
4949 %Determine whether to provide descriptions for the sample entries.
4950 %\begin{macro}{if@tstidx@setdescription}
4951 %\changes{1.1}{2017-08-11}{new}
4952 % \begin{macrocode}
4953 \newif\if@tstidx@setdescription
4954 \@tstidx@setdescriptionfalse
4955 % \end{macrocode}
4956 %\end{macro}
4957 %
4958 % \begin{macrocode}
4959 \DeclareOption{desc}{\@tstidx@setdescriptiontrue}
4960 % \end{macrocode}
4961 %
4962 % \begin{macrocode}
4963 \DeclareOption{nodesc}{\@tstidx@setdescriptionfalse}
4964 % \end{macrocode}
4965 %
4966 %Load \sty{glossaries-extra}:
4967 % \begin{macrocode}
4968 \DeclareOption{extra}{\renewcommand*{\tstidx@glossariespkg}{glossaries-extra}}
4969 % \end{macrocode}
4970 %Don't load \sty{glossaries-extra}:
4971 % \begin{macrocode}
4972 \DeclareOption{noextra}{\renewcommand*{\tstidx@glossariespkg}{glossaries}}
4973 % \end{macrocode}
4974 %\begin{macro}{\@testidx@ifusebibgls}
4975 % Determine if the \pkgopt{bib2gls} option was used.
4976 % \begin{macrocode}
4977 \newcommand*{\@testidx@ifusebibgls}[2]{#2}
4978 % \end{macrocode}
4979 %\end{macro}
4980 % Use makeindex:
4981 % \begin{macrocode}
4982 \DeclareOption{makeindex}{%
4983 \let\@testidx@ifusebibgls\@secondoftwo
4984 \tstidx@setupglossaries{makeindex}%
4985 \renewcommand*{\tstidxmakegloss}[1][]{%
4986 \@tstidx@ifgerman{\GlsSetQuote{+}}{}%
4987 \tstidxdefaultmakegloss
4988 }%
4989 \renewcommand*{\tstidxprintglossaries}{\printglossaries}%
4990 \renewcommand*{\tstidxprintglossary}{\printglossary}%
4991 }
4992 % \end{macrocode}
4993 % Use xindy:
4994 % \begin{macrocode}
4995 \DeclareOption{xindy}{%
4996 \let\@testidx@ifusebibgls\@secondoftwo
4997 \tstidx@setupglossaries{xindy}%
4998 \renewcommand*{\tstidxmakegloss}[1][]{%
4999 \tstidxdefaultmakegloss
5000 }%
5001 \renewcommand*{\tstidxprintglossaries}{\printglossaries}%
5002 \renewcommand*{\tstidxprintglossary}{\printglossary}%
5003 }
5004 % \end{macrocode}
5005 % Use TeX:
5006 % \begin{macrocode}
5007 \DeclareOption{tex}{%
5008 \let\@testidx@ifusebibgls\@secondoftwo
5009 \renewcommand*{\tstidxmakegloss}[1][]{%
5010 \tstidxnoidxmakegloss
5011 }%
5012 \renewcommand*{\tstidxprintglossaries}{\printnoidxglossaries}%
5013 \renewcommand*{\tstidxprintglossary}{\printnoidxglossary}%
5014 }
5015 % \end{macrocode}
5016 %
5017 % Use bib2gls (requires \sty{glossaries-extra}):
5018 % \begin{macrocode}
5019 \DeclareOption{bib2gls}{%
5020 \renewcommand*{\tstidx@glossariespkg}{glossaries-extra}%
5021 \let\@testidx@ifusebibgls\@firstoftwo
5022 \tstidx@setupglossariesextra{record}%
5023 \renewcommand*{\tstidxmakegloss}[1][]{%
5024 \tstidxbibmakegloss{#1}%
5025 }%
5026 \renewcommand*{\tstidxprintglossaries}{\printunsrtglossaries}%
5027 \renewcommand*{\tstidxprintglossary}{\printunsrtglossary}%
5028 }
5029 % \end{macrocode}
5030 %Indicate that \cs{tstidxmakegloss} won't be used:
5031 % \begin{macrocode}
5032 \DeclareOption{manual}{%
5033 \renewcommand*{\tstidx@usemakegloss}{}%
5034 \renewcommand*{\tstidxmakegloss}[1][]{%
5035 \PackageWarning{testidx-glossaries}{\string\tstidxmakegloss\space
5036 disabled by `manual' package option}%
5037 }%
5038 \renewcommand*{\tstidxprintglossaries}{%
5039 \PackageWarning{testidx-glossaries}{\string\tstidxprintglossaries\space
5040 disabled by `manual' package option}%
5041 }%
5042 \renewcommand*{\tstidxprintglossary}{%
5043 \PackageWarning{testidx-glossaries}{\string\tstidxprintglossary\space
5044 disabled by `manual' package option}%
5045 }%
5046 }
5047 % \end{macrocode}
5048 %
5049 %\begin{macro}{\newif\iftstidxnumbergroup}
5050 % \begin{macrocode}
5051 \newif\iftstidxnumbergroup
5052 \tstidxnumbergrouptrue
5053 % \end{macrocode}
5054 % \begin{macrocode}
5055 \DeclareOption{noglsnumbers}{\tstidxnumbergroupfalse}
5056 % \end{macrocode}
5057 %
5058 % \begin{macrocode}
5059 \DeclareOption{glsnumbers}{\tstidxnumbergrouptrue}
5060 % \end{macrocode}
5061 %Pass remaining options to \sty{testidx}:
5062 % \begin{macrocode}
5063 \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{testidx}}
5064 % \end{macrocode}
5065 %Process options:
5066 % \begin{macrocode}
5067 \ProcessOptions
5068 % \end{macrocode}
5069 %Load required packages.
5070 % \begin{macrocode}
5071 \RequirePackage{testidx}
5072 % \end{macrocode}
5073 %Pass options to \sty{glossaries} according to the options
5074 %passed to \sty{testidx}.
5075 % \begin{macrocode}
5076 \@tstidx@ifsanitize
5077 {\tstidx@setupglossaries{sanitizesort=true}}
5078 {\tstidx@setupglossaries{sanitizesort=false}}
5079 % \end{macrocode}
5080 %Load \sty{glossaries} (or \sty{glossaries-extra}, which internally
5081 %loads \sty{glossaries}).
5082 % \begin{macrocode}
5083 \RequirePackage{\tstidx@glossariespkg}
5084 % \end{macrocode}
5085 %Load \sty{glossary-mcols} so the default glossary style can be set to "mcolindexgroup".
5086 % \begin{macrocode}
5087 \RequirePackage{glossary-mcols}
5088 % \end{macrocode}
5089 %Set the default style according to whether or not the entries
5090 %should include descriptions.
5091 % \begin{macrocode}
5092 \if@tstidx@setdescription
5093 \setupglossaries{nopostdot=false}
5094 \setglossarystyle{indexgroup}
5095 \else
5096 \setupglossaries{nopostdot}
5097 \setglossarystyle{mcolindexgroup}
5098 \fi
5099 % \end{macrocode}
5100 %Implement number group setting if \pkgopt{xindy} setting on.
5101 % \begin{macrocode}
5102 \ifglsxindy
5103 \iftstidxnumbergroup
5104 \gls@xindy@glsnumberstrue
5105 \else
5106 \gls@xindy@glsnumbersfalse
5107 \fi
5108 \fi
5109 % \end{macrocode}
5110 % Check if the "seealso" key is available:
5111 %\begin{macro}{\if@tstidx@hasseealsokey}
5112 % \begin{macrocode}
5113 \newif\if@tstidx@hasseealsokey
5114 \key@ifundefined{glossentry}{seealso}%
5115 {\@tstidx@hasseealsokeyfalse}
5116 {\@tstidx@hasseealsokeytrue}
5117 % \end{macrocode}
5118 %\end{macro}
5119 %
5120 %Check if verbose mode is on.
5121 % \begin{macrocode}
5122 \iftestidxverbose
5123 % \end{macrocode}
5124 %\begin{macro}{\@testidx@writeglsinfo}
5125 %If \pkgopt{verbose} mode is on write entry information to the log file.
5126 % \begin{macrocode}
5127 \appto\@newglossaryentryposthook{\@testidx@writeglsinfo}
5128 \newcommand\@testidx@writeglsinfo{%
5129 \letcs{\@tstidx@sort}{glo@\glsdetoklabel{\@glo@label}@sort}%
5130 \@onelevel@sanitize\@tstidx@sort
5131 \letcs{\@tstidx@name}{glo@\glsdetoklabel{\@glo@label}@name}%
5132 \@onelevel@sanitize\@tstidx@name
5133 \letcs{\@tstidx@text}{glo@\glsdetoklabel{\@glo@label}@text}%
5134 \@onelevel@sanitize\@tstidx@text
5135 \ifcsdef{glo@\glsdetoklabel{\@glo@label}@parent}%
5136 {\letcs\@tstidx@parent{glo@\glsdetoklabel{\@glo@label}@parent}}%
5137 {\def\@tstidx@parent{}}%
5138 \PackageInfo{testidx-glossaries}{new term label={\@glo@label},
5139 \MessageBreak
5140 name={\@tstidx@name},
5141 \MessageBreak
5142 sort={\@tstidx@sort},
5143 \MessageBreak
5144 text={\@tstidx@text},
5145 \MessageBreak
5146 parent={\@tstidx@parent},
5147 \MessageBreak
5148 see={\@glo@see}%
5149 \if@tstidx@hasseealsokey
5150 ,\MessageBreak
5151 seealso={\@glo@seealso}
5152 \fi
5153 \MessageBreak
5154 }%
5155 }
5156 % \end{macrocode}
5157 %\end{macro}
5158 %
5159 %If verbose mode is on, write information if \TeX\ is used to sort
5160 %the entries.
5161 %\begin{macro}{\@glo@sortedinsert}
5162 % \begin{macrocode}
5163 \let\tstidx@org@glo@sortedinsert\@glo@sortedinsert
5164 \renewcommand{\@glo@sortedinsert}[2]{%
5165 \typeout{#2}%
5166 \tstidx@org@glo@sortedinsert{#1}{#2}%
5167 }
5168 % \end{macrocode}
5169 %\end{macro}
5170 % \begin{macrocode}
5171 \fi
5172 % \end{macrocode}
5173 %Write a warning message when \TeX\ is about to sort the entries, so
5174 %the user doesn't think the build process has hung. This is already
5175 %implemented in later versions of \sty{glossaries}, so check for the
5176 %command that issues the message.
5177 %\begin{macro}{\@glo@sortentries}
5178 % \begin{macrocode}
5179 \ifdef\glosortentrieswarning
5180 {}
5181 {%
5182 \let\tstidx@org@glo@sortentries\@glo@sortentries
5183 \renewcommand{\@glo@sortentries}[2]{%
5184 \typeout{Using TeX to sort entries---this may take a while}%
5185 \tstidx@org@glo@sortentries{#1}{#2}%
5186 }
5187 }
5188 % \end{macrocode}
5189 %\end{macro}
5190 %
5191 %\begin{macro}{\@tstidx@usemakegloss}
5192 %\changes{1.1}{2017-08-11}{new}
5193 % \begin{macrocode}
5194 \newcommand*{\@tstidx@usemakegloss}{\tstidx@usemakegloss}
5195 % \end{macrocode}
5196 %\end{macro}
5197 %
5198 %\begin{macro}{\tstidxtoidx}
5199 %\changes{1.1}{2017-08-11}{new}
5200 %Restore original indexing definitions.
5201 % \begin{macrocode}
5202 \newcommand*{\tstidxtoidx}{%
5203 \renewcommand*{\@tstidx@usemakegloss}{}%
5204 \let\@tstindex\@tstidx@org@index
5205 \let\@tstidxwordpl\@tstidx@org@wordpl
5206 \let\@tstidxphrasepl\@tstidx@org@phrasepl
5207 \let\@tstidxcs\@tstidx@org@cs
5208 \let\@tstindexpost\@tstidx@org@indexpost
5209 \let\@tstindexopenpost\@tstidx@org@indexopenpost
5210 \let\@tstindexclosepost\@tstidx@org@indexclosepost
5211 \let\@tstindexpre\@tstidx@org@indexpre
5212 \let\@tstindexopenpre\@tstidx@org@indexopenpre
5213 \let\@tstindexclosepre\@tstidx@org@indexclosepre
5214 \let\@tstindexsee\@tstidx@org@indexsee
5215 \let\@tstidx@indexsubsee\@tstidx@org@indexsubsee
5216 \let\@tstidx@subindexpost\@tstidx@org@subindexpost
5217 \let\@tstidx@subindexopenpost\@tstidx@org@subindexopenpost
5218 \let\@tstidx@subindexclosepost\@tstidx@org@subindexclosepost
5219 \let\@tstidx@subindexpre\@tstidx@org@subindexpre
5220 \let\@tstidx@subindexopenpre\@tstidx@org@subindexopenpre
5221 \let\@tstidx@subindexclosepre\@tstidx@org@subindexclosepre
5222 \let\@@tstidx@subsubindexpost\@tstidx@org@subsubindexpost
5223 \let\@@tstidx@subsubindexopenpost\@tstidx@org@subsubindexopenpost
5224 \let\@@tstidx@subsubindexclosepost\@tstidx@org@subsubindexclosepost
5225 \let\@@tstidx@subsubindexpre\@tstidx@org@subsubindexpre
5226 \let\@@tstidx@subsubindexopenpre\@tstidx@org@subsubindexopenpre
5227 \let\@@tstidx@subsubindexclosepre\@tstidx@org@subsubindexclosepre
5228 \let\@tidx@par@i\@tidx@org@par@i
5229 \let\@tidx@par@ii\@tidx@org@par@ii
5230 \let\@tidx@par@iii\@tidx@org@par@iii
5231 \let\@tidx@par@iv\@tidx@org@par@iv
5232 \let\@tidx@par@vi\@tidx@org@par@vi
5233 \let\@tidx@mathslettergroup\@tidx@org@mathslettergroup
5234 \let\@tidx@numberlettergroup\@tidx@org@numberlettergroup
5235 \let\@tidx@scriptnote\@tidx@org@scriptnote
5236 \let\@tidx@sanitizenote\@tidx@org@sanitizenote
5237 \let\@tidx@stripaccentsnote\@tidx@org@stripaccentsnote
5238 }
5239 % \end{macrocode}
5240 %\end{macro}
5241 %
5242 %\begin{macro}{\tstidxtogls}
5243 %\changes{1.1}{2017-08-11}{new}
5244 %Switch on glossary definitions.
5245 % \begin{macrocode}
5246 \newcommand*{\tstidxtogls}{%
5247 \renewcommand*{\@tstidx@usemakegloss}{\tstidx@usemakegloss}%
5248 \let\@tstindex\@tstidx@org@index
5249 \let\@tstidxwordpl\@tstidx@gls@wordpl
5250 \let\@tstidxphrasepl\@tstidx@gls@phrasepl
5251 \let\@tstidxcs\@tstidx@gls@cs
5252 \let\@tstindexpost\@tstidx@gls@indexpost
5253 \let\@tstindexopenpost\@tstidx@gls@indexopenpost
5254 \let\@tstindexclosepost\@tstidx@gls@indexclosepost
5255 \let\@tstindexpre\@tstidx@gls@indexpre
5256 \let\@tstindexopenpre\@tstidx@gls@indexopenpre
5257 \let\@tstindexclosepre\@tstidx@gls@indexclosepre
5258 \let\@tstindexsee\@tstidx@gls@indexsee
5259 \let\@tstidx@indexsubsee\@tstidx@gls@indexsubsee
5260 \let\@tstidx@subindexpost\@tstidx@gls@subindexpost
5261 \let\@tstidx@subindexopenpost\@tstidx@gls@subindexopenpost
5262 \let\@tstidx@subindexclosepost\@tstidx@gls@subindexclosepost
5263 \let\@tstidx@subindexpre\@tstidx@gls@subindexpre
5264 \let\@tstidx@subindexopenpre\@tstidx@gls@subindexopenpre
5265 \let\@tstidx@subindexclosepre\@tstidx@gls@subindexclosepre
5266 \let\@@tstidx@subsubindexpost\@tstidx@gls@subsubindexpost
5267 \let\@@tstidx@subsubindexopenpost\@tstidx@gls@subsubindexopenpost
5268 \let\@@tstidx@subsubindexclosepost\@tstidx@gls@subsubindexclosepost
5269 \let\@@tstidx@subsubindexpre\@tstidx@gls@subsubindexpre
5270 \let\@@tstidx@subsubindexopenpre\@tstidx@gls@subsubindexopenpre
5271 \let\@@tstidx@subsubindexclosepre\@tstidx@gls@subsubindexclosepre
5272 \let\@tidx@par@i\@tidx@gls@par@i
5273 \let\@tidx@par@ii\@tidx@gls@par@ii
5274 \let\@tidx@par@iii\@tidx@gls@par@iii
5275 \let\@tidx@par@iv\@tidx@gls@par@iv
5276 \let\@tidx@par@vi\@tidx@gls@par@vi
5277 \let\@tidx@mathslettergroup\@tidx@gls@mathslettergroup
5278 \let\@tidx@numberlettergroup\@tidx@gls@numberlettergroup
5279 \let\@tidx@scriptnote\@tidx@gls@scriptnote
5280 \let\@tidx@sanitizenote\@tidx@gls@sanitizenote
5281 \let\@tidx@stripaccentsnote\@tidx@gls@stripaccentsnote
5282 }
5283 % \end{macrocode}
5284 %\end{macro}
5285 %
5286 %\begin{macro}{\testidx}
5287 %\changes{1.1}{2017-08-11}{new}
5288 % \begin{macrocode}
5289 \renewcommand*{\testidx}{%
5290 \@tstidx@usemakegloss
5291 \@ifstar
5292 {%
5293 \def\@testidx@block@sep{\space}%
5294 \@testidx
5295 }%
5296 {%
5297 \def\@testidx@block@sep{\tstidxdefblocksep}%
5298 \@testidx
5299 }%
5300 }
5301 % \end{macrocode}
5302 %\end{macro}
5303 %
5304 %\begin{macro}{\tstidxglyphfile}
5305 %\changes{1.1}{2017-08-11}{new}
5306 % \begin{macrocode}
5307 \iftestidxdiglyphs
5308 \newcommand*{\tstidxglyphfile}{testidx-glossaries-diglyphs}
5309 \else
5310 \newcommand*{\tstidxglyphfile}{testidx-glossaries-nodiglyphs}
5311 \fi
5312 % \end{macrocode}
5313 %\end{macro}
5314 %
5315 %\begin{macro}{\tstidxnewentry}
5316 %\changes{1.1}{2017-08-11}{new}
5317 %\begin{definition}
5318 %\cs{tstidxnewentry}\marg{label}\marg{category}\marg{key=value list}
5319 %\end{definition}
5320 %Defines a new entry. If the \sty{glossaries-extra} package has been
5321 %loaded, also set the category.
5322 % \begin{macrocode}
5323 \@ifpackageloaded{glossaries-extra}
5324 {
5325 \newcommand*{\tstidxnewentry}[3]{\newglossaryentry{#1}{category={#2},#3}}
5326 }
5327 {
5328 \newcommand*{\tstidxnewentry}[3]{\newglossaryentry{#1}{#3}}
5329 }
5330 % \end{macrocode}
5331 %\end{macro}
5332 %
5333 %\subsection{Indexing Command Modifications}
5334 %
5335 %Modify commands that index, so that they use the defined entries
5336 %instead.
5337 %
5338 %\begin{macro}{\@tstindex}
5339 %\changes{1.1}{2017-08-11}{new}
5340 %Do nothing
5341 % \begin{macrocode}
5342 \newcommand*{\@tstidx@gls@index}[1]{}
5343 \let\@tstidx@org@index\@tstindex
5344 \let\@tstindex\@tstidx@gls@index
5345 % \end{macrocode}
5346 %\end{macro}
5347 %
5348 %\begin{macro}{\tstidxwordpl}
5349 %\changes{1.1}{2017-08-11}{new}
5350 % \begin{macrocode}
5351 \newcommand*{\@tstidx@gls@wordpl}[2]{%
5352 {\def\tstidx@gls{\glspl}\def\tstidx@glsentry{\glsentryplural}%
5353 \tstidxword[#1]{#2}%
5354 }%
5355 }
5356 \let\@tstidx@org@wordpl\@tstidxwordpl
5357 \let\@tstidxwordpl\@tstidx@gls@wordpl
5358 % \end{macrocode}
5359 %\end{macro}
5360 %
5361 %\begin{macro}{\tstidxphrasepl}
5362 %\changes{1.1}{2017-08-11}{new}
5363 % \begin{macrocode}
5364 \newcommand*{\@tstidx@gls@phrasepl}[2]{%
5365 {\def\tstidx@gls{\glspl}\def\tstidx@glsentry{\glsentryplural}%
5366 \tstidxphrase[#1]{#2}%
5367 }%
5368 }
5369 \let\@tstidx@org@phrasepl\@tstidxphrasepl
5370 \let\@tstidxphrasepl\@tstidx@gls@phrasepl
5371 % \end{macrocode}
5372 %\end{macro}
5373 %
5374 %\begin{macro}{\tstidxcs}
5375 %\changes{1.1}{2017-08-11}{new}
5376 % \begin{macrocode}
5377 \newcommand*{\@tstidx@gls@cs}[2]{%
5378 \tstidxfmtpost{cs.#2}{\tstidxcsfmt}{#1}%
5379 }
5380 \let\@tstidx@org@cs\@tstidxcs
5381 \let\@tstidxcs\@tstidx@gls@cs
5382 % \end{macrocode}
5383 %\end{macro}
5384 %
5385 %\begin{macro}{\tstidx@gls}
5386 %\changes{1.1}{2017-08-11}{new}
5387 % \begin{macrocode}
5388 \newcommand*{\tstidx@gls}{\gls}
5389 % \end{macrocode}
5390 %\end{macro}
5391 %
5392 %\begin{macro}{\tstidx@glsentry}
5393 %\changes{1.1}{2017-08-11}{new}
5394 % \begin{macrocode}
5395 \newcommand*{\tstidx@glsentry}{\glsentrytext}
5396 % \end{macrocode}
5397 %\end{macro}
5398 %
5399 %\begin{macro}{\tstidx@label}
5400 %\changes{1.1}{2017-08-11}{new}
5401 % \begin{macrocode}
5402 \newcommand*{\tstidx@label}{\glslabel}
5403 % \end{macrocode}
5404 %\end{macro}
5405 %
5406 %\begin{macro}{\tstidx@encap}
5407 %\changes{1.1}{2017-08-11}{new}
5408 % \begin{macrocode}
5409 \newcommand*{\tstidx@encap}{}
5410 % \end{macrocode}
5411 %\end{macro}
5412 %
5413 %\begin{macro}{\tstidx@range}
5414 %\changes{1.1}{2017-08-11}{new}
5415 % \begin{macrocode}
5416 \newcommand*{\tstidx@range}{}
5417 % \end{macrocode}
5418 %\end{macro}
5419 %
5420 %\begin{macro}{\tstidx@openrange}
5421 %\changes{1.1}{2017-08-11}{new}
5422 % \begin{macrocode}
5423 \newcommand*{\tstidx@openrange}{(}
5424 % \end{macrocode}
5425 %\end{macro}
5426 %
5427 %\begin{macro}{\tstidx@closerange}
5428 %\changes{1.1}{2017-08-11}{new}
5429 % \begin{macrocode}
5430 \newcommand*{\tstidx@closerange}{)}
5431 % \end{macrocode}
5432 %\end{macro}
5433 %
5434 %\begin{macro}{\tstidx@levelmarker}
5435 %\changes{1.1}{2017-08-11}{new}
5436 % \begin{macrocode}
5437 \newcommand*{\tstidx@levelmarker}[4]{%
5438 \ifcsdef{glo@#1@level}%
5439 {%
5440 \ifcase\csname glo@#1@level\endcsname
5441 #2\or#3\else#4%
5442 \fi
5443 }%
5444 {%
5445 #2%
5446 }%
5447 }
5448 % \end{macrocode}
5449 %\end{macro}
5450 %
5451 %\begin{macro}{\tstidx@post@glstextformat}
5452 %\changes{1.1}{2017-08-11}{new}
5453 % \begin{macrocode}
5454 \newcommand*{\tstidx@post@glstextformat}[1]{%
5455 \ifx\@tstidx@encap\@empty
5456 \iftestidxshowmarks
5457 \ifx\@tstidx@range\tstidx@openrange
5458 \tstidxtext{#1%
5459 \tstidx@levelmarker\@tstidx@label
5460 \tstidxopenmarker
5461 \tstidxopensubmarker
5462 \tstidxopensubsubmarker
5463 }%
5464 \else
5465 \ifx\@tstidx@range\tstidx@closerange
5466 \tstidxtext{#1%
5467 \tstidx@levelmarker\@tstidx@label
5468 \tstidxclosemarker
5469 \tstidxclosesubmarker
5470 \tstidxclosesubsubmarker
5471 }%
5472 \else
5473 \tstidxtext{#1%
5474 \tstidx@levelmarker\@tstidx@label
5475 \tstidxmarker
5476 \tstidxsubmarker
5477 \tstidxsubsubmarker
5478 }%
5479 \fi
5480 \fi
5481 \else
5482 #1%
5483 \fi
5484 \else
5485 \iftestidxshowmarks
5486 \tstidxtext{\tstidxencaptext{\@tstidx@encap}{#1%
5487 \tstidx@levelmarker\@tstidx@label
5488 \tstidxmarker
5489 \tstidxsubmarker
5490 \tstidxsubsubmarker
5491 }}%
5492 \else
5493 #1%
5494 \fi
5495 \fi
5496 }
5497 % \end{macrocode}
5498 %\end{macro}
5499 %
5500 %\begin{macro}{\tstidx@pre@glstextformat}
5501 %\changes{1.1}{2017-08-11}{new}
5502 % \begin{macrocode}
5503 \newcommand*{\tstidx@pre@glstextformat}[1]{%
5504 \ifx\@tstidx@encap\@empty
5505 \iftestidxshowmarks
5506 \ifx\@tstidx@range\tstidx@openrange
5507 \tstidxtext{%
5508 \tstidx@levelmarker\@tstidx@label
5509 \tstidxopenmarker
5510 \tstidxopensubmarker
5511 \tstidxopensubsubmarker
5512 #1}%
5513 \else
5514 \ifx\@tstidx@range\tstidx@closerange
5515 \tstidxtext{%
5516 \tstidx@levelmarker\@tstidx@label
5517 \tstidxclosemarker
5518 \tstidxclosesubmarker
5519 \tstidxclosesubsubmarker
5520 #1}%
5521 \else
5522 \tstidxtext{%
5523 \tstidx@levelmarker\@tstidx@label
5524 \tstidxmarker
5525 \tstidxsubmarker
5526 \tstidxsubsubmarker
5527 #1}%
5528 \fi
5529 \fi
5530 \else
5531 #1%
5532 \fi
5533 \else
5534 \iftestidxshowmarks
5535 \tstidxtext{\tstidxencaptext{\@tstidx@encap}{%
5536 \tstidx@levelmarker\@tstidx@label
5537 \tstidxmarker
5538 \tstidxsubmarker
5539 \tstidxsubsubmarker
5540 #1}}%
5541 \else
5542 #1%
5543 \fi
5544 \fi
5545 }
5546 % \end{macrocode}
5547 %\end{macro}
5548 %
5549 %\begin{macro}{\@tstidx@zapnonlabel}
5550 %\changes{1.1}{2017-08-11}{new}
5551 % \begin{macrocode}
5552 \newcommand*{\@tstidx@zapnonlabel}[2]{%
5553 \ifx,#1\@empty\else\ifx'#1\@empty\else\ifx-#1\@empty\else#1\fi\fi\fi
5554 \ifx#2\@empty
5555 \else
5556 \expandafter\@tstidx@zapnonlabel
5557 \fi
5558 #2}
5559 % \end{macrocode}
5560 %\end{macro}
5561 %
5562 %\begin{macro}{\tstidx@getlabel}
5563 %\changes{1.1}{2017-08-11}{new}
5564 % \begin{macrocode}
5565 \newcommand*{\tstidx@getlabel}[1]{\@tstidx@zapnonlabel#1\@empty\@empty}
5566 % \end{macrocode}
5567 %\end{macro}
5568 %
5569 %\begin{macro}{\tstidx@glspreindex}
5570 %\changes{1.1}{2017-08-11}{new}
5571 % \begin{macrocode}
5572 \newcommand*{\tstidx@glspreindex}[2][]{%
5573 \glshyperlink[\glstextformat{}]{#2}\glsadd[#1]{#2}}
5574 % \end{macrocode}
5575 %\end{macro}
5576 %
5577 %\begin{macro}{\tstidx@glspostindex}
5578 %\changes{1.1}{2017-08-11}{new}
5579 % \begin{macrocode}
5580 \newcommand*{\tstidx@glspostindex}[2][]{%
5581 \glsadd[#1]{#2}\glshyperlink[\glstextformat{}]{#2}}
5582 % \end{macrocode}
5583 %\end{macro}
5584 %
5585 %\begin{macro}{\tstindexpost}
5586 %\changes{1.1}{2017-08-11}{new}
5587 % \begin{macrocode}
5588 \def\@tstidx@gls@indexpost#1#2[#3]#4#5{%
5589 \bgroup
5590 \edef\@tstidx@label{\tstidx@getlabel{#3}}%
5591 \ifx\@tstidx@label\@empty
5592 \edef\@tstidx@label{\tstidx@getlabel{#1}}%
5593 \ifx\@tstidx@label\@empty
5594 \edef\@tstidx@label{\tstidx@getlabel{#2}}%
5595 \fi
5596 \fi
5597 \def\@tstidx@encap{#4}%
5598 \def\@tstidx@range{}%
5599 % \end{macrocode}
5600 %Commands like \cs{gls} and \cs{glslink} put the indexing before the
5601 %text, so we need to do the display text and then use \cs{glsadd}.
5602 %Unless we have \sty{glossaries-extra} v1.14+, in which case this is
5603 %done automatically through the \texttt{wrgloss} setting.
5604 % \begin{macrocode}
5605 \let\tstidx@org@glstextformat\glstextformat
5606 \renewcommand\glstextformat[1]{\tstidx@post@glstextformat
5607 {\tstidx@org@glstextformat{##1}}}%
5608 \ifx\relax#5\relax
5609 \ifx\@tstidx@encap\@empty
5610 \tstidx@glspostindex{\@tstidx@label}%
5611 \else
5612 \tstidx@glspostindex[format={#4}]{\@tstidx@label}%
5613 \fi
5614 \else
5615 \@ifundefined{glsxtrinitwrgloss}%
5616 {%
5617 \glshyperlink[\glstextformat{\tstidx@glsentry{\@tstidx@label}}]%
5618 {\@tstidx@label}%
5619 \ifx\@tstidx@encap\@empty
5620 \glsadd{\@tstidx@label}%
5621 \else
5622 \glsadd[format={#4}]{\@tstidx@label}%
5623 \fi
5624 }%
5625 {%
5626 \ifx\@tstidx@encap\@empty
5627 \tstidx@gls[wrgloss=after]{\@tstidx@label}%
5628 \else
5629 \tstidx@gls[wrgloss=after,format={#4}]{\@tstidx@label}%
5630 \fi
5631 }%
5632 \fi
5633 \egroup
5634 }
5635 \let\@tstidx@org@indexpost\@tstindexpost
5636 \let\@tstindexpost\@tstidx@gls@indexpost
5637 % \end{macrocode}
5638 %\end{macro}
5639 %
5640 %\begin{macro}{\tstindexopenpost}
5641 %\changes{1.1}{2017-08-11}{new}
5642 % \begin{macrocode}
5643 \def\@tstidx@gls@indexopenpost#1#2[#3]#4#5{%
5644 \bgroup
5645 \edef\@tstidx@label{\tstidx@getlabel{#3}}%
5646 \ifx\@tstidx@label\@empty
5647 \edef\@tstidx@label{\tstidx@getlabel{#1}}%
5648 \ifx\@tstidx@label\@empty
5649 \edef\@tstidx@label{\tstidx@getlabel{#2}}%
5650 \fi
5651 \fi
5652 \def\@tstidx@encap{#4}%
5653 \def\@tstidx@range{(}%
5654 \let\tstidx@org@glstextformat\glstextformat
5655 \renewcommand\glstextformat[1]{\tstidx@post@glstextformat
5656 {\tstidx@org@glstextformat{##1}}}%
5657 \ifx\relax#5\relax
5658 \tstidx@glspostindex[format={(#4}]{\@tstidx@label}%
5659 \else
5660 \@ifundefined{glsxtrinitwrgloss}%
5661 {%
5662 \glshyperlink[\glstextformat{\tstidx@glsentry{\@tstidx@label}}]%
5663 {\@tstidx@label}%
5664 \glsadd[format={(#4}]{\@tstidx@label}%
5665 }%
5666 {%
5667 \tstidx@gls[wrgloss=after,format={(#4}]{\@tstidx@label}%
5668 }%
5669 \fi
5670 \egroup
5671 }
5672 \let\@tstidx@org@indexopenpost\@tstindexopenpost
5673 \let\@tstindexopenpost\@tstidx@gls@indexopenpost
5674 % \end{macrocode}
5675 %\end{macro}
5676 %
5677 %\begin{macro}{\tstindexclosepost}
5678 %\changes{1.1}{2017-08-11}{new}
5679 % \begin{macrocode}
5680 \def\@tstidx@gls@indexclosepost#1#2[#3]#4#5{%
5681 \bgroup
5682 \edef\@tstidx@label{\tstidx@getlabel{#3}}%
5683 \ifx\@tstidx@label\@empty
5684 \edef\@tstidx@label{\tstidx@getlabel{#1}}%
5685 \ifx\@tstidx@label\@empty
5686 \edef\@tstidx@label{\tstidx@getlabel{#2}}%
5687 \fi
5688 \fi
5689 \def\@tstidx@encap{#4}%
5690 \def\@tstidx@range{)}%
5691 \let\tstidx@org@glstextformat\glstextformat
5692 \renewcommand\glstextformat[1]{\tstidx@post@glstextformat
5693 {\tstidx@org@glstextformat{##1}}}%
5694 \ifx\relax#5\relax
5695 \tstidx@glspostindex[format={)#4}]{\@tstidx@label}%
5696 \else
5697 \@ifundefined{glsxtrinitwrgloss}%
5698 {%
5699 \glshyperlink[\glstextformat{\tstidx@glsentry{\@tstidx@label}}]%
5700 {\@tstidx@label}%
5701 \glsadd[format={)#4}]{\@tstidx@label}%
5702 }%
5703 {%
5704 \tstidx@gls[wrgloss=after,format={)#4}]{\@tstidx@label}%
5705 }%
5706 \fi
5707 \egroup
5708 }
5709 \let\@tstidx@org@indexclosepost\@tstindexclosepost
5710 \let\@tstindexclosepost\@tstidx@gls@indexclosepost
5711 % \end{macrocode}
5712 %\end{macro}
5713 %
5714 %\begin{macro}{\tstindexpre}
5715 %\changes{1.1}{2017-08-11}{new}
5716 % \begin{macrocode}
5717 \def\@tstidx@gls@indexpre#1#2[#3]#4#5{%
5718 \bgroup
5719 \edef\@tstidx@label{\tstidx@getlabel{#3}}%
5720 \ifx\@tstidx@label\@empty
5721 \edef\@tstidx@label{\tstidx@getlabel{#1}}%
5722 \ifx\@tstidx@label\@empty
5723 \edef\@tstidx@label{\tstidx@getlabel{#2}}%
5724 \fi
5725 \fi
5726 \def\@tstidx@encap{#4}%
5727 \def\@tstidx@range{}%
5728 \let\tstidx@org@glstextformat\glstextformat
5729 \renewcommand\glstextformat[1]{\tstidx@pre@glstextformat
5730 {\tstidx@org@glstextformat{##1}}}%
5731 \ifx\relax#5\relax
5732 \ifx\@tstidx@encap\@empty
5733 \tstidx@glspreindex{\@tstidx@label}%
5734 \else
5735 \tstidx@glspreindex[format={#4}]{\@tstidx@label}%
5736 \fi
5737 \else
5738 \ifx\@tstidx@encap\@empty
5739 \tstidx@gls{\@tstidx@label}%
5740 \else
5741 \tstidx@gls[format={#4}]{\@tstidx@label}%
5742 \fi
5743 \fi
5744 \egroup
5745 }
5746 \let\@tstidx@org@indexpre\@tstindexpre
5747 \let\@tstindexpre\@tstidx@gls@indexpre
5748 % \end{macrocode}
5749 %\end{macro}
5750 %
5751 %\begin{macro}{\tstindexopenpre}
5752 %\changes{1.1}{2017-08-11}{new}
5753 % \begin{macrocode}
5754 \def\@tstidx@gls@indexopenpre#1#2[#3]#4#5{%
5755 \bgroup
5756 \edef\@tstidx@label{\tstidx@getlabel{#3}}%
5757 \ifx\@tstidx@label\@empty
5758 \edef\@tstidx@label{\tstidx@getlabel{#1}}%
5759 \ifx\@tstidx@label\@empty
5760 \edef\@tstidx@label{\tstidx@getlabel{#2}}%
5761 \fi
5762 \fi
5763 \def\@tstidx@encap{#4}%
5764 \def\@tstidx@range{(}%
5765 \let\tstidx@org@glstextformat\glstextformat
5766 \renewcommand\glstextformat[1]{\tstidx@pre@glstextformat
5767 {\tstidx@org@glstextformat{##1}}}%
5768 \ifx\relax#5\relax
5769 \tstidx@glspreindex[format={(#4}]{\@tstidx@label}%
5770 \else
5771 \tstidx@gls[format={(#4}]{\@tstidx@label}%
5772 \fi
5773 \egroup
5774 }
5775 \let\@tstidx@org@indexopenpre\@tstindexopenpre
5776 \let\@tstindexopenpre\@tstidx@gls@indexopenpre
5777 % \end{macrocode}
5778 %\end{macro}
5779 %
5780 %\begin{macro}{\tstindexclosepre}
5781 %\changes{1.1}{2017-08-11}{new}
5782 % \begin{macrocode}
5783 \def\@tstidx@gls@indexclosepre#1#2[#3]#4#5{%
5784 \bgroup
5785 \edef\@tstidx@label{\tstidx@getlabel{#3}}%
5786 \ifx\@tstidx@label\@empty
5787 \edef\@tstidx@label{\tstidx@getlabel{#1}}%
5788 \ifx\@tstidx@label\@empty
5789 \edef\@tstidx@label{\tstidx@getlabel{#2}}%
5790 \fi
5791 \fi
5792 \def\@tstidx@encap{#4}%
5793 \def\@tstidx@range{)}%
5794 \let\tstidx@org@glstextformat\glstextformat
5795 \renewcommand\glstextformat[1]{\tstidx@pre@glstextformat
5796 {\tstidx@org@glstextformat{##1}}}%
5797 \ifx\relax#5\relax
5798 \tstidx@glspreindex[format={)#4}]{\@tstidx@label}%
5799 \else
5800 \tstidx@gls[format={)#4}]{\@tstidx@label}%
5801 \fi
5802 \egroup
5803 }
5804 \let\@tstidx@org@indexclosepre\@tstindexclosepre
5805 \let\@tstindexclosepre\@tstidx@gls@indexclosepre
5806 % \end{macrocode}
5807 %\end{macro}
5808 %
5809 %\begin{macro}{\seealsoname}
5810 %\changes{1.1}{2017-08-11}{new}
5811 % \begin{macrocode}
5812 \providecommand*\seealsoname{see also}
5813 % \end{macrocode}
5814 %\end{macro}
5815 %
5816 %\begin{macro}{\seename}
5817 %\changes{1.1}{2017-08-11}{new}
5818 % \begin{macrocode}
5819 \providecommand*\seename{see}
5820 % \end{macrocode}
5821 %\end{macro}
5822 %
5823 %\begin{macro}{\tstidx@seealso}
5824 %\changes{1.1}{2017-08-11}{new}
5825 % \begin{macrocode}
5826 \newcommand*\tstidx@seealso{seealso}
5827 % \end{macrocode}
5828 %\end{macro}
5829 %
5830 %\begin{macro}{\tstindexsee}
5831 %\changes{1.1}{2017-08-11}{new}
5832 % \begin{macrocode}
5833 \def\@tstidx@gls@indexsee#1#2#3#4[#5]#6{%
5834 \if@tstidx@useglsseekey
5835 \else
5836 \bgroup
5837 \edef\@tstidx@label{\tstidx@getlabel{#3}}%
5838 \ifx\@tstidx@label\@empty
5839 \edef\@tstidx@label{\tstidx@getlabel{#1}}%
5840 \ifx\@tstidx@label\@empty
5841 \edef\@tstidx@label{\tstidx@getlabel{#2}}%
5842 \fi
5843 \fi
5844 \ifx\relax#5\relax
5845 \def\@tstidx@xrlabel{}%
5846 \def\@tstidx@xrlabel@sep{}%
5847 \@for\@tst@idxthis:=#6\do{%
5848 \edef\@tstidx@xrlabel{\@tstidx@xrlabel\@tstidx@xrlabel@sep
5849 \expandafter\tstidx@getlabel\expandafter{\@tst@idxthis}}%
5850 \def\@tstidx@xrlabel@sep{,}%
5851 }%
5852 \else
5853 \def\@tstidx@xrlabel{#5}%
5854 \fi
5855 \edef\@tstidx@seetag{#4}%
5856 \ifx\@tstidx@seetag\tstidx@seealso
5857 \if@tstidx@hasseealsokey
5858 \expandafter\glsxtrindexseealso\expandafter\@tstidx@label\expandafter
5859 {\@tstidx@xrlabel}%
5860 \else
5861 \expandafter\glssee\expandafter[\expandafter\seealsoname
5862 \expandafter]\expandafter\@tstidx@label\expandafter{\@tstidx@xrlabel}%
5863 \fi
5864 \else
5865 \expandafter\glssee\expandafter\@tstidx@label\expandafter
5866 {\@tstidx@xrlabel}%
5867 \fi
5868 \iftestidxshowmarks
5869 \ifx\relax#5\relax
5870 \tstidxseeref{#2}{tst#4ref}{#6}%
5871 \else
5872 \tstidxseeref{#2}{tst#4ref}{#5}%
5873 \fi
5874 \fi
5875 \egroup
5876 \fi
5877 }
5878 \let\@tstidx@org@indexsee\@tstindexsee
5879 \let\@tstindexsee\@tstidx@gls@indexsee
5880 % \end{macrocode}
5881 %\end{macro}
5882 %
5883 %\begin{macro}{\tstsubindexpost}
5884 %\changes{1.1}{2017-08-11}{new}
5885 % \begin{macrocode}
5886 \def\@tstidx@gls@subindexpost#1#2[#3]#4#5{%
5887 \bgroup
5888 \edef\@tstidx@label{\tstidx@getlabel{#3}}%
5889 \ifx\@tstidx@label\@empty
5890 \edef\@tstidx@label{\tstidx@getlabel{#1}}%
5891 \ifx\@tstidx@label\@empty
5892 \edef\@tstidx@label{\tstidx@getlabel{#2}}%
5893 \fi
5894 \ifx\@tstidx@label\@empty
5895 \edef\@tstidx@label{\tstidx@getlabel{#2}}%
5896 \fi
5897 \ifx\@tstidx@sort\empty
5898 \edef\@tstidx@label{%
5899 \expandafter\tstidx@getlabel\expandafter{\@tstidx@term}%
5900 .\@tstidx@label}%
5901 \else
5902 \edef\@tstidx@label{%
5903 \expandafter\tstidx@getlabel\expandafter{\@tstidx@sort}%
5904 .\@tstidx@label}%
5905 \fi
5906 \fi
5907 \def\@tstidx@encap{#4}%
5908 \def\@tstidx@range{}%
5909 \let\tstidx@org@glstextformat\glstextformat
5910 \renewcommand\glstextformat[1]{\tstidx@post@glstextformat
5911 {\tstidx@org@glstextformat{##1}}}%
5912 \ifx\relax#5\relax
5913 \ifx\@tstidx@encap\@empty
5914 \tstidx@glspostindex{\@tstidx@label}%
5915 \else
5916 \tstidx@glspostindex[format={#4}]{\@tstidx@label}%
5917 \fi
5918 \else
5919 \@ifundefined{glsxtrinitwrgloss}%
5920 {%
5921 \glshyperlink[\glstextformat{\tstidx@glsentry{\@tstidx@label}}]%
5922 {\@tstidx@label}%
5923 \ifx\@tstidx@encap\@empty
5924 \glsadd{\@tstidx@label}%
5925 \else
5926 \glsadd[format={#4}]{\@tstidx@label}%
5927 \fi
5928 }%
5929 {%
5930 \ifx\@tstidx@encap\@empty
5931 \tstidx@gls[wrgloss=after]{\@tstidx@label}%
5932 \else
5933 \tstidx@gls[wrgloss=after,format={#4}]{\@tstidx@label}%
5934 \fi
5935 }%
5936 \fi
5937 \egroup
5938 }
5939 \let\@tstidx@org@subindexpost\@tstidx@subindexpost
5940 \let\@tstidx@subindexpost\@tstidx@gls@subindexpost
5941 % \end{macrocode}
5942 %\end{macro}
5943 %
5944 %\begin{macro}{\tstsubindexopenpost}
5945 %\changes{1.1}{2017-08-11}{new}
5946 % \begin{macrocode}
5947 \def\@tstidx@gls@subindexopenpost#1#2[#3]#4#5{%
5948 \bgroup
5949 \edef\@tstidx@label{\tstidx@getlabel{#3}}%
5950 \ifx\@tstidx@label\@empty
5951 \edef\@tstidx@label{\tstidx@getlabel{#1}}%
5952 \ifx\@tstidx@label\@empty
5953 \edef\@tstidx@label{\tstidx@getlabel{#2}}%
5954 \fi
5955 \ifx\@tstidx@sort\empty
5956 \edef\@tstidx@label{%
5957 \expandafter\tstidx@getlabel\expandafter{\@tstidx@term}%
5958 .\@tstidx@label}%
5959 \else
5960 \edef\@tstidx@label{%
5961 \expandafter\tstidx@getlabel\expandafter{\@tstidx@sort}%
5962 .\@tstidx@label}%
5963 \fi
5964 \fi
5965 \def\@tstidx@encap{#4}%
5966 \def\@tstidx@range{(}%
5967 \let\tstidx@org@glstextformat\glstextformat
5968 \renewcommand\glstextformat[1]{\tstidx@post@glstextformat
5969 {\tstidx@org@glstextformat{##1}}}%
5970 \ifx\relax#5\relax
5971 \tstidx@glspostindex[format={(#4}]{\@tstidx@label}%
5972 \else
5973 \@ifundefined{glsxtrinitwrgloss}%
5974 {%
5975 \glshyperlink[\glstextformat{\tstidx@glsentry{\@tstidx@label}}]%
5976 {\@tstidx@label}%
5977 \glsadd[format={(#4}]{\@tstidx@label}%
5978 }%
5979 {%
5980 \tstidx@gls[wrgloss=after,format={(#4}]{\@tstidx@label}%
5981 }%
5982 \fi
5983 \egroup
5984 }
5985 \let\@tstidx@org@subindexopenpost\@tstidx@subindexopenpost
5986 \let\@tstidx@subindexopenpost\@tstidx@gls@subindexopenpost
5987 % \end{macrocode}
5988 %\end{macro}
5989 %
5990 %\begin{macro}{\tstsubindexclosepost}
5991 %\changes{1.1}{2017-08-11}{new}
5992 % \begin{macrocode}
5993 \def\@tstidx@gls@subindexclosepost#1#2[#3]#4#5{%
5994 \bgroup
5995 \edef\@tstidx@label{\tstidx@getlabel{#3}}%
5996 \ifx\@tstidx@label\@empty
5997 \edef\@tstidx@label{\tstidx@getlabel{#1}}%
5998 \ifx\@tstidx@label\@empty
5999 \edef\@tstidx@label{\tstidx@getlabel{#2}}%
6000 \fi
6001 \ifx\@tstidx@sort\empty
6002 \edef\@tstidx@label{%
6003 \expandafter\tstidx@getlabel\expandafter{\@tstidx@term}%
6004 .\@tstidx@label}%
6005 \else
6006 \edef\@tstidx@label{%
6007 \expandafter\tstidx@getlabel\expandafter{\@tstidx@sort}%
6008 .\@tstidx@label}%
6009 \fi
6010 \fi
6011 \def\@tstidx@encap{#4}%
6012 \def\@tstidx@range{)}%
6013 \let\tstidx@org@glstextformat\glstextformat
6014 \renewcommand\glstextformat[1]{\tstidx@post@glstextformat
6015 {\tstidx@org@glstextformat{##1}}}%
6016 \ifx\relax#5\relax
6017 \tstidx@glspostindex[format={)#4}]{\@tstidx@label}%
6018 \else
6019 \@ifundefined{glsxtrinitwrgloss}%
6020 {%
6021 \glshyperlink[\glstextformat{\tstidx@glsentry{\@tstidx@label}}]%
6022 {\@tstidx@label}%
6023 \glsadd[format={)#4}]{\@tstidx@label}%
6024 }%
6025 {%
6026 \tstidx@gls[wrgloss=after,format={)#4}]{\@tstidx@label}%
6027 }%
6028 \fi
6029 \egroup
6030 }
6031 \let\@tstidx@org@subindexclosepost\@tstidx@subindexclosepost
6032 \let\@tstidx@subindexclosepost\@tstidx@gls@subindexclosepost
6033 % \end{macrocode}
6034 %\end{macro}
6035 %
6036 %\begin{macro}{\tstsubindexpre}
6037 %\changes{1.1}{2017-08-11}{new}
6038 % \begin{macrocode}
6039 \def\@tstidx@gls@subindexpre#1#2[#3]#4#5{%
6040 \bgroup
6041 \edef\@tstidx@label{\tstidx@getlabel{#3}}%
6042 \ifx\@tstidx@label\@empty
6043 \edef\@tstidx@label{\tstidx@getlabel{#1}}%
6044 \ifx\@tstidx@label\@empty
6045 \edef\@tstidx@label{\tstidx@getlabel{#2}}%
6046 \fi
6047 \ifx\@tstidx@sort\empty
6048 \edef\@tstidx@label{%
6049 \expandafter\tstidx@getlabel\expandafter{\@tstidx@term}%
6050 .\@tstidx@label}%
6051 \else
6052 \edef\@tstidx@label{%
6053 \expandafter\tstidx@getlabel\expandafter{\@tstidx@sort}%
6054 .\@tstidx@label}%
6055 \fi
6056 \fi
6057 \def\@tstidx@encap{#4}%
6058 \def\@tstidx@range{}%
6059 \let\tstidx@org@glstextformat\glstextformat
6060 \renewcommand\glstextformat[1]{\tstidx@pre@glstextformat
6061 {\tstidx@org@glstextformat{##1}}}%
6062 \ifx\relax#5\relax
6063 \ifx\@tstidx@encap\@empty
6064 \tstidx@glspreindex{\@tstidx@label}%
6065 \else
6066 \tstidx@glspreindex[format={#4}]{\@tstidx@label}%
6067 \fi
6068 \else
6069 \ifx\@tstidx@encap\@empty
6070 \tstidx@gls{\@tstidx@label}%
6071 \else
6072 \tstidx@gls[format={#4}]{\@tstidx@label}%
6073 \fi
6074 \fi
6075 \egroup
6076 }
6077 \let\@tstidx@org@subindexpre\@tstidx@subindexpre
6078 \let\@tstidx@subindexpre\@tstidx@gls@subindexpre
6079 % \end{macrocode}
6080 %\end{macro}
6081 %
6082 %\begin{macro}{\tstsubindexopenpre}
6083 %\changes{1.1}{2017-08-11}{new}
6084 % \begin{macrocode}
6085 \def\@tstidx@gls@subindexopenpre#1#2[#3]#4#5{%
6086 \bgroup
6087 \edef\@tstidx@label{\tstidx@getlabel{#3}}%
6088 \ifx\@tstidx@label\@empty
6089 \edef\@tstidx@label{\tstidx@getlabel{#1}}%
6090 \ifx\@tstidx@label\@empty
6091 \edef\@tstidx@label{\tstidx@getlabel{#2}}%
6092 \fi
6093 \ifx\@tstidx@sort\empty
6094 \edef\@tstidx@label{%
6095 \expandafter\tstidx@getlabel\expandafter{\@tstidx@term}%
6096 .\@tstidx@label}%
6097 \else
6098 \edef\@tstidx@label{%
6099 \expandafter\tstidx@getlabel\expandafter{\@tstidx@sort}%
6100 .\@tstidx@label}%
6101 \fi
6102 \fi
6103 \def\@tstidx@encap{#4}%
6104 \def\@tstidx@range{(}%
6105 \let\tstidx@org@glstextformat\glstextformat
6106 \renewcommand\glstextformat[1]{\tstidx@pre@glstextformat
6107 {\tstidx@org@glstextformat{##1}}}%
6108 \ifx\relax#5\relax
6109 \tstidx@glspreindex[format={(#4}]{\@tstidx@label}%
6110 \else
6111 \tstidx@gls[format={(#4}]{\@tstidx@label}%
6112 \fi
6113 \egroup
6114 }
6115 \let\@tstidx@org@subindexopenpre\@tstidx@subindexopenpre
6116 \let\@tstidx@subindexopenpre\@tstidx@gls@subindexopenpre
6117 % \end{macrocode}
6118 %\end{macro}
6119 %
6120 %\begin{macro}{\tstsubindexclosepre}
6121 %\changes{1.1}{2017-08-11}{new}
6122 % \begin{macrocode}
6123 \def\@tstidx@gls@subindexclosepre#1#2[#3]#4#5{%
6124 \bgroup
6125 \edef\@tstidx@label{\tstidx@getlabel{#3}}%
6126 \ifx\@tstidx@label\@empty
6127 \edef\@tstidx@label{\tstidx@getlabel{#1}}%
6128 \ifx\@tstidx@label\@empty
6129 \edef\@tstidx@label{\tstidx@getlabel{#2}}%
6130 \fi
6131 \ifx\@tstidx@sort\empty
6132 \edef\@tstidx@label{%
6133 \expandafter\tstidx@getlabel\expandafter{\@tstidx@term}%
6134 .\@tstidx@label}%
6135 \else
6136 \edef\@tstidx@label{%
6137 \expandafter\tstidx@getlabel\expandafter{\@tstidx@sort}%
6138 .\@tstidx@label}%
6139 \fi
6140 \fi
6141 \def\@tstidx@encap{#4}%
6142 \def\@tstidx@range{)}%
6143 \let\tstidx@org@glstextformat\glstextformat
6144 \renewcommand\glstextformat[1]{\tstidx@pre@glstextformat
6145 {\tstidx@org@glstextformat{##1}}}%
6146 \ifx\relax#5\relax
6147 \tstidx@glspreindex[format={)#4}]{\@tstidx@label}%
6148 \else
6149 \tstidx@gls[format={)#4}]{\@tstidx@label}%
6150 \fi
6151 \egroup
6152 }
6153 \let\@tstidx@org@subindexclosepre\@tstidx@subindexclosepre
6154 \let\@tstidx@subindexclosepre\@tstidx@gls@subindexclosepre
6155 % \end{macrocode}
6156 %\end{macro}
6157 %
6158 %\begin{macro}{\tstindexsubsee}
6159 %\changes{1.1}{2017-08-11}{new}
6160 % \begin{macrocode}
6161 \def\@tstidx@gls@indexsubsee#1#2#3#4[#5]#6{%
6162 \if@tstidx@useglsseekey
6163 \else
6164 \bgroup
6165 \edef\@tstidx@label{\tstidx@getlabel{#3}}%
6166 \ifx\@tstidx@label\@empty
6167 \edef\@tstidx@label{\tstidx@getlabel{#1}}%
6168 \ifx\@tstidx@label\@empty
6169 \edef\@tstidx@label{\tstidx@getlabel{#2}}%
6170 \fi
6171 \fi
6172 \ifx\relax#5\relax
6173 \def\@tstidx@xrlabel{}%
6174 \def\@tstidx@xrlabel@sep{}%
6175 \@for\@tst@idxthis:=#6\do{%
6176 \edef\@tstidx@xrlabel{\@tstidx@xrlabel\@tstidx@xrlabel@sep
6177 \expandafter\tstidx@getlabel\expandafter{\@tst@idxthis}}%
6178 \def\@tstidx@xrlabel@sep{,}%
6179 }%
6180 \else
6181 \def\@tstidx@xrlabel{#5}%
6182 \fi
6183 \edef\@tstidx@seetag{#4}%
6184 \ifx\@tstidx@seetag\tstidx@seealso
6185 \if@tstidx@hasseealsokey
6186 \expandafter\glsxtrindexseealso\expandafter\@tstidx@label\expandafter
6187 {\@tstidx@xrlabel}%
6188 \else
6189 \expandafter\glssee\expandafter[\expandafter\seealsoname
6190 \expandafter]\expandafter\@tstidx@label\expandafter{\@tstidx@xrlabel}%
6191 \fi
6192 \else
6193 \expandafter\glssee\expandafter\@tstidx@label\expandafter
6194 {\@tstidx@xrlabel}%
6195 \fi
6196 \iftestidxshowmarks
6197 \protected@edef\tstidx@dosee{\noexpand\tstidxsubseeref
6198 {\@tstidx@term}{#2}{tst#4ref}{\@tstidx@xrlabel}}%
6199 \tstidx@dosee
6200 \fi
6201 \egroup
6202 \fi
6203 }
6204 \let\@tstidx@org@indexsubsee\@tstidx@indexsubsee
6205 \let\@tstidx@indexsubsee\@tstidx@gls@indexsubsee
6206 % \end{macrocode}
6207 %\end{macro}
6208 %
6209 %\begin{macro}{\tstsubsubindexpost}
6210 %\changes{1.1}{2017-08-11}{new}
6211 % \begin{macrocode}
6212 \def\@tstidx@gls@subsubindexpost#1#2[#3]#4#5{%
6213 \bgroup
6214 \edef\@tstidx@label{\tstidx@getlabel{#3}}%
6215 \ifx\@tstidx@label\@empty
6216 \edef\@tstidx@label{\tstidx@getlabel{#1}}%
6217 \ifx\@tstidx@label\@empty
6218 \edef\@tstidx@label{\tstidx@getlabel{#2}}%
6219 \fi
6220 \ifx\@tstidx@sort\empty
6221 \ifx\@tstidx@subsort\empty
6222 \edef\@tstidx@label{%
6223 \expandafter\tstidx@getlabel\expandafter{\@tstidx@term}%
6224 .\expandafter\tstidx@getlabel\expandafter{\@tstidx@subterm}%
6225 .\@tstidx@label}%
6226 \else
6227 \edef\@tstidx@label{%
6228 \expandafter\tstidx@getlabel\expandafter{\@tstidx@term}%
6229 .\expandafter\tstidx@getlabel\expandafter{\@tstidx@subsort}%
6230 .\@tstidx@label}%
6231 \fi
6232 \else
6233 \ifx\@tstidx@subsort\empty
6234 \edef\@tstidx@label{%
6235 \expandafter\tstidx@getlabel\expandafter{\@tstidx@sort}%
6236 .\expandafter\tstidx@getlabel\expandafter{\@tstidx@subterm}%
6237 .\@tstidx@label}%
6238 \else
6239 \edef\@tstidx@label{%
6240 \expandafter\tstidx@getlabel\expandafter{\@tstidx@sort}%
6241 .\expandafter\tstidx@getlabel\expandafter{\@tstidx@subsort}%
6242 .\@tstidx@label}%
6243 \fi
6244 \fi
6245 \fi
6246 \def\@tstidx@encap{#4}%
6247 \def\@tstidx@range{}%
6248 \let\tstidx@org@glstextformat\glstextformat
6249 \renewcommand\glstextformat[1]{\tstidx@post@glstextformat
6250 {\tstidx@org@glstextformat{##1}}}%
6251 \ifx\relax#5\relax
6252 \ifx\@tstidx@encap\@empty
6253 \tstidx@glspostindex{\@tstidx@label}%
6254 \else
6255 \tstidx@glspostindex[format={#4}]{\@tstidx@label}%
6256 \fi
6257 \else
6258 \@ifundefined{glsxtrinitwrgloss}%
6259 {%
6260 \glshyperlink[\glstextformat{\tstidx@glsentry{\@tstidx@label}}]%
6261 {\@tstidx@label}%
6262 \ifx\@tstidx@encap\@empty
6263 \glsadd{\@tstidx@label}%
6264 \else
6265 \glsadd[format={#4}]{\@tstidx@label}%
6266 \fi
6267 }%
6268 {%
6269 \ifx\@tstidx@encap\@empty
6270 \tstidx@gls[wrgloss=after]{\@tstidx@label}%
6271 \else
6272 \tstidx@gls[wrgloss=after,format={#4}]{\@tstidx@label}%
6273 \fi
6274 }%
6275 \fi
6276 \egroup
6277 }
6278 \let\@tstidx@org@subsubindexpost\@@tstidx@subsubindexpost
6279 \let\@@tstidx@subsubindexpost\@tstidx@gls@subsubindexpost
6280 % \end{macrocode}
6281 %\end{macro}
6282 %
6283 %\begin{macro}{\tstsubsubindexopenpost}
6284 %\changes{1.1}{2017-08-11}{new}
6285 % \begin{macrocode}
6286 \def\@tstidx@gls@subsubindexopenpost#1#2[#3]#4#5{%
6287 \bgroup
6288 \edef\@tstidx@label{\tstidx@getlabel{#3}}%
6289 \ifx\@tstidx@label\@empty
6290 \edef\@tstidx@label{\tstidx@getlabel{#1}}%
6291 \ifx\@tstidx@label\@empty
6292 \edef\@tstidx@label{\tstidx@getlabel{#2}}%
6293 \fi
6294 \ifx\@tstidx@sort\empty
6295 \ifx\@tstidx@subsort\empty
6296 \edef\@tstidx@label{%
6297 \expandafter\tstidx@getlabel\expandafter{\@tstidx@term}%
6298 .\expandafter\tstidx@getlabel\expandafter{\@tstidx@subterm}%
6299 .\@tstidx@label}%
6300 \else
6301 \edef\@tstidx@label{%
6302 \expandafter\tstidx@getlabel\expandafter{\@tstidx@term}%
6303 .\expandafter\tstidx@getlabel\expandafter{\@tstidx@subsort}%
6304 .\@tstidx@label}%
6305 \fi
6306 \else
6307 \ifx\@tstidx@subsort\empty
6308 \edef\@tstidx@label{%
6309 \expandafter\tstidx@getlabel\expandafter{\@tstidx@sort}%
6310 .\expandafter\tstidx@getlabel\expandafter{\@tstidx@subterm}%
6311 .\@tstidx@label}%
6312 \else
6313 \edef\@tstidx@label{%
6314 \expandafter\tstidx@getlabel\expandafter{\@tstidx@sort}%
6315 .\expandafter\tstidx@getlabel\expandafter{\@tstidx@subsort}%
6316 .\@tstidx@label}%
6317 \fi
6318 \fi
6319 \fi
6320 \def\@tstidx@encap{#4}%
6321 \def\@tstidx@range{(}%
6322 \let\tstidx@org@glstextformat\glstextformat
6323 \renewcommand\glstextformat[1]{\tstidx@post@glstextformat
6324 {\tstidx@org@glstextformat{##1}}}%
6325 \ifx\relax#5\relax
6326 \tstidx@glspostindex[format={(#4}]{\@tstidx@label}%
6327 \else
6328 \@ifundefined{glsxtrinitwrgloss}%
6329 {%
6330 \glshyperlink[\glstextformat{\tstidx@glsentry{\@tstidx@label}}]%
6331 {\@tstidx@label}%
6332 \glsadd[format={(#4}]{\@tstidx@label}%
6333 }%
6334 {%
6335 \tstidx@gls[wrgloss=after,format={(#4}]{\@tstidx@label}%
6336 }%
6337 \fi
6338 \egroup
6339 }
6340 \let\@tstidx@org@subsubindexopenpost\@@tstidx@subsubindexopenpost
6341 \let\@@tstidx@subsubindexopenpost\@tstidx@gls@subsubindexopenpost
6342 % \end{macrocode}
6343 %\end{macro}
6344 %
6345 %\begin{macro}{\tstsubsubindexclosepost}
6346 %\changes{1.1}{2017-08-11}{new}
6347 % \begin{macrocode}
6348 \def\@tstidx@gls@subsubindexclosepost#1#2[#3]#4#5{%
6349 \bgroup
6350 \edef\@tstidx@label{\tstidx@getlabel{#3}}%
6351 \ifx\@tstidx@label\@empty
6352 \edef\@tstidx@label{\tstidx@getlabel{#1}}%
6353 \ifx\@tstidx@label\@empty
6354 \edef\@tstidx@label{\tstidx@getlabel{#2}}%
6355 \fi
6356 \ifx\@tstidx@sort\empty
6357 \ifx\@tstidx@subsort\empty
6358 \edef\@tstidx@label{%
6359 \expandafter\tstidx@getlabel\expandafter{\@tstidx@term}%
6360 .\expandafter\tstidx@getlabel\expandafter{\@tstidx@subterm}%
6361 .\@tstidx@label}%
6362 \else
6363 \edef\@tstidx@label{%
6364 \expandafter\tstidx@getlabel\expandafter{\@tstidx@term}%
6365 .\expandafter\tstidx@getlabel\expandafter{\@tstidx@subsort}%
6366 .\@tstidx@label}%
6367 \fi
6368 \else
6369 \ifx\@tstidx@subsort\empty
6370 \edef\@tstidx@label{%
6371 \expandafter\tstidx@getlabel\expandafter{\@tstidx@sort}%
6372 .\expandafter\tstidx@getlabel\expandafter{\@tstidx@subterm}%
6373 .\@tstidx@label}%
6374 \else
6375 \edef\@tstidx@label{%
6376 \expandafter\tstidx@getlabel\expandafter{\@tstidx@sort}%
6377 .\expandafter\tstidx@getlabel\expandafter{\@tstidx@subsort}%
6378 .\@tstidx@label}%
6379 \fi
6380 \fi
6381 \fi
6382 \def\@tstidx@encap{#4}%
6383 \def\@tstidx@range{)}%
6384 \let\tstidx@org@glstextformat\glstextformat
6385 \renewcommand\glstextformat[1]{\tstidx@post@glstextformat
6386 {\tstidx@org@glstextformat{##1}}}%
6387 \ifx\relax#5\relax
6388 \tstidx@glspostindex[format={)#4}]{\@tstidx@label}%
6389 \else
6390 \@ifundefined{glsxtrinitwrgloss}%
6391 {%
6392 \glshyperlink[\glstextformat{\tstidx@glsentry{\@tstidx@label}}]%
6393 {\@tstidx@label}%
6394 \glsadd[format={)#4}]{\@tstidx@label}%
6395 }%
6396 {%
6397 \tstidx@gls[wrgloss=after,format={)#4}]{\@tstidx@label}%
6398 }%
6399 \fi
6400 \egroup
6401 }
6402 \let\@tstidx@org@subsubindexclosepost\@@tstidx@subsubindexclosepost
6403 \let\@@tstidx@subsubindexclosepost\@tstidx@gls@subsubindexclosepost
6404 % \end{macrocode}
6405 %\end{macro}
6406 %
6407 %\begin{macro}{\tstsubsubindexpre}
6408 %\changes{1.1}{2017-08-11}{new}
6409 % \begin{macrocode}
6410 \def\@tstidx@gls@subsubindexpre#1#2[#3]#4#5{%
6411 \bgroup
6412 \edef\@tstidx@label{\tstidx@getlabel{#3}}%
6413 \ifx\@tstidx@label\@empty
6414 \edef\@tstidx@label{\tstidx@getlabel{#1}}%
6415 \ifx\@tstidx@label\@empty
6416 \edef\@tstidx@label{\tstidx@getlabel{#2}}%
6417 \fi
6418 \ifx\@tstidx@sort\empty
6419 \ifx\@tstidx@subsort\empty
6420 \edef\@tstidx@label{%
6421 \expandafter\tstidx@getlabel\expandafter{\@tstidx@term}%
6422 .\expandafter\tstidx@getlabel\expandafter{\@tstidx@subterm}%
6423 .\@tstidx@label}%
6424 \else
6425 \edef\@tstidx@label{%
6426 \expandafter\tstidx@getlabel\expandafter{\@tstidx@term}%
6427 .\expandafter\tstidx@getlabel\expandafter{\@tstidx@subsort}%
6428 .\@tstidx@label}%
6429 \fi
6430 \else
6431 \ifx\@tstidx@subsort\empty
6432 \edef\@tstidx@label{%
6433 \expandafter\tstidx@getlabel\expandafter{\@tstidx@sort}%
6434 .\expandafter\tstidx@getlabel\expandafter{\@tstidx@subterm}%
6435 .\@tstidx@label}%
6436 \else
6437 \edef\@tstidx@label{%
6438 \expandafter\tstidx@getlabel\expandafter{\@tstidx@sort}%
6439 .\expandafter\tstidx@getlabel\expandafter{\@tstidx@subsort}%
6440 .\@tstidx@label}%
6441 \fi
6442 \fi
6443 \fi
6444 \def\@tstidx@encap{#4}%
6445 \def\@tstidx@range{}%
6446 \let\tstidx@org@glstextformat\glstextformat
6447 \renewcommand\glstextformat[1]{\tstidx@pre@glstextformat
6448 {\tstidx@org@glstextformat{##1}}}%
6449 \ifx\relax#5\relax
6450 \ifx\@tstidx@encap\@empty
6451 \tstidx@glspreindex{\@tstidx@label}%
6452 \else
6453 \tstidx@glspreindex[format={#4}]{\@tstidx@label}%
6454 \fi
6455 \else
6456 \ifx\@tstidx@encap\@empty
6457 \tstidx@gls{\@tstidx@label}%
6458 \else
6459 \tstidx@gls[format={#4}]{\@tstidx@label}%
6460 \fi
6461 \fi
6462 \egroup
6463 }
6464 \let\@tstidx@org@subsubindexpre\@@tstidx@subsubindexpre
6465 \let\@@tstidx@subsubindexpre\@tstidx@gls@subsubindexpre
6466 % \end{macrocode}
6467 %\end{macro}
6468 %
6469 %\begin{macro}{\tstsubsubindexopenpre}
6470 %\changes{1.1}{2017-08-11}{new}
6471 % \begin{macrocode}
6472 \def\@tstidx@gls@subsubindexopenpre#1#2[#3]#4#5{%
6473 \bgroup
6474 \edef\@tstidx@label{\tstidx@getlabel{#3}}%
6475 \ifx\@tstidx@label\@empty
6476 \edef\@tstidx@label{\tstidx@getlabel{#1}}%
6477 \ifx\@tstidx@label\@empty
6478 \edef\@tstidx@label{\tstidx@getlabel{#2}}%
6479 \fi
6480 \ifx\@tstidx@sort\empty
6481 \ifx\@tstidx@subsort\empty
6482 \edef\@tstidx@label{%
6483 \expandafter\tstidx@getlabel\expandafter{\@tstidx@term}%
6484 .\expandafter\tstidx@getlabel\expandafter{\@tstidx@subterm}%
6485 .\@tstidx@label}%
6486 \else
6487 \edef\@tstidx@label{%
6488 \expandafter\tstidx@getlabel\expandafter{\@tstidx@term}%
6489 .\expandafter\tstidx@getlabel\expandafter{\@tstidx@subsort}%
6490 .\@tstidx@label}%
6491 \fi
6492 \else
6493 \ifx\@tstidx@subsort\empty
6494 \edef\@tstidx@label{%
6495 \expandafter\tstidx@getlabel\expandafter{\@tstidx@sort}%
6496 .\expandafter\tstidx@getlabel\expandafter{\@tstidx@subterm}%
6497 .\@tstidx@label}%
6498 \else
6499 \edef\@tstidx@label{%
6500 \expandafter\tstidx@getlabel\expandafter{\@tstidx@sort}%
6501 .\expandafter\tstidx@getlabel\expandafter{\@tstidx@subsort}%
6502 .\@tstidx@label}%
6503 \fi
6504 \fi
6505 \fi
6506 \def\@tstidx@encap{#4}%
6507 \def\@tstidx@range{(}%
6508 \let\tstidx@org@glstextformat\glstextformat
6509 \renewcommand\glstextformat[1]{\tstidx@pre@glstextformat
6510 {\tstidx@org@glstextformat{##1}}}%
6511 \ifx\relax#5\relax
6512 \tstidx@glspreindex[format={(#4}]{\@tstidx@label}%
6513 \else
6514 \tstidx@gls[format={(#4}]{\@tstidx@label}%
6515 \fi
6516 \egroup
6517 }
6518 \let\@tstidx@org@subsubindexopenpre\@@tstidx@subsubindexopenpre
6519 \let\@@tstidx@subsubindexopenpre\@tstidx@gls@subsubindexopenpre
6520 % \end{macrocode}
6521 %\end{macro}
6522 %
6523 %\begin{macro}{\tstsubsubindexclosepre}
6524 %\changes{1.1}{2017-08-11}{new}
6525 % \begin{macrocode}
6526 \def\@tstidx@gls@subsubindexclosepre#1#2[#3]#4#5{%
6527 \bgroup
6528 \edef\@tstidx@label{\tstidx@getlabel{#3}}%
6529 \ifx\@tstidx@label\@empty
6530 \edef\@tstidx@label{\tstidx@getlabel{#1}}%
6531 \ifx\@tstidx@label\@empty
6532 \edef\@tstidx@label{\tstidx@getlabel{#2}}%
6533 \fi
6534 \ifx\@tstidx@sort\empty
6535 \ifx\@tstidx@subsort\empty
6536 \edef\@tstidx@label{%
6537 \expandafter\tstidx@getlabel\expandafter{\@tstidx@term}%
6538 .\expandafter\tstidx@getlabel\expandafter{\@tstidx@subterm}%
6539 .\@tstidx@label}%
6540 \else
6541 \edef\@tstidx@label{%
6542 \expandafter\tstidx@getlabel\expandafter{\@tstidx@term}%
6543 .\expandafter\tstidx@getlabel\expandafter{\@tstidx@subsort}%
6544 .\@tstidx@label}%
6545 \fi
6546 \else
6547 \ifx\@tstidx@subsort\empty
6548 \edef\@tstidx@label{%
6549 \expandafter\tstidx@getlabel\expandafter{\@tstidx@sort}%
6550 .\expandafter\tstidx@getlabel\expandafter{\@tstidx@subterm}%
6551 .\@tstidx@label}%
6552 \else
6553 \edef\@tstidx@label{%
6554 \expandafter\tstidx@getlabel\expandafter{\@tstidx@sort}%
6555 .\expandafter\tstidx@getlabel\expandafter{\@tstidx@subsort}%
6556 .\@tstidx@label}%
6557 \fi
6558 \fi
6559 \fi
6560 \def\@tstidx@encap{#4}%
6561 \def\@tstidx@range{)}%
6562 \let\tstidx@org@glstextformat\glstextformat
6563 \renewcommand\glstextformat[1]{\tstidx@pre@glstextformat
6564 {\tstidx@org@glstextformat{##1}}}%
6565 \ifx\relax#5\relax
6566 \tstidx@glspreindex[format={)#4}]{\@tstidx@label}%
6567 \else
6568 \tstidx@gls[format={)#4}]{\@tstidx@label}%
6569 \fi
6570 \egroup
6571 }
6572 \let\@tstidx@org@subsubindexclosepre\@@tstidx@subsubindexclosepre
6573 \let\@@tstidx@subsubindexclosepre\@tstidx@gls@subsubindexclosepre
6574 % \end{macrocode}
6575 %\end{macro}
6576 %
6577 %\subsection{Entry Shortcut Definitions}
6578 %
6579 %Provide commands for defining entries (not used with
6580 %\cs{GlsXtrLoadResources}).
6581 %
6582 %\begin{macro}{\tstidxnewutfentry}
6583 %\changes{1.1}{2017-08-11}{new}
6584 %\begin{definition}
6585 %\cs{tstidxnewutfentry}\marg{label}\marg{ascii}\marg{utf8}\marg{name
6586 %fmt}\marg{options}\marg{category}
6587 %\end{definition}
6588 % \begin{macrocode}
6589 \newcommand*{\tstidxnewutfentry}[6]{%
6590 \@tstidx@ifutfviii
6591 {%
6592 \tstidxprocessutf{\@tstidx@utf}{#3}%
6593 \ifx\relax#4\relax
6594 \protected@edef\@tstidx@doidx{%
6595 \noexpand\tstidxnewentry{#1}{#6}%
6596 {name={#3},%
6597 sort={\unexpanded\expandafter{\@tstidx@utf}},%
6598 description={},#5}}%
6599 \else
6600 \protected@edef\@tstidx@doidx{%
6601 \noexpand\tstidxnewentry{#1}{#6}%
6602 {name={\noexpand#4{#3}},%
6603 sort={\unexpanded\expandafter{\@tstidx@utf}},%
6604 description={},#5}}%
6605 \fi
6606 }%
6607 {%
6608 \tstidxprocessasciisort{\@tstidx@asciisort}{#2}%
6609 \tstidxprocessasciisortstrip{\@tstidx@asciilabel}{#1}%
6610 \ifx\relax#4\relax
6611 \protected@edef\@tstidx@doidx{%
6612 \noexpand\tstidxnewentry{\@tstidx@asciilabel}{#6}%
6613 {name={#2},%
6614 sort={\unexpanded\expandafter{\@tstidx@asciisort}},%
6615 description={},#5}}%
6616 \else
6617 \protected@edef\@tstidx@doidx{%
6618 \noexpand\tstidxnewentry{\@tstidx@asciilabel}{#6}%
6619 {name={\noexpand#4{#2}},%
6620 sort={\unexpanded\expandafter{\@tstidx@asciisort}},%
6621 description={},#5}}%
6622 \fi
6623 }%
6624 \@tstidx@doidx
6625 }
6626 % \end{macrocode}
6627 %\end{macro}
6628 %
6629 %\begin{definition}
6630 %\cs{tstidxnewutfentrytext}\marg{label}\marg{ascii name}\marg{ascii
6631 %text}\marg{utf8 name}\marg{utf8 text}\marg{name
6632 %fmt}\marg{options}\marg{category}
6633 %\end{definition}
6634 % \begin{macrocode}
6635 \newcommand*{\tstidxnewutfentrytext}[8]{%
6636 \@tstidx@ifutfviii
6637 {%
6638 \tstidxprocessutf{\@tstidx@utf}{#4}%
6639 \ifx\relax#6\relax
6640 \protected@edef\@tstidx@doidx{%
6641 \noexpand\tstidxnewentry{#1}{#8}%
6642 {name={#4},%
6643 sort={\unexpanded\expandafter{\@tstidx@utf}},%
6644 text={#5},%
6645 description={},#7}}%
6646 \else
6647 \protected@edef\@tstidx@doidx{%
6648 \noexpand\tstidxnewentry{#1}{#8}%
6649 {name={#4},%
6650 text={\noexpand#6{#5}},%
6651 sort={\unexpanded\expandafter{\@tstidx@utf}},%
6652 description={},#7}}%
6653 \fi
6654 }%
6655 {%
6656 \tstidxprocessasciisort{\@tstidx@asciisort}{#2}%
6657 \ifx\relax#6\relax
6658 \protected@edef\@tstidx@doidx{%
6659 \noexpand\tstidxnewentry{#1}{#8}%
6660 {name={#2},%
6661 text={#3},%
6662 sort={\unexpanded\expandafter{\@tstidx@asciisort}},%
6663 description={},#7}}%
6664 \else
6665 \protected@edef\@tstidx@doidx{%
6666 \noexpand\tstidxnewentry{#1}{#8}%
6667 {name={\noexpand#6{#2}},%
6668 text={\noexpand#6{#3}},%
6669 sort={\unexpanded\expandafter{\@tstidx@asciisort}},%
6670 description={},#7}}%
6671 \fi
6672 }%
6673 \@tstidx@doidx
6674 }
6675 % \end{macrocode}
6676 %\end{macro}
6677 %
6678 %\begin{macro}{\tstidxnewword}
6679 %\changes{1.1}{2017-08-11}{new}
6680 %\begin{definition}
6681 %\cs{tstidxnewword}\oarg{options}\marg{word}\marg{description}
6682 %\end{definition}
6683 % \begin{macrocode}
6684 \newcommand*{\tstidxnewword}[3][]{%
6685 \if@tstidx@setdescription
6686 \tstidxnewentry{\tstidx@getlabel{#2}}{word}{name={#2},description={#3},#1}%
6687 \else
6688 \tstidxnewentry{\tstidx@getlabel{#2}}{word}{name={#2},description={},#1}%
6689 \fi
6690 }
6691 % \end{macrocode}
6692 %\end{macro}
6693 %
6694 %\begin{macro}{\tstidxnewwordsee}
6695 %\changes{1.1}{2017-08-11}{new}
6696 %\begin{definition}
6697 %\cs{tstidxnewwordsee}\oarg{options}\marg{word}\marg{description}\marg{xr-labels}
6698 %\end{definition}
6699 % \begin{macrocode}
6700 \if@tstidx@useglsseekey
6701 \newcommand*{\tstidxnewwordsee}[4][]{%
6702 \tstidxnewword[see={#4},#1]{#2}{#3}%
6703 }
6704 \else
6705 \newcommand*{\tstidxnewwordsee}[4][]{%
6706 \tstidxnewword[#1]{#2}{#3}%
6707 }
6708 \fi
6709 % \end{macrocode}
6710 %\end{macro}
6711 %
6712 %\begin{macro}{\tstidxnewwordseealso}
6713 %\changes{1.1}{2017-08-11}{new}
6714 %\begin{definition}
6715 %\cs{tstidxnewwordseealso}\oarg{options}\marg{word}\marg{description}\marg{xr-labels}
6716 %\end{definition}
6717 % \begin{macrocode}
6718 \if@tstidx@useglsseekey
6719 \if@tstidx@hasseealsokey
6720 \newcommand*{\tstidxnewwordseealso}[4][]{%
6721 \tstidxnewword[seealso={#4},#1]{#2}{#3}%
6722 }
6723 \else
6724 \newcommand*{\tstidxnewwordseealso}[4][]{%
6725 \tstidxnewword[see={[\seealsoname]#4},#1]{#2}{#3}%
6726 }
6727 \fi
6728 \else
6729 \newcommand*{\tstidxnewwordseealso}[4][]{%
6730 \tstidxnewword[#1]{#2}{#3}%
6731 }
6732 \fi
6733 % \end{macrocode}
6734 %\end{macro}
6735 %
6736 %\begin{macro}{\tstidxnewdigraph}
6737 %\changes{1.1}{2017-08-11}{new}
6738 % \begin{macrocode}
6739 \newcommand*{\tstidxnewdigraph}[3][]{%
6740 \if@tstidx@setdescription
6741 \tstidxnewentry{\tstidx@getlabel{#2}}{digraph}{name={#2},description={#3},#1}%
6742 \else
6743 \tstidxnewentry{\tstidx@getlabel{#2}}{digraph}{name={#2},description={},#1}%
6744 \fi
6745 }
6746 % \end{macrocode}
6747 %\end{macro}
6748 %
6749 %\begin{macro}{\tstidxnewtrigraph}
6750 %\changes{1.1}{2017-08-11}{new}
6751 % \begin{macrocode}
6752 \newcommand*{\tstidxnewtrigraph}[3][]{%
6753 \if@tstidx@setdescription
6754 \tstidxnewentry{\tstidx@getlabel{#2}}{trigraph}{name={#2},description={#3},#1}%
6755 \else
6756 \tstidxnewentry{\tstidx@getlabel{#2}}{trigraph}{name={#2},description={},#1}%
6757 \fi
6758 }
6759 % \end{macrocode}
6760 %\end{macro}
6761 %
6762 %\begin{macro}{\tstidxnewsubword}
6763 %\changes{1.1}{2017-08-11}{new}
6764 %\begin{definition}
6765 %\cs{tstidxnewsubword}\oarg{options}\marg{parent}\marg{word}\marg{description}
6766 %\end{definition}
6767 % \begin{macrocode}
6768 \newcommand*{\tstidxnewsubword}[4][]{%
6769 \if@tstidx@setdescription
6770 \tstidxnewentry{\tstidx@getlabel{#2.#3}}{word}%
6771 {parent={\tstidx@getlabel{#2}},name={#3},description={#4},#1}%
6772 \else
6773 \tstidxnewentry{\tstidx@getlabel{#2.#3}}{word}%
6774 {parent={\tstidx@getlabel{#2}},name={#3},description={},#1}%
6775 \fi
6776 }
6777 % \end{macrocode}
6778 %\end{macro}
6779 %
6780 %\begin{macro}{\tstidxnewsubwordsee}
6781 %\changes{1.1}{2017-08-11}{new}
6782 %\begin{definition}
6783 %\cs{tstidxnewsubwordsee}\oarg{options}\marg{parent}\marg{word}\marg{description}\marg{xr-labels}
6784 %\end{definition}
6785 % \begin{macrocode}
6786 \if@tstidx@useglsseekey
6787 \newcommand*{\tstidxnewsubwordsee}[5][]{%
6788 \tstidxnewsubword[see={#5},#1]{#2}{#3}{#4}%
6789 }
6790 \else
6791 \newcommand*{\tstidxnewsubwordsee}[5][]{%
6792 \tstidxnewsubword[#1]{#2}{#3}{#4}%
6793 }
6794 \fi
6795 % \end{macrocode}
6796 %\end{macro}
6797 %
6798 %\begin{macro}{\tstidxnewsubwordseealso}
6799 %\changes{1.1}{2017-08-11}{new}
6800 %\begin{definition}
6801 %\cs{tstidxnewsubwordseealso}\oarg{options}\marg{parent}\marg{word}\marg{description}\marg{xr-labels}
6802 %\end{definition}
6803 % \begin{macrocode}
6804 \if@tstidx@useglsseekey
6805 \if@tstidx@hasseealsokey
6806 \newcommand*{\tstidxnewsubwordseealso}[5][]{%
6807 \tstidxnewsubword[seealso={#5},#1]{#2}{#3}{#4}%
6808 }
6809 \else
6810 \newcommand*{\tstidxnewsubwordseealso}[5][]{%
6811 \tstidxnewsubword[see={[\seealsoname]#5},#1]{#2}{#3}{#4}%
6812 }
6813 \fi
6814 \else
6815 \newcommand*{\tstidxnewsubwordseealso}[5][]{%
6816 \tstidxnewsubword[#1]{#2}{#3}{#4}%
6817 }
6818 \fi
6819 % \end{macrocode}
6820 %\end{macro}
6821 %
6822 %
6823 %\begin{macro}{\tstidxcsfmt}
6824 %\changes{1.1}{2017-08-11}{new}
6825 % \begin{macrocode}
6826 \renewcommand*{\tstidxcsfmt}[1]{\texttt{\glsbackslash#1}}
6827 % \end{macrocode}
6828 %\end{macro}
6829 %
6830 %\begin{macro}{\tstidxnewcs}
6831 %\changes{1.1}{2017-08-11}{new}
6832 % \begin{macrocode}
6833 \newcommand*{\tstidxnewcs}[3][]{%
6834 \if@tstidx@setdescription
6835 \tstidxnewentry{\tstidx@getlabel{cs.#2}}{cs}%
6836 {sort={#2},name={\tstidxcsfmt{#2}},description={#3},#1}%
6837 \else
6838 \tstidxnewentry{\tstidx@getlabel{cs.#2}}{cs}%
6839 {sort={#2},name={\tstidxcsfmt{#2}},description={},#1}%
6840 \fi
6841 }
6842 % \end{macrocode}
6843 %\end{macro}
6844 %
6845 %\begin{macro}{\tstidxnewencapcsn}
6846 %\changes{1.1}{2017-08-11}{new}
6847 % \begin{macrocode}
6848 \newcommand*{\tstidxnewencapcsn}[3][]{%
6849 \if@tstidx@setdescription
6850 \tstidxnewentry{\tstidx@getlabel{#2}}{encapcsn}{sort={#2 (#2)},%
6851 name={\texttt{#2} (\tstidxcsfmt{#2})},
6852 text={\texttt{#2}},description={#3},#1}%
6853 \tstidxnewentry{\tstidx@getlabel{encap.#2}}{encapcsn}{sort={#2},%
6854 parent={\tstidx@getlabel{encap}},
6855 name={\texttt{#2}},description={#3}}%
6856 \else
6857 \tstidxnewentry{\tstidx@getlabel{#2}}{encapcsn}{sort={#2 (#2)},%
6858 name={\texttt{#2} (\tstidxcsfmt{#2})},
6859 text={\texttt{#2}},description={},#1}%
6860 \tstidxnewentry{\tstidx@getlabel{encap.#2}}{encapcsn}{sort={#2},%
6861 parent={\tstidx@getlabel{encap}},
6862 name={\texttt{#2}},description={}}%
6863 \fi
6864 }
6865 % \end{macrocode}
6866 %\end{macro}
6867 %
6868 %\begin{macro}{\tstidxnewenv}
6869 %\changes{1.1}{2017-08-11}{new}
6870 % \begin{macrocode}
6871 \newcommand*{\tstidxnewenv}[3][]{%
6872 \if@tstidx@setdescription
6873 \tstidxnewentry{\tstidx@getlabel{#2environment}}%
6874 {environment}{sort={#2 environment},%
6875 name={\tstidxenvfmt{#2} environment},%
6876 text={\tstidxenvfmt{#2}},description={#3},#1}%
6877 \else
6878 \tstidxnewentry{\tstidx@getlabel{#2environment}}%
6879 {environment}{sort={#2 environment},%
6880 name={\tstidxenvfmt{#2} environment},%
6881 text={\tstidxenvfmt{#2}},description={},#1}%
6882 \fi
6883 }
6884 % \end{macrocode}
6885 %\end{macro}
6886 %\begin{macro}{\tstidxnewapp}
6887 %\changes{1.1}{2017-08-11}{new}
6888 % \begin{macrocode}
6889 \newcommand*{\tstidxnewapp}[3][]{%
6890 \if@tstidx@setdescription
6891 \tstidxnewentry{\tstidx@getlabel{#2}}{application}{sort={#2},%
6892 name={\tstidxappfmt{#2}},description={#3},#1}%
6893 \tstidxnewentry{applications.\tstidx@getlabel{#2}}{application}{sort={#2},%
6894 parent={applications},name={\tstidxappfmt{#2}},description={#3}}%
6895 \else
6896 \tstidxnewentry{\tstidx@getlabel{#2}}{application}{sort={#2},%
6897 name={\tstidxappfmt{#2}},description={},#1}%
6898 \tstidxnewentry{applications.\tstidx@getlabel{#2}}{application}{sort={#2},%
6899 parent={applications},name={\tstidxappfmt{#2}},description={}}%
6900 \fi
6901 }
6902 % \end{macrocode}
6903 %\end{macro}
6904 %
6905 %\begin{macro}{\tstidxnewappopt}
6906 %\changes{1.1}{2017-08-11}{new}
6907 % \begin{macrocode}
6908 \newcommand*{\tstidxnewappopt}[4][]{%
6909 \if@tstidx@setdescription
6910 \tstidxnewentry{\tstidx@getlabel{#3.#2option}}{applicationoption}%
6911 {sort={#3 (#2)},%
6912 name={\tstidxappoptfmt{#3} (\tstidxappfmt{#2})},description={#4},#1}%
6913 \tstidxnewentry{\tstidx@getlabel{#2.#3}}{applicationoption}%
6914 {parent={#2},sort={#3},%
6915 name={\tstidxappoptfmt{#3}},description={#4},#1}%
6916 \tstidxnewentry{\tstidx@getlabel{applications.#2.#3}}%
6917 {applicationoption}{sort={#3},%
6918 parent={\tstidx@getlabel{applications.#2}},name={\tstidxappoptfmt{#3}},%
6919 description={#4}}%
6920 \else
6921 \tstidxnewentry{\tstidx@getlabel{#3.#2option}}{applicationoption}%
6922 {sort={#3 (#2)},%
6923 name={\tstidxappoptfmt{#3} (\tstidxappfmt{#2})},description={},#1}%
6924 \tstidxnewentry{\tstidx@getlabel{#2.#3}}{applicationoption}%
6925 {parent={#2},sort={#3},%
6926 name={\tstidxappoptfmt{#3}},description={},#1}%
6927 \tstidxnewentry{\tstidx@getlabel{applications.#2.#3}}%
6928 {applicationoption}{sort={#3},%
6929 parent={\tstidx@getlabel{applications.#2}},name={\tstidxappoptfmt{#3}},%
6930 description={}}%
6931 \fi
6932 }
6933 % \end{macrocode}
6934 %\end{macro}
6935 %
6936 %\begin{macro}{\tstidxnewsty}
6937 %\changes{1.1}{2017-08-11}{new}
6938 % \begin{macrocode}
6939 \newcommand*{\tstidxnewsty}[3][]{%
6940 \if@tstidx@setdescription
6941 \tstidxnewentry{\tstidx@getlabel{#2package}}{package}{sort={#2 package},%
6942 name={\tstidxstyfmt{#2} package},%
6943 text={\tstidxstyfmt{#2}},%
6944 description={#3},#1}%
6945 \tstidxnewentry{\tstidx@getlabel{packages.#2package}}{package}{sort={#2},%
6946 parent={packages},name={\tstidxstyfmt{#2}},%
6947 text={\tstidxstyfmt{#2}},description={#3}}%
6948 \else
6949 \tstidxnewentry{\tstidx@getlabel{#2package}}{package}{sort={#2 package},%
6950 name={\tstidxstyfmt{#2} package},%
6951 text={\tstidxstyfmt{#2}},%
6952 description={},#1}%
6953 \tstidxnewentry{\tstidx@getlabel{packages.#2package}}{package}{sort={#2},%
6954 parent={packages},name={\tstidxstyfmt{#2}},%
6955 text={\tstidxstyfmt{#2}},description={}}%
6956 \fi
6957 }
6958 % \end{macrocode}
6959 %\end{macro}
6960 %
6961 %\begin{macro}{\tstidxnewstyseealso}
6962 %\changes{1.1}{2017-08-11}{new}
6963 % \begin{macrocode}
6964 \if@tstidx@useglsseekey
6965 \if@tstidx@hasseealsokey
6966 \newcommand*{\tstidxnewstyseealso}[4][]{%
6967 \tstidxnewsty[seealso={#4},#1]{#2}{#3}%
6968 }
6969 \else
6970 \newcommand*{\tstidxnewstyseealso}[4][]{%
6971 \tstidxnewsty[see={[\seealsoname]#4},#1]{#2}{#3}%
6972 }
6973 \fi
6974 \else
6975 \newcommand*{\tstidxnewstyseealso}[4][]{%
6976 \tstidxnewsty[#1]{#2}{#3}%
6977 }
6978 \fi
6979 % \end{macrocode}
6980 %\end{macro}
6981 %
6982 %\begin{macro}{\tstidxnewstyopt}
6983 %\changes{1.1}{2017-08-11}{new}
6984 % \begin{macrocode}
6985 \newcommand*{\tstidxnewstyopt}[4][]{%
6986 \if@tstidx@setdescription
6987 \tstidxnewentry{\tstidx@getlabel{#2package.#3}}{packageoption}{sort={#3},%
6988 name={\tstidxstyoptfmt{#3}},%
6989 parent={\tstidx@getlabel{#2package}},%
6990 description={#4},#1}%
6991 \tstidxnewentry{\tstidx@getlabel{packages.#2package.#3}}{packageoption}%
6992 {sort={#3},%
6993 parent={\tstidx@getlabel{packages.#2package}},name={\tstidxstyoptfmt{#3}},%
6994 description={#4}}%
6995 \else
6996 \tstidxnewentry{\tstidx@getlabel{#2package.#3}}{packageoption}{sort={#3},%
6997 name={\tstidxstyoptfmt{#3}},%
6998 parent={\tstidx@getlabel{#2package}},%
6999 description={},#1}%
7000 \tstidxnewentry{\tstidx@getlabel{packages.#2package.#3}}{packageoption}%
7001 {sort={#3},%
7002 parent={\tstidx@getlabel{packages.#2package}},name={\tstidxstyoptfmt{#3}},%
7003 description={}}%
7004 \fi
7005 }
7006 % \end{macrocode}
7007 %\end{macro}
7008 %
7009 %\begin{macro}{\tstidxnewnumber}
7010 %\changes{1.1}{2017-08-11}{new}
7011 % \begin{macrocode}
7012 \newcommand*{\tstidxnewnumber}[3][]{%
7013 \if@tstidx@setdescription
7014 \tstidxnewentry{\tstidx@getlabel{#2}}{number}{name={#2},description={#3},#1}%
7015 \else
7016 \tstidxnewentry{\tstidx@getlabel{#2}}{number}{name={#2},description={},#1}%
7017 \fi
7018 }
7019 % \end{macrocode}
7020 %\end{macro}
7021 %
7022 %\begin{macro}{\tstidxnewphrase}
7023 %\changes{1.1}{2017-08-11}{new}
7024 %\begin{definition}
7025 %\cs{tstidxnewphrase}\oarg{options}\marg{phrase}\marg{description}
7026 %\end{definition}
7027 % \begin{macrocode}
7028 \newcommand*{\tstidxnewphrase}[3][]{%
7029 \if@tstidx@setdescription
7030 \tstidxnewentry{\tstidx@getlabel{#2}}{phrase}{name={#2},description={#3},#1}%
7031 \else
7032 \tstidxnewentry{\tstidx@getlabel{#2}}{phrase}{name={#2},description={},#1}%
7033 \fi
7034 }
7035 % \end{macrocode}
7036 %\end{macro}
7037 %
7038 %\begin{macro}{\tstidxnewphrasesee}
7039 %\changes{1.1}{2017-08-11}{new}
7040 %\begin{definition}
7041 %\cs{tstidxnewphrasesee}\oarg{options}\marg{phrase}\marg{description}\marg{xr-labels}
7042 %\end{definition}
7043 % \begin{macrocode}
7044 \if@tstidx@useglsseekey
7045 \newcommand*{\tstidxnewphrasesee}[4][]{%
7046 \tstidxnewphrase[see={#4},#1]{#2}{#3}%
7047 }
7048 \else
7049 \newcommand*{\tstidxnewphrasesee}[4][]{%
7050 \tstidxnewphrase[#1]{#2}{#3}%
7051 }
7052 \fi
7053 % \end{macrocode}
7054 %\end{macro}
7055 %
7056 %\begin{macro}{\tstidxnewphraseseealso}
7057 %\changes{1.1}{2017-08-11}{new}
7058 %\begin{definition}
7059 %\cs{tstidxnewphraseseealso}\oarg{options}\marg{phrase}\marg{description}\marg{xr-labels}
7060 %\end{definition}
7061 % \begin{macrocode}
7062 \if@tstidx@useglsseekey
7063 \if@tstidx@hasseealsokey
7064 \newcommand*{\tstidxnewphraseseealso}[4][]{%
7065 \tstidxnewphrase[seealso={#4},#1]{#2}{#3}%
7066 }
7067 \else
7068 \newcommand*{\tstidxnewphraseseealso}[4][]{%
7069 \tstidxnewphrase[see={[\seealsoname]#4},#1]{#2}{#3}%
7070 }
7071 \fi
7072 \else
7073 \newcommand*{\tstidxnewphraseseealso}[4][]{%
7074 \tstidxnewphrase[#1]{#2}{#3}%
7075 }
7076 \fi
7077 % \end{macrocode}
7078 %\end{macro}
7079 %
7080 %
7081 %\begin{macro}{\tstidxnewartphrase}
7082 %\changes{1.1}{2017-08-11}{new}
7083 % \begin{macrocode}
7084 \newcommand*{\tstidxnewartphrase}[4][]{%
7085 \if@tstidx@setdescription
7086 \tstidxnewentry{\tstidx@getlabel{#3}}{phrase}{name={#3, #2},
7087 text={#2 #3},description={#4},#1}%
7088 \else
7089 \tstidxnewentry{\tstidx@getlabel{#3}}{phrase}{name={#3, #2},
7090 text={#2 #3},description={},#1}%
7091 \fi
7092 }
7093 % \end{macrocode}
7094 %\end{macro}
7095 %\begin{macro}{\tstidxnewsubphrase}
7096 %\changes{1.1}{2017-08-11}{new}
7097 % \begin{macrocode}
7098 \newcommand*{\tstidxnewsubphrase}[4][]{%
7099 \if@tstidx@setdescription
7100 \tstidxnewentry{\tstidx@getlabel{#2.#3}}{phrase}%
7101 {parent={\tstidx@getlabel{#2}},%
7102 name={#3},description={#4},#1}%
7103 \else
7104 \tstidxnewentry{\tstidx@getlabel{#2.#3}}{phrase}%
7105 {parent={\tstidx@getlabel{#2}},%
7106 name={#3},description={},#1}%
7107 \fi
7108 }
7109 % \end{macrocode}
7110 %\end{macro}
7111 %
7112 %
7113 %\begin{macro}{\tstidxnewperson}
7114 %\changes{1.1}{2017-08-11}{new}
7115 %Arguments: first name, surname.
7116 % \begin{macrocode}
7117 \newcommand*{\tstidxnewperson}[4][]{%
7118 \tstidxnewutfperson[#1]{#2}{#3}{#2}{#3}{#4}%
7119 }
7120 % \end{macrocode}
7121 %\end{macro}
7122 %
7123 %\begin{macro}{\tstidxnewutfperson}
7124 %\changes{1.1}{2017-08-11}{new}
7125 %\begin{definition}
7126 %\cs{tstidxnewutfperson}\oarg{options}\marg{ascii first
7127 %name}\marg{ascii surname}\oarg{label}\marg{utf first name}\marg{utf
7128 %surname}
7129 %\end{definition}
7130 % \begin{macrocode}
7131 \newcommand*{\tstidxnewutfperson}[3][]{%
7132 \@ifnextchar[{\@tstidxnewutfperson{#1}{#2}{#3}}%
7133 {\@tstidxnewutfperson{#1}{#2}{#3}[#2#3]}%
7134 }
7135 \def\@tstidxnewutfperson#1#2#3[#4]#5#6#7{%
7136 \if@tstidx@setdescription
7137 \tstidxnewutfentrytext{\tstidx@getlabel{#4}}{#3, #2}{#2 #3}{#6, #5}{#5 #6}%
7138 {}{description={#7},#1}{person}%
7139 \tstidxnewutfentrytext{\tstidx@getlabel{people.#4}}{#3, #2}{#2 #3}{#6, #5}%
7140 {#5 #6}{}{description={#7},parent={people}}{person}%
7141 \else
7142 \tstidxnewutfentrytext{\tstidx@getlabel{#4}}{#3, #2}{#2 #3}{#6, #5}{#5 #6}%
7143 {}{#1}{person}%
7144 \tstidxnewutfentrytext{\tstidx@getlabel{people.#4}}{#3, #2}{#2 #3}{#6, #5}%
7145 {#5 #6}{}{parent={people}}{person}%
7146 \fi
7147 }
7148 % \end{macrocode}
7149 %\end{macro}
7150 %
7151 %\begin{macro}{\tstidxnewsym}
7152 %\changes{1.1}{2017-08-11}{new}
7153 % \begin{macrocode}
7154 \newcommand*{\tstidxnewsym}[4][]{%
7155 \if@tstidx@setdescription
7156 \tstidxnewentry{\tstidx@getlabel{#2}}{symbol}%
7157 {name={#3},sort={#2},description={#4},#1}%
7158 \else
7159 \tstidxnewentry{\tstidx@getlabel{#2}}{symbol}%
7160 {name={#3},sort={#2},description={},#1}%
7161 \fi
7162 }
7163 % \end{macrocode}
7164 %\end{macro}
7165 %
7166 %\begin{macro}{\tstidxnewindexmarker}
7167 %\changes{1.1}{2017-08-11}{new}
7168 % \begin{macrocode}
7169 \newcommand*{\tstidxnewindexmarker}[3][]{%
7170 \if@tstidx@setdescription
7171 \toks@{description={#3},#1}%
7172 \else
7173 \toks@{description={},#1}%
7174 \fi
7175 \iftestidxprefix
7176 \protected@edef\@tstidx@dodef{%
7177 \noexpand\tstidxnewentry{\tstidx@getlabel{#2}}%
7178 {indexmarker}{%
7179 name={{}\noexpand\protect\expandonce{\csname#2\endcsname}\noexpand\space
7180 (\noexpand\tstidxcsfmt{#2})},%
7181 sort={\tstidxindexmarkerprefix#2},
7182 \the\toks@}}%
7183 \else
7184 \protected@edef\@tstidx@dodef{%
7185 \noexpand\tstidxnewentry{\tstidx@getlabel{#2}}%
7186 {indexmarker}{%
7187 name={{}\noexpand\protect\expandonce{\csname#2\endcsname}\noexpand\space
7188 (\noexpand\tstidxcsfmt{#2})},%
7189 sort={#2},
7190 \the\toks@}}%
7191 \fi
7192 \@tstidx@dodef
7193 }
7194 % \end{macrocode}
7195 %\end{macro}
7196 %
7197 %\begin{macro}{\tstidxnewmath}
7198 %\changes{1.1}{2017-08-11}{new}
7199 %\begin{definition}
7200 %\cs{tstidxnewmath}\oarg{options}\marg{sort}\oarg{label}\marg{text}\marg{description}
7201 %\end{definition}
7202 % \begin{macrocode}
7203 \newcommand*{\tstidxnewmath}[2][]{%
7204 \@ifnextchar[{\@tstidxnewmath{#1}{#2}}{\@tstidxnewmath{#1}{#2}[#2]}%
7205 }
7206 \def\@tstidxnewmath#1#2[#3]#4#5{%
7207 \if@tstidx@setdescription
7208 \tstidxnewentry{\tstidx@getlabel{#3}}{math}%
7209 {name={$#4$},text={#4},sort={#2},description={#5},#1}%
7210 \else
7211 \tstidxnewentry{\tstidx@getlabel{#3}}{math}%
7212 {name={$#4$},text={#4},sort={#2},description={},#1}%
7213 \fi
7214 }
7215 % \end{macrocode}
7216 %\end{macro}
7217 %
7218 %\begin{macro}{\tstidxnewmathsym}
7219 %\changes{1.1}{2017-08-11}{new}
7220 % \begin{macrocode}
7221 \newcommand*{\tstidxnewmathsym}[2][]{%
7222 \@ifnextchar[{\@tstidxnewmathsym{#1}{#2}}{\@tstidxnewmathsym{#1}{#2}[#2]}%
7223 }
7224 \def\@tstidxnewmathsym#1#2[#3]#4#5{%
7225 \iftestidxprefix
7226 \if@tstidx@setdescription
7227 \toks@{name={$#4$},text={#4},description={#5},#1}%
7228 \else
7229 \toks@{name={$#4$},text={#4},#1}%
7230 \fi
7231 \protected@edef\@tstidx@dodef{%
7232 \noexpand\tstidxnewentry{\tstidx@getlabel{#3}}{mathsymbol}%
7233 {sort={\tstidxmathsymprefix#2},description={},\the\toks@}%
7234 }%
7235 \@tstidx@dodef
7236 \else
7237 \if@tstidx@setdescription
7238 \tstidxnewentry{\tstidx@getlabel{#3}}{mathsymbol}{name={$#4$},%
7239 text={#4},sort={#2},description={#5},#1}%
7240 \else
7241 \tstidxnewentry{\tstidx@getlabel{#3}}{mathsymbol}{name={$#4$},%
7242 text={#4},sort={#2},description={},#1}%
7243 \fi
7244 \fi
7245 }
7246 % \end{macrocode}
7247 %\end{macro}
7248 %
7249 %\begin{macro}{\tstidxnewutfword}
7250 %\changes{1.1}{2017-08-11}{new}
7251 % \begin{macrocode}
7252 \newcommand*{\tstidxnewutfword}[5][]{%
7253 \if@tstidx@setdescription
7254 \tstidxnewutfentry{\tstidx@getlabel{#2}}{#3}{#4}{}{description={#5},#1}{word}%
7255 \else
7256 \tstidxnewutfentry{\tstidx@getlabel{#2}}{#3}{#4}{}{#1}{word}%
7257 \fi
7258 }
7259 % \end{macrocode}
7260 %\end{macro}
7261 %
7262 %\begin{macro}{\tstidxnewutfwordsee}
7263 %\changes{1.1}{2017-08-11}{new}
7264 %\begin{definition}
7265 %\cs{tstidxnewutfwordsee}\oarg{options}\marg{label}\marg{ascii}\marg{utf}\marg{description}\marg{xr-labels}
7266 %\end{definition}
7267 % \begin{macrocode}
7268 \if@tstidx@useglsseekey
7269 \newcommand*{\tstidxnewutfwordsee}[6][]{%
7270 \tstidxnewutfword[see={#6},#1]{#2}{#3}{#4}{#5}%
7271 }
7272 \else
7273 \newcommand*{\tstidxnewutfwordsee}[6][]{%
7274 \tstidxnewutfword[#1]{#2}{#3}{#4}{#5}%
7275 }
7276 \fi
7277 % \end{macrocode}
7278 %\end{macro}
7279 %
7280 %\begin{macro}{\tstidxnewutfwordseealso}
7281 %\changes{1.1}{2017-08-11}{new}
7282 %\begin{definition}
7283 %\cs{tstidxnewutfwordseealso}\oarg{options}\marg{label}\marg{ascii}\marg{utf}\marg{description}\marg{xr-labels}
7284 %\end{definition}
7285 % \begin{macrocode}
7286 \if@tstidx@useglsseekey
7287 \if@tstidx@hasseealsokey
7288 \newcommand*{\tstidxnewutfwordseealso}[6][]{%
7289 \tstidxnewutfword[seealso={#6},#1]{#2}{#3}{#4}{#5}%
7290 }
7291 \else
7292 \newcommand*{\tstidxnewutfwordseealso}[6][]{%
7293 \tstidxnewutfword[see={[\seealsoname]#6},#1]{#2}{#3}{#4}{#5}%
7294 }
7295 \fi
7296 \else
7297 \newcommand*{\tstidxnewutfwordseealso}[6][]{%
7298 \tstidxnewutfword[#1]{#2}{#3}{#4}{#5}%
7299 }
7300 \fi
7301 % \end{macrocode}
7302 %\end{macro}
7303 %
7304 %\begin{macro}{\tstidxnewutfdigraph}
7305 %\changes{1.1}{2017-08-11}{new}
7306 % \begin{macrocode}
7307 \newcommand*{\tstidxnewutfdigraph}[5][]{%
7308 \if@tstidx@setdescription
7309 \tstidxnewutfentry{\tstidx@getlabel{#2}}{#3}{#4}{}{description={#5},#1}{digraph}%
7310 \else
7311 \tstidxnewutfentry{\tstidx@getlabel{#2}}{#3}{#4}{}{#1}{digraph}%
7312 \fi
7313 }
7314 % \end{macrocode}
7315 %\end{macro}
7316 %
7317 %\begin{macro}{\tstidxnewutfphrase}
7318 %\changes{1.1}{2017-08-11}{new}
7319 % \begin{macrocode}
7320 \newcommand*{\tstidxnewutfphrase}[5][]{%
7321 \if@tstidx@setdescription
7322 \tstidxnewutfentry{\tstidx@getlabel{#2}}{#3}{#4}{}%
7323 {description={#5},#1}{phrase}%
7324 \else
7325 \tstidxnewutfentry{\tstidx@getlabel{#2}}{#3}{#4}{}{#1}{phrase}%
7326 \fi
7327 }
7328 % \end{macrocode}
7329 %\end{macro}
7330 %
7331 %\begin{macro}{\tstidxnewplace}
7332 %\changes{1.1}{2017-08-11}{new}
7333 % \begin{macrocode}
7334 \newcommand*{\tstidxnewplace}[3][]{%
7335 \tstidxnewutfplace[#1]{#2}{#2}{#2}{#3}%
7336 }
7337 % \end{macrocode}
7338 %\end{macro}
7339 %
7340 %\begin{macro}{\tstidxnewutfplace}
7341 %\changes{1.1}{2017-08-11}{new}
7342 % \begin{macrocode}
7343 \newcommand*{\tstidxnewutfplace}[5][]{%
7344 \if@tstidx@setdescription
7345 \tstidxnewutfentry{\tstidx@getlabel{#2}}{#3}{#4}{}%
7346 {description={#5},#1}{place}%
7347 \tstidxnewutfentry{\tstidx@getlabel{places.#2}}{#3}{#4}{}%
7348 {description={#5},parent={places}}{place}%
7349 \else
7350 \tstidxnewutfentry{\tstidx@getlabel{#2}}{#3}{#4}{}{#1}{place}%
7351 \tstidxnewutfentry{\tstidx@getlabel{places.#2}}{#3}{#4}{}%
7352 {parent={places}}{place}%
7353 \fi
7354 }
7355 % \end{macrocode}
7356 %\end{macro}
7357 %
7358 %\begin{macro}{\tstidxnewartplace}
7359 %\changes{1.1}{2017-08-11}{new}
7360 % \begin{macrocode}
7361 \newcommand*{\tstidxnewartplace}[4][]{%
7362 \if@tstidx@setdescription
7363 \tstidxnewentry{\tstidx@getlabel{#3}}{place}{name={#3, #2},%
7364 text={#2 #3},description={#4},#1}%
7365 \tstidxnewentry{\tstidx@getlabel{places.#3}}{place}{%
7366 parent={places},name={#3, #2},%
7367 text={#2 #3},description={#4}}%
7368 \else
7369 \tstidxnewentry{\tstidx@getlabel{#3}}{place}{name={#3, #2},%
7370 text={#2 #3},description={},#1}%
7371 \tstidxnewentry{\tstidx@getlabel{places.#3}}{place}{%
7372 parent={places},name={#3, #2},%
7373 text={#2 #3},description={}}%
7374 \fi
7375 }
7376 % \end{macrocode}
7377 %\end{macro}
7378 %
7379 %\begin{macro}{\tstidxnewbook}
7380 %\changes{1.1}{2017-08-11}{new}
7381 % \begin{macrocode}
7382 \newcommand*{\tstidxnewbook}[3][]{%
7383 \if@tstidx@setdescription
7384 \tstidxnewentry{\tstidx@getlabel{#2}}{book}{sort={#2},%
7385 name={\tstidxbookfmt{#2}},description={#3},#1}%
7386 \tstidxnewentry{\tstidx@getlabel{books.#2}}{book}{sort={#2},%
7387 parent={books},name={\tstidxbookfmt{#2}},description={#3}}%
7388 \else
7389 \tstidxnewentry{\tstidx@getlabel{#2}}{book}{sort={#2},%
7390 name={\tstidxbookfmt{#2}},description={},#1}%
7391 \tstidxnewentry{\tstidx@getlabel{books.#2}}{book}{sort={#2},%
7392 parent={books},name={\tstidxbookfmt{#2}},description={}}%
7393 \fi
7394 }
7395 % \end{macrocode}
7396 %\end{macro}
7397 %
7398 %\begin{macro}{\tstidxnewartbook}
7399 %\changes{1.1}{2017-08-11}{new}
7400 % \begin{macrocode}
7401 \newcommand*{\tstidxnewartbook}[4][]{%
7402 \if@tstidx@setdescription
7403 \tstidxnewentry{\tstidx@getlabel{#3}}{book}{%
7404 name={\tstidxbookfmt{#3, #2}},
7405 sort={#3, #2},
7406 text={\tstidxbookfmt{#2 #3}},description={#4},#1}%
7407 \tstidxnewentry{\tstidx@getlabel{books.#3}}{book}{%
7408 parent={books},
7409 name={\tstidxbookfmt{#3, #2}},
7410 sort={#3, #2},
7411 text={\tstidxbookfmt{#2 #3}},description={#4}}%
7412 \else
7413 \tstidxnewentry{\tstidx@getlabel{#3}}{book}{%
7414 name={\tstidxbookfmt{#3, #2}},
7415 sort={#3, #2},
7416 text={\tstidxbookfmt{#2 #3}},description={},#1}%
7417 \tstidxnewentry{\tstidx@getlabel{books.#3}}{book}{%
7418 parent={books},
7419 name={\tstidxbookfmt{#3, #2}},
7420 sort={#3, #2},
7421 text={\tstidxbookfmt{#2 #3}},description={}}%
7422 \fi
7423 }
7424 % \end{macrocode}
7425 %\end{macro}
7426 %
7427 %\begin{macro}{\tstidxnewfilm}
7428 %\changes{1.1}{2017-08-11}{new}
7429 % \begin{macrocode}
7430 \newcommand*{\tstidxnewfilm}[3][]{%
7431 \if@tstidx@setdescription
7432 \tstidxnewentry{\tstidx@getlabel{#2}}{film}{sort={#2},%
7433 name={\tstidxfilmfmt{#2}},description={#3},#1}%
7434 \tstidxnewentry{\tstidx@getlabel{films.#2}}{film}{sort={#2},%
7435 parent={films},name={\tstidxfilmfmt{#2}},description={#3}}%
7436 \else
7437 \tstidxnewentry{\tstidx@getlabel{#2}}{film}{sort={#2},%
7438 name={\tstidxfilmfmt{#2}},description={},#1}%
7439 \tstidxnewentry{\tstidx@getlabel{films.#2}}{film}{sort={#2},%
7440 parent={films},name={\tstidxfilmfmt{#2}},description={}}%
7441 \fi
7442 }
7443 % \end{macrocode}
7444 %\end{macro}
7445 %
7446 %\begin{macro}{\tstidxnewartfilm}
7447 %\changes{1.1}{2017-08-11}{new}
7448 % \begin{macrocode}
7449 \newcommand*{\tstidxnewartfilm}[4][]{%
7450 \if@tstidx@setdescription
7451 \tstidxnewentry{\tstidx@getlabel{#3}}{film}{%
7452 name={\tstidxfilmfmt{#3, #2}},
7453 sort={#3, #2},
7454 text={\tstidxfilmfmt{#2 #3}},description={#4},#1}%
7455 \tstidxnewentry{\tstidx@getlabel{films.#3}}{film}{%
7456 parent={films},
7457 name={\tstidxfilmfmt{#3, #2}},
7458 sort={#3, #2},
7459 text={\tstidxfilmfmt{#2 #3}},description={#4}}%
7460 \else
7461 \tstidxnewentry{\tstidx@getlabel{#3}}{film}{%
7462 name={\tstidxfilmfmt{#3, #2}},
7463 sort={#3, #2},
7464 text={\tstidxfilmfmt{#2 #3}},description={},#1}%
7465 \tstidxnewentry{\tstidx@getlabel{films.#3}}{film}{%
7466 parent={films},
7467 name={\tstidxfilmfmt{#3, #2}},
7468 sort={#3, #2},
7469 text={\tstidxfilmfmt{#2 #3}},description={}}%
7470 \fi
7471 }
7472 % \end{macrocode}
7473 %\end{macro}
7474 %
7475 %\subsection{Dummy Paragraph Redefinition}
7476 %\begin{macro}{\@tidx@par@i}
7477 %\changes{1.1}{2017-08-11}{new}
7478 %Modify the first paragraph.
7479 % \begin{macrocode}
7480 \newcommand*{\@tidx@gls@par@i}{%
7481 This is a~sample block of text designed to test indexing with
7482 the \expandafter\tstidxsty\expandafter{\tstidx@glossariespkg} package. To test
7483 only \tstidxcs{index} and \tstidxenv{theindex} environment, just use
7484 \tstidxsty{testidx} instead of \tstidxsty{testidx-glossaries}.
7485 Alternatively, use \tstidxcs{tstidxtoidx} to switch back to the
7486 original \tstidxsty{testidx} behaviour.
7487 This sample text is provided to help test the
7488 \if@tstidx@use@encaps
7489 \tstidxword[tstidxencapii]{layout}
7490 \else
7491 \tstidxword{layout}
7492 \fi
7493 of the
7494 \if@tstidx@use@encaps
7495 \tstidxword[tstidxencapii]{index}
7496 \else
7497 \tstidxword{index}
7498 \fi
7499 (or
7500 \if@tstidx@use@encaps
7501 \tstidxword[tstidxencapii]{glossary}%
7502 \else
7503 \tstidxword{glossary}%
7504 \fi
7505 ) and the
7506 \if@tstidx@use@encaps
7507 \tstidxphrasepl[tstidxencapii]{indexing application},
7508 \else
7509 \tstidxphrasepl{indexing application},
7510 \fi
7511 such as
7512 \tstidxapp{makeindex} or
7513 \tstidxapp{xindy}, that may be used with the
7514 \expandafter\tstidxsty\expandafter{\tstidx@glossariespkg} package.
7515 This \tstidxword{example} text is just
7516 \tstidxword{filler} (produced using \tstidxcs{testidx} provided
7517 by the \tstidxopensty{testidx} package) to
7518 pad\tstindexsee{padding}{seealso}{filler} out
7519 the document with instances of \tstidxcs{index} interspersed throughout.
7520 You can find out more
7521 information from the \tstidxsty{testidx} user manual, which
7522 can be accessed using the \tstidxapp{texdoc} application.
7523 }
7524 \let\@tidx@org@par@i\@tidx@par@i
7525 \let\@tidx@par@i\@tidx@gls@par@i
7526 % \end{macrocode}
7527 %\end{macro}
7528 %
7529 %\begin{macro}{\@tidx@par@ii}
7530 %\changes{1.1}{2017-08-11}{new}
7531 %Modify the second paragraph.
7532 % \begin{macrocode}
7533 \newcommand*{\@tidx@gls@par@ii}{%
7534 The \tstidxsty{testidx-glossaries} package uses \tstidxcs{gls} (or
7535 \tstidxcs{glspl}) unless no text should be displayed when indexing
7536 occurs (in which case just \tstidxcs{glsadd} is used). This test package
7537 doesn't make any modifications to
7538 \tstidxcs{gls} (or \tstidxcs{glspl}), but there are some minor changes to entry
7539 definitions and command use to allow this \tstidxphrase{dummy text} to test
7540 various cases. By default \tstidxcs{gls} performs the indexing before the
7541 \tstidxphrase{link text} to prevent any unwanted interference caused by the
7542 \tstidxword{whatsit} introduced by the indexing.
7543 However, it's possible that you may want the indexing to occur
7544 after the \tstidxphrase{link text}, even though it creates
7545 a~\tstidxword{whatsit}. This \tstidxphrase{dummy text} is designed to use
7546 a mixture of pre- and post-indexing to investigate the results (particularly
7547 with \tstidxwordpl{phrase} spanning a \tstidxphrase{page break}).
7548 The \tstidxsty{glossaries-extra} package (as from
7549 version 1.14) provides a~new key \tstidxqt{wrgloss} (for commands
7550 like \tstidxcs{gls}), which may take the values
7551 \tstidxqt{before} or \tstidxqt{after}. If this key is available,
7552 it will be used for the post-indexing \tstidxwordpl{example},
7553 otherwise the post-indexing will be performed manually using
7554 \tstidxcs{glsadd} after the \tstidxphrase{link text} (which is displayed using
7555 \tstidxcs{glshyperlink}). The \tstidxsty{testidx-glossaries} package
7556 just loads the base \tstidxsty{glossaries} package by default. Use
7557 the \tstidxstyopt{testidx-glossaries}{extra} package option to also
7558 load \tstidxsty{glossaries-extra}. The \tstidxphrase{visual effects} in this
7559 \tstidxphrase{dummy text} are provided to illustrate where the
7560 indexing occurs. The \tstidxsty{testidx-glossaries} package
7561 doesn't attempt to produce a well-designed index or glossary. Its
7562 \tstidxword{purpose} is to help you \tstidxword{test} your chosen
7563 \tstidxword{design}, which is easier to do with a
7564 relatively small test \tstidxword{document}, than with a large
7565 \tstidxword{book}. The \tstidxphrase{dummy text} is intended to produce an
7566 \tstidxword{index} that is at least three pages long to allow you
7567 to test the page headers and footers in a two-sided document.
7568 The \tstidxqt{mcolindexgroup} style is set by default (rather than
7569 the \tstidxqt{list} style) as that style more closely represents
7570 the style used in indexes.
7571 \if@tstidx@setdescription
7572 However, since this document has used the
7573 \tstidxstyopt{testidx-glossaries}{desc} option,
7574 the style is instead set to \tstidxqt{indexgroup}.
7575 \else
7576 If you use the \tstidxstyopt{testidx-glossaries}{desc} option,
7577 the style will instead be set to \tstidxqt{indexgroup}.
7578 \fi
7579 You can change the style using \tstidxcs{setglossarystyle}.
7580 By default the \tstidxqt{tree} styles (including
7581 \tstidxqt{mcolindexgroup}) display the name field in bold in the
7582 \tstidxword{glossary}. This is governed by the command
7583 \tstidxcs{glstreenamefmt}, which may be redefined as appropriate.
7584 You can hide the visual effects with the
7585 \tstidxstyopt{testidx}{hidemarks} package option.%
7586 \iftestidxshowmarks
7587 \else
7588 \space (It seems you already have this option set.
7589 Remove it or use \tstidxstyopt{testidx}{showmarks} to show them
7590 again.)%
7591 \fi
7592 }
7593 \let\@tidx@org@par@ii\@tidx@par@ii
7594 \let\@tidx@par@ii\@tidx@gls@par@ii
7595 % \end{macrocode}
7596 %\end{macro}
7597 %
7598 %\begin{macro}{\@tidx@par@iii}
7599 %\changes{1.1}{2017-08-11}{new}
7600 %Modify the third paragraph.
7601 % \begin{macrocode}
7602 \newcommand*{\@tidx@gls@par@iii}{%
7603 The actual place where the indexing occurs in this
7604 \if@tstidx@use@encaps
7605 \tstidxphrase[tstidxencapiii]{dummy text}
7606 \else
7607 \tstidxphrase{dummy text}
7608 \fi
7609 is marked with the symbol
7610 \tstidxindexmarker{tstidxmarker} if there is no \tstidxword{range}
7611 or
7612 \tstidxphrase{cross-reference}. The
7613 \if@tstidx@use@encaps
7614 \tstidxword[tstidxencapi]{word}
7615 \else
7616 \tstidxword{word}
7617 \fi
7618 or
7619 \if@tstidx@use@encaps
7620 \tstidxword[tstidxencapii]{phrase}
7621 \else
7622 \tstidxword{phrase}
7623 \fi
7624 adjacent to this \tstidxword{marker} is
7625 the text being indexed.\tstidxfootnote{The indexing may
7626 occur before or after the \tstidxword{word} or \tstidxword{phrase}
7627 (\tstidxphrase{link text}) being indexed in this
7628 \if@tstidx@use@encaps
7629 \tstidxphrase[tstidxencapiii]{dummy text},
7630 \else
7631 \tstidxphrase{dummy text},
7632 \fi
7633 but there's no
7634 space between the \tstidxword{marker} and the term being indexed.
7635 Incidentally, this \tstidxword{footnote} text was produced
7636 using the command \tstidxcs{tstidxfootnote}, which you can
7637 redefined as required. (It defaults to just \tstidxcs{footnote}.)}
7638 A sub-entry is indicated with the symbol
7639 \tstidxindexmarker{tstidxsubmarker} and a sub-sub-entry is
7640 indicated with the symbol \tstidxindexmarker{tstidxsubsubmarker}.
7641 If an \tstidxword{encap} value is provided, both the
7642 \if@tstidx@use@encaps
7643 \tstidxword[tstidxencapiii]{text}
7644 \else
7645 \tstidxword{text}
7646 \fi
7647 and the
7648 \if@tstidx@use@encaps
7649 \tstidxword[tstidxencapii]{marker}
7650 \else
7651 \tstidxword{marker}
7652 \fi
7653 are typeset in the \tstidxword{argument} of the corresponding
7654 command.
7655 (The text occurring in the document is also typeset within the
7656 argument of
7657 \tstidxcs{tstidxtext}. The default value is to use a dark grey, but
7658 since the
7659 default values for the \tstidxword{predefined} encaps used in this
7660 text all
7661 change the colour, the dark grey will only apply where the encap
7662 hasn't
7663 been set.) There are three \tstidxword{encap} values used
7664 throughout this
7665 \tstidxphrase{dummy text} (unless you've used the
7666 \tstidxstyopt{testidx}{notestencaps} package option):
7667 \if@tstidx@use@encaps
7668 \tstidxencapcsn[tstidxencapi]{tstidxencapi},
7669 \else
7670 \tstidxencapcsn{tstidxencapi},
7671 \fi
7672 \if@tstidx@use@encaps
7673 \tstidxencapcsn[tstidxencapii]{tstidxencapii}
7674 \else
7675 \tstidxencapcsn{tstidxencapii}
7676 \fi
7677 and
7678 \if@tstidx@use@encaps
7679 \tstidxencapcsn[tstidxencapiii]{tstidxencapiii}.
7680 \else
7681 \tstidxencapcsn{tstidxencapiii}.
7682 \fi
7683 (The default values use \tstidxcs{textcolor}, so you might want to
7684 use the
7685 \tstidxstyopt{hyperref}{hidelinks} option
7686 if you want to use the \tstidxsty{hyperref} package.)
7687 If you use the \tstidxstyopt{testidx-glossaries}{noseekey} package option, a
7688 cross-referenced entry (using \tstidxcs{glssee}\if@tstidx@hasseealsokey
7689 \ or \tstidxcs{glsxtrindexseealso}\fi) is identified
7690 using the \tstidxword{marker} \tstidxindexmarker{tstidxseemarker}
7691 and the cross-referenced information is displayed as
7692 a \tstidxphrase{marginal note} by default, with the term being indexed
7693 followed by the \tstidxword{cross-reference}.
7694 For example,
7695 \tstidxword{lyuk}\tstindexsee{lyuk}{seealso}{digraph} has
7696 the marker \tstidxmarker\ to show that the word \tstidxqt{lyuk} was
7697 indexed. If the
7698 \tstidxstyopt{testidx-glossaries}{noseekey} package option is set,
7699 this is followed by the marker \tstidxseemarker\ to show that
7700 a cross-reference to \tstidxword{digraph} has also been indexed (with the details shown in
7701 the margin).
7702 \if@tstidx@useglsseekey
7703 This document has used the \tstidxstyopt{testidx-glossaries}{seekey} package option,
7704 which means that \tstidxcs{glssee}
7705 \if@tstidx@hasseealsokey
7706 and \tstidxcs{glsxtrindexseealso} aren't
7707 \else
7708 isn't
7709 \fi
7710 used in the \tstidxphrase{dummy text}.
7711 Instead the \tstidxqt{see}
7712 \if@tstidx@hasseealsokey
7713 and \tstidxqt{seealso} keys provided in the entry definition were
7714 \else
7715 key provided in the entry definition was
7716 \fi
7717 used to perform the \tstidxword{cross-reference} at the time the entry was
7718 defined, and so no markers or marginal notes are displayed.
7719 \else
7720 This document has used the \tstidxstyopt{testidx-glossaries}{noseekey} package option. This option ignores the \tstidxqt{see}
7721 \if@tstidx@hasseealsokey
7722 and \tstidxqt{seealso} keys
7723 \else
7724 key
7725 \fi
7726 within the entry definitions for testing purposes. If you use the
7727 \tstidxstyopt{testidx-glossaries}{seekey}
7728 package option instead, the \tstidxqt{see}
7729 \if@tstidx@hasseealsokey
7730 and \tstidxqt{seealso} keys will
7731 be used when defining the entries with cross-references instead of
7732 using \tstidxcs{glssee} and \tstidxcs{glsxtrindexseealso}.
7733 \else
7734 key will be used when defining the entries with cross-references instead of
7735 using \tstidxcs{glssee}.
7736 \fi
7737 No markers will appear in that case as the
7738 cross-referencing will be performed when the entry is defined in
7739 the preamble.
7740 \fi
7741 A sub-level \tstidxword{cross-reference} is identified with the
7742 \tstidxword{marker} \tstidxindexmarker{tstidxsubseemarker} and the
7743 marginal note displays the main term followed by the sub-term (separated by the
7744 symbol \tstidxsubseesep). The \tstidxword{marker} used for the start of
7745 a range is \tstidxindexmarker{tstidxopenmarker} and the
7746 \tstidxword{marker} used for the end of
7747 a range is \tstidxindexmarker{tstidxclosemarker}
7748 unless the entry is a sub-level, in which case the
7749 \tstidxword{marker} for the start of the range is
7750 \tstidxindexmarker{tstidxopensubmarker}
7751 and the \tstidxword{marker} used for the end of a range is
7752 \tstidxindexmarker{tstidxclosesubmarker}, or for a sub-sub-level
7753 \tstidxindexmarker{tstidxopensubsubmarker} and
7754 \tstidxindexmarker{tstidxclosesubsubmarker}. There are no tests for
7755 any further sub-levels. Although \tstidxapp{xindy} allows more than
7756 three levels (\tstidxapp{makeindex} doesn't), it's somewhat
7757 \tstidxword{excessive} to go below a sub-sub-level.
7758 You'll have to add your own tests for anything deeper.
7759 Watch out for \tstidxsubword{sub-items}{lonely} sub-items.%
7760 }
7761
7762 \let\@tidx@org@par@iii\@tidx@par@iii
7763 \let\@tidx@par@iii\@tidx@gls@par@iii
7764 % \end{macrocode}
7765 %\end{macro}
7766 %\begin{macro}{\@tidx@par@iv}
7767 %\changes{1.1}{2017-08-11}{new}
7768 %Modify the fourth paragraph.
7769 % \begin{macrocode}
7770 \newcommand*{\@tidx@gls@par@iv}{%
7771 Here's an \tstidxword{example} of the start of a
7772 \tstidxopenword{range} but
7773 remember that a range must also have an end, so make sure that
7774 \tstidxword{block}~\@tidx@closerangepar\ has been included in this
7775 \if@tstidx@use@encaps
7776 \tstidxphrase[tstidxencapiii]{dummy text},
7777 \else
7778 \tstidxphrase{dummy text},
7779 \fi
7780 which closes this
7781 \tstidxword{example}.
7782 When the \tstidxstyopt{testidx}{verbose} option is used with just
7783 \tstidxsty{testidx}, the indexing information
7784 will show the \tstidxword{argument} being passed to
7785 \tstidxcs{tstindex} (which will cause \tstidxphrase{overfull lines}).
7786 Since the \tstidxsty{testidx-glossaries} package doesn't use
7787 \tstidxcs{tstindex}, the \tstidxstyopt{testidx-glossaries}{verbose} package
7788 option will instead write information to the transcript file showing the
7789 label, name field, sort field, text field, parent field and see field for each
7790 entry as it's defined. (The parent and see fields may be empty).
7791 If the \tstidxstyopt{testidx-glossaries}{tex} package option is
7792 used, the sorting may take a long time (since \TeX\ is being used
7793 to sort the entries). In this case, the
7794 \tstidxstyopt{testidx-glossaries}{verbose} package
7795 option will also write information while it's sorting the entries,
7796 so that you know \TeX\ is still doing something and hasn't got stuck.
7797 This document has the
7798 \iftestidxverbose
7799 \tstidxstyopt{testidx-glossaries}{verbose} package
7800 \else
7801 \tstidxstyopt{testidx-glossaries}{noverbose} package
7802 \fi
7803 option set.%
7804 }
7805 \let\@tidx@org@par@iv\@tidx@par@iv
7806 \let\@tidx@par@iv\@tidx@gls@par@iv
7807 % \end{macrocode}
7808 %\end{macro}
7809 %\begin{macro}{\@tidx@par@vi}
7810 %\changes{1.1}{2017-08-11}{new}
7811 %Modify the sixth paragraph.
7812 % \begin{macrocode}
7813 \newcommand*{\@tidx@gls@par@vi}{%
7814 On the subject of \tstidxapp{xindy}, if you want to use it with
7815 this \tstidxword{example} document, you'll need to add the
7816 \tstidxword{encap} values used in this \tstidxphrase{dummy text}
7817 as allowed attributes. (Don't forget you'll also need the
7818 \tstidxstyopt{testidx-glossaries}{xindy} package option when you
7819 load \tstidxsty{testidx-glossaries}.) With the \tstidxsty{glossaries} package,
7820 this means using \tstidxcs{GlsAddXdyAttribute} with the
7821 encap name as the argument. For example
7822 \begin{flushleft}\ttfamily
7823 \string\GlsAddXdyAttribute\expandafter\@gobble\string\{tstidxencapi\expandafter\@gobble\string\}\endgraf
7824 \string\GlsAddXdyAttribute\expandafter\@gobble\string\{tstidxencapii\expandafter\@gobble\string\}\endgraf
7825 \string\GlsAddXdyAttribute\expandafter\@gobble\string\{tstidxencapiii\expandafter\@gobble\string\}
7826 \end{flushleft}
7827 This sets up allowed encap values and how they should be formatted.
7828 The ordering of the allowed \tstidxword{attributes} here gives the
7829 \tstidxencapcsn{tstidxencapi} encap precedence in the
7830 event of a \tstidxphrase{multiple encaps} clash, since it's the
7831 first one in the list.
7832 Check out the difference between using \tstidxapp{xindy} and
7833 \tstidxapp{makeindex} on this document. Also check the difference
7834 between using \tstidxapp{makeglossaries} and
7835 \tstidxapp{makeglossaries-lite} to build this document.
7836 The \tstidxsubword{location list}{page separator} is given by
7837 \tstidxcs{delimN}, and the
7838 \tstidxsubword{location list}{range separator}%
7839 \tstindexsee{range separator}{see}{location list} is given by
7840 \tstidxcs{delimR}.
7841 On the subject of location lists, the word
7842 \tstidxword{passim} (meaning \tstidxqt{here and there}) is
7843 sometimes used to tidy up ragged lists. For example,
7844 the locations \tstidxqt{1, 3, 4, 6, 7} may look neater as
7845 \tstidxqt{1-7 passim}, which indicates references are scattered (here
7846 and there) throughout that range.
7847 The \tstidxapp{bib2gls} application may be used with the
7848 \tstidxsty{glossaries-extra} package instead of
7849 \tstidxapp{makeindex} or \tstidxapp{xindy}. Use the
7850 \tstidxstyopt{testidx-glossaries}{bib2gls} package option to set up
7851 this dummy text to use it. Note that this option doesn't make use
7852 of the prefix commands \tstidxcs{tstidxindexmarkerprefix} or
7853 \tstidxcs{tstidxindexmathsymprefix}. The
7854 \tstidxstyopt{testidx}{prefix} package option will instead alter
7855 the way the bib files are loaded to produce a similar grouping.%
7856 }
7857 \let\@tidx@org@par@vi\@tidx@par@vi
7858 \let\@tidx@par@vi\@tidx@gls@par@vi
7859 % \end{macrocode}
7860 %\end{macro}
7861 %
7862 %\begin{macro}{\@tidx@sanitizenote}
7863 % \begin{macrocode}
7864 \newcommand{\@tidx@gls@sanitizenote}{%
7865 \space You currently have the
7866 \@tstidx@ifsanitize
7867 {\tstidxstyopt{testidx-glossaries}{sanitize} option on.
7868 This means that the words containing \tstidxword{UTF-8} characters will
7869 first be sanitized before being passed to \tstidxcs{tstindex}, which
7870 will allow you to test how well the \tstidxphrase{indexing application}
7871 sorts \tstidxword{UTF-8} characters. If you'd rather test how
7872 \tstidxcs{index} writes these characters to the file read by the
7873 indexing application, use the \tstidxstyopt{testidx-glossaries}{nosanitize}
7874 option instead. This may cause the \tstidxword{UTF-8} characters to be
7875 written in terms of \tstidxcs{IeC}.
7876 }%
7877 {\tstidxstyopt{testidx-glossaries}{nosanitize} option on.
7878 This means that the words containing \tstidxword{UTF-8} characters
7879 may be written to the file processed by the
7880 \tstidxphrase{indexing application} in terms of
7881 \tstidxcs{IeC}. This allows you to test how \tstidxcs{index} behaves.
7882 If you'd rather test how the indexing application sorts
7883 \tstidxword{UTF-8} characters, use the
7884 \tstidxstyopt{testidx-glossaries}{sanitize}
7885 option instead, which will sanitize the \tstidxword{UTF-8} characters
7886 before passing them to \tstidxcs{tstindex}.
7887 }%
7888 The \tstidxstyopt{testidx-glossaries}{nosanitize} option doesn't
7889 have an effect when used with the
7890 \tstidxstyopt{testidx-glossaries}{bib2gls} package option, since
7891 the sort value isn't written to an external file.%
7892 }
7893 \let\@tidx@org@sanitizenote\@tidx@sanitizenote
7894 \let\@tidx@sanitizenote\@tidx@gls@sanitizenote
7895 % \end{macrocode}
7896 %\end{macro}
7897 %
7898 %\begin{macro}{\@tidx@stripaccentsnote}
7899 % \begin{macrocode}
7900 \newcommand{\@tidx@gls@stripaccentsnote}{%
7901 \space The \tstidxstyopt{testidx-glossaries}{stripaccents} package option will
7902 effectively do, for example,
7903 \texttt{sort=\char`\{elite\char`\},
7904 name=\char`\{\string\'elite\char`\}}
7905 whereas the
7906 \tstidxstyopt{testidx-glossaries}{nostripaccents} package option will
7907 effectively do, for example,
7908 \texttt{sort=\char`\{\string\'elite\char`\},
7909 name=\char`\{\string\'elite\char`\}}. These options have
7910 no effect in UTF-8 mode.%
7911 }
7912 \let\@tidx@org@stripaccentsnote\@tidx@stripaccentsnote
7913 \let\@tidx@stripaccentsnote\@tidx@gls@stripaccentsnote
7914 % \end{macrocode}
7915 %\end{macro}
7916 %
7917 %\begin{macro}{\@tidx@scriptnote}
7918 % \begin{macrocode}
7919 \newcommand*{\@tidx@gls@scriptnote}{%
7920 (Note how the subscripts and superscripts can be affected
7921 by material inserted between the symbol and the sub- and
7922 superscripts. With the \tstidxsty{glossaries} package, this can be
7923 avoided by using the final optional argument of commands like
7924 \tstidxcs{gls} to bring the scripts into the
7925 \tstidxphrase{link text}, but not if the scripts also include
7926 \tstidxcs{gls}, as the superscript does here.)
7927 }
7928 \let\@tidx@org@scriptnote\@tidx@scriptnote
7929 \let\@tidx@scriptnote\@tidx@gls@scriptnote
7930 % \end{macrocode}
7931 %\end{macro}
7932 %
7933 %\begin{macro}{\@tidx@numberlettergroup}
7934 % \begin{macrocode}
7935 \newcommand*{\@tidx@gls@numberlettergroup}{%
7936 If you're using \tstidxapp{xindy}, the \tstidxqt{glsnumbers}
7937 letter group (with the title \tstidxqt{\glsnumbersgroupname}) will
7938 automatically be added to your \texttt{.xdy}
7939 file unless you switch off this feature with the
7940 \tstidxstyopt{testidx-glossaries}{noglsnumbers} package option.
7941 }
7942 \let\@tidx@org@numberlettergroup\@tidx@numberlettergroup
7943 \let\@tidx@numberlettergroup\@tidx@gls@numberlettergroup
7944 % \end{macrocode}
7945 %\end{macro}
7946 %
7947 %\begin{macro}{\@tidx@mathslettergroup}
7948 % \begin{macrocode}
7949 \newcommand*{\@tidx@gls@mathslettergroup}{%
7950 \@testidx@ifusebibgls
7951 {%
7952 Now I've been a bit fancy here and used multiple bib files
7953 to define the glossary entries. The maths symbols are defined in
7954 their own separate bib file.
7955 \iftestidxprefix
7956 This document has used the \tstidxstyopt{testidx}{prefix} package
7957 option, which means that \tstidxcs{tstidxmakegloss} is defined to
7958 perform separate sorts for each resource block, which enables the
7959 maths symbols to appear in their own group.
7960 \else
7961 This document has used the \tstidxstyopt{testidx}{noprefix} package
7962 option, which means that \tstidxcs{tstidxmakegloss} is defined to
7963 sort the maths symbols together with the main entries. If you
7964 use the \tstidxstyopt{testidx}{prefix} package instead, the maths
7965 symbols will be sorted separately and placed in their own group.
7966 \fi
7967 If you haven't used \tstidxcs{tstidxmakegloss} then the above
7968 won't apply. If you don't use the
7969 \tstidxstyopt{testidx-glossaries}{bib2gls} package option, then
7970 the \tstidxstyopt{testidx}{prefix} package will instead insert
7971 \texttt{\tstidxmathsymprefix} in front of
7972 the sort key so I can get \tstidxapp{xindy} to create a special
7973 group for the maths symbols. Here's
7974 }%
7975 {%
7976 \iftestidxprefix
7977 Now I've been a bit fancy here and inserted
7978 \texttt{\tstidxmathsymprefix} in front of
7979 the sort key so I can get \tstidxapp{xindy} to create a special
7980 group for the maths symbols. Here's
7981 \else
7982 This document has used the \tstidxstyopt{testidx}{noprefix}
7983 package option, which has switched of the sort prefixes.
7984 If you use the \tstidxstyopt{testidx}{prefix} option I can be a
7985 bit fancy here and insert
7986 \texttt{\tstidxmathsymprefix} in front of
7987 the sort key so I can get \tstidxapp{xindy} to create a special
7988 group for the maths symbols. When you switch on the prefixes here's
7989 \fi
7990 }%
7991 the code you can add to your document to implement it:
7992 \begin{flushleft}\ttfamily
7993 \string\GlsAddLetterGroup\glsopenbrace Maths\glsclosebrace\glsopenbrace
7994 \string:prefixes (\string"\tstidxmathsymprefix\string")
7995 \string:before \string"glsnumbers\string"\glsclosebrace
7996 \end{flushleft}
7997 }
7998 \let\@tidx@org@mathslettergroup\@tidx@mathslettergroup
7999 \let\@tidx@mathslettergroup\@tidx@gls@mathslettergroup
8000 % \end{macrocode}
8001 %\end{macro}
8002 %\iffalse
8003 % \begin{macrocode}
8004 %</testidx-glossaries.sty>
8005 % \end{macrocode}
8006 %\fi
8007 %\iffalse
8008 % \begin{macrocode}
8009 %<*testidx-glossaries-diglyphs.tex>
8010 % \end{macrocode}
8011 %\fi
8012 %This file contains the definitions of words containing glyphs
8013 %representing the digraphs ll, ij and dz.
8014 % \begin{macrocode}
8015 \tstidxnewutfdigraph{ll}{ll}{ỻ}{a \glshyperlink{digraph} used in
8016 a number of languages. In Welsh, LL is considered a separate letter
8017 from L and may be rendered as a ligature Ỻ}
8018 \tstidxnewutfdigraph{ij}{ij}{ij}{a \glshyperlink{digraph} used in Dutch that's sometimes
8019 considered
8020 a separate letter from I and may be rendered as the ligature IJ}
8021 \tstidxnewutfdigraph{dz}{dz}{dz}{a \glshyperlink{digraph} used in
8022 a number of languages. In Hungarian, Dz is considered a separate
8023 letter
8024 from D and may be rendered as the ligature Dz}
8025 \tstidxnewutfword{llan}{llan}{ỻan}{commonly used placename element in Brittonic
8026 languages (such as Welsh) typically indicating parish church}
8027 \tstidxnewutfword{llama}{llama}{ỻama}{domesticate animal found in the Andes}
8028 \tstidxnewutfword{lijnbus}{lijnbus}{lijnbus}{bus (Dutch)}
8029 \tstidxnewutfword{ijsvrij}{ijsvrij}{ijsvrij}{frost (Dutch)}
8030 \tstidxnewutfword{dzwon}{dzwon}{dzwon}{bell (Polish)}
8031 \tstidxnewutfword{dzeta}{dz\'eta}{dzéta}{the Greek letter zeta
8032 (Hungarian)}
8033 % \end{macrocode}
8034 %\iffalse
8035 % \begin{macrocode}
8036 %</testidx-glossaries-diglyphs.tex>
8037 % \end{macrocode}
8038 %\fi
8039 %\iffalse
8040 % \begin{macrocode}
8041 %<*testidx-glossaries-nodiglyphs.tex>
8042 % \end{macrocode}
8043 %\fi
8044 %This file contains the definitions of words containing
8045 %the digraphs ll, ij and dz.
8046 % \begin{macrocode}
8047 \tstidxnewdigraph{ll}{a \glshyperlink{digraph} used in
8048 a number of languages. In Welsh, LL is considered a separate letter
8049 from L and may be rendered as a ligature}
8050 \tstidxnewdigraph{ij}{a \glshyperlink{digraph} used in Dutch that's sometimes considered
8051 a separate letter from I and may be rendered as a ligature}
8052 \tstidxnewdigraph{dz}{a \glshyperlink{digraph} used in
8053 a number of languages. In Hungarian, Dz is considered a separate
8054 letter
8055 from D and may be rendered as a ligature}
8056 \tstidxnewword{llan}{commonly used placename element in Brittonic
8057 languages (such as Welsh) typically indicating parish church}
8058 \tstidxnewword{llama}{domesticate animal found in the Andes}
8059 \tstidxnewword{lijnbus}{bus (Dutch)}
8060 \tstidxnewword{ijsvrij}{frost (Dutch)}
8061 \tstidxnewword{dzwon}{bell (Polish)}
8062
8063 \tstidxnewutfword{dzeta}{dz\'eta}{dzéta}{the Greek letter zeta
8064 (Hungarian)}
8065 % \end{macrocode}
8066 %\iffalse
8067 % \begin{macrocode}
8068 %</testidx-glossaries-nodiglyphs.tex>
8069 % \end{macrocode}
8070 %\fi
8071 %\iffalse
8072 % \begin{macrocode}
8073 %<*testidx-glossaries-samples.tex>
8074 % \end{macrocode}
8075 %\fi
8076 %This file contains the definitions of all the terms except for
8077 %those containing the digraphs ll, ij and dz. There are a few terms
8078 %that aren't actually used in the modified dummy text produced with
8079 %\sty{testidx-glossaries}, but are provided to compare indexed with
8080 %non-indexed entries. First the terms that
8081 %have sub-items need to be defined:
8082 % \begin{macrocode}
8083 \tstidxnewword{packages}{files provided to adjust the document
8084 design or provide new commands}
8085 \tstidxnewword{books}{written or printed works}
8086 \tstidxnewword{films}{stories recorded by camera}
8087 \tstidxnewword{people}{human individuals (or fictional
8088 anthropomorphisms)}
8089 \tstidxnewword{places}{particular areas or locations}
8090 \tstidxnewword{sub-items}{items that have a parent entry}
8091 \tstidxnewword{applications}{computer programs}
8092 \tstidxnewword{environments}{a marked-up block within the document
8093 that requires special action or formatting}
8094 \tstidxnewword{attributes}{qualities or features that characterise
8095 something}
8096 % \end{macrocode}
8097 % Now define words.
8098 % \begin{macrocode}
8099 \tstidxnewword{parse}{divide a sentence into its component parts for
8100 analysis}
8101 \tstidxnewword{interpret}{translate or explain the meaning of}
8102 \tstidxnewword{oak}{large tree that produces acorns}
8103 \tstidxnewword{daft}{silly or foolish}
8104 \tstidxnewword{rhubarb}{thick reddish or green leaf stalks
8105 of a plant from the dock family}
8106 \tstidxnewword{rhinoceros}{a large plant-eating mammal
8107 with one or two horns on its nose}
8108 \tstidxnewword{aardvark}{an African mammal}
8109 \tstidxnewword{check}{make sure something is the case}
8110 \tstidxnewword{chalk}{soft limestone substance made into sticks to
8111 use for writing}
8112 \tstidxnewword{index}{an alphabetical list of names, terms or
8113 subjects with references to where they occur in the document}
8114 \tstidxnewword{phrase}{group of words forming a unit}
8115 \tstidxnewword{glossary}{an alphabetical list of words with
8116 explanations}
8117 \tstidxnewword{layout}{the way something is laid out (for example,
8118 on a page)}
8119 \tstidxnewword{filler}{something used to fill in gaps or increase bulk}
8120 \tstidxnewwordseealso{padding}{something used
8121 to pad out material to make it longer}{filler}
8122 \tstidxnewword{example}{thing used to illustrate something}
8123 \tstidxnewword{purpose}{the reason for doing something}
8124 \tstidxnewword{whatsit}{In \TeX\ terms, a mechanism to allow
8125 extensions to \TeX, including writing to files or providing
8126 special instructions to printing devices. More generally,
8127 a whatsit is an unnamed person or thing}
8128 \tstidxnewword{test}{a means of testing something}
8129 \tstidxnewword{design}{plan or purpose}
8130 \tstidxnewword{document}{a piece of written, printed or electronic
8131 matter that provides information}
8132 \tstidxnewword{book}{written or printed work}
8133 \tstidxnewword{range}{area of variation or scope}
8134 \tstidxnewword{word}{single unit of language which has meaning}
8135 \tstidxnewword{marker}{an identifying symbol}
8136 \tstidxnewword{footnote}{additional information written at the
8137 bottom of a page}
8138 \tstidxnewword{encap}{the format used to encapsulate the location}
8139 \tstidxnewword{text}{written or printed or electronically
8140 represented words}
8141 \tstidxnewword{argument}{parameter passed to a command or
8142 application}
8143 \tstidxnewword{predefined}{already defined}
8144 \tstidxnewword{excessive}{more than normal or desired}
8145 \tstidxnewword{block}{large quantity of things viewed as a unit}
8146 \tstidxnewword{paragraph}{block of writing, beginning on a new line}
8147 \tstidxnewword{waffle}{speak or write vague or trivial information in a lengthy way}
8148 \tstidxnewword{gibberish}{meaningless or hard to comprehend speech
8149 or writing}
8150 \tstidxnewwordsee{gobbledegook}{language that is
8151 difficult to understand}{gibberish}
8152 \tstidxnewword{clarify}{make it easier to understand}
8153 \tstidxnewword{confidential}{private or secret information}
8154 \tstidxnewword{roundabout}{not direct}
8155 \tstidxnewword{fashion}{a way of doing something}
8156 \tstidxnewwordseealso{illustration}{an example to explain something}{example}
8157 \tstidxnewword{wit}{natural talent for saying or writing things in
8158 an amusing or clever way}
8159 \tstidxnewword{eloquence}{fluent or persuasive speech or writing}
8160 \tstidxnewword{adage}{popular saying}
8161 \tstidxnewword{motto}{short sentence of phrase expressing a belief
8162 or aim}
8163 \tstidxnewword{verbiage}{excessively length speech or writing}
8164 \tstidxnewword{drivel}{nonsense}
8165 \tstidxnewword{tutor}{teacher}
8166 \tstidxnewword{grass}{in addition to the plant, also slang for
8167 reporting criminal activity}
8168 \tstidxnewword{distress}{cause anxiety}
8169 \tstidxnewword{concordance}{an alphabetical list of important words
8170 used in a document}
8171 \tstidxnewword{ogling}{staring at someone in a lecherous manner}
8172 \tstidxnewwordsee{gawping}{staring in a rude or stupid manner}{ogling}
8173 \tstidxnewword{passim}{referencing various places in a document}
8174 \tstidxnewword{localisation}{place or position}
8175 \tstidxnewword{digraph}{two letters representing a single sound}
8176 \tstidxnewword{trigraph}{three letters representing a single sound}
8177 \tstidxnewwordseealso{lyuk}{hole (Hungarian)}{digraph}
8178 \tstidxnewwordseealso{dzsungel}{jungle (Hungarian)}{trigraph}
8179 \tstidxnewword{nonsense}{something that doesn't make sense}
8180 \tstidxnewword{vol-au-vent}{small round puff pastry containing
8181 savoury food}
8182 \tstidxnewword{two}{number following one}
8183 \tstidxnewword{sculpture}{artwork made of wood, metal or stone}
8184 \tstidxnewword{Venus}{Roman goddess (or planet named after her)}
8185 \tstidxnewword{zoo}{place containing animals}
8186 \tstidxnewword{alphabet}{ordered set of letters used to form words}
8187 \tstidxnewword{resume}{continue after an interruption}
8188 \tstidxnewword{fly}{travel by air}
8189 \tstidxnewword{aeroplane}{fixed wing flying vehicle}
8190 \tstidxnewword{window}{opening in wall or window to view out or in}
8191 \tstidxnewword{ogonek}{a diacritic hook placed under the lower right
8192 corner of a vowel}
8193 \tstidxnewword{sail}{travel by or navigate a boat}
8194 \tstidxnewword{ship}{large boat}
8195 \tstidxnewword{OT1}{one of the original font encodings provided with
8196 \TeX}
8197 \tstidxnewword{UTF-8}{character encoding that uses 8-bit code units}
8198 \tstidxnewword{life}{existence}
8199 \tstidxnewword{universe}{all existing space and matter}
8200 \tstidxnewword{even}{multiple of two}
8201 \tstidxnewword{century}{period of 100 years or a score of 100 runs}
8202 \tstidxnewword{cricket}{bat and ball game played between two teams
8203 with eleven players on either side}
8204 \tstidxnewword{calendar}{chart or list showing a period of time}
8205 \tstidxnewword{prefix}{word or letter placed at the start of another
8206 word}
8207 \tstidxnewword{gobsmacked}{astonished}
8208 \tstidxnewword{astounded}{shocked or very surprised}
8209 \tstidxnewword{quaint}{old-fashioned or unusual}
8210 \tstidxnewword{yatter}{chatter or talk non-stop}
8211 \tstidxnewword{yawn}{open one's mouth due to tiredness or boredom}
8212 \tstidxnewword{quirky}{peculiar or unexpected habits}
8213 \tstidxnewword{badinage}{witty conversation}
8214 \tstidxnewword{expire}{come to an end}
8215 \tstidxnewword{story}{account or description of imaginary or real
8216 events}
8217 \tstidxnewword{begin}{start something}
8218 \tstidxnewword{forget}{fail to remember something}
8219 \tstidxnewword{tale}{a story}
8220 \tstidxnewword{adventure}{unusual or exciting or daring experience}
8221 \tstidxnewword{derring-do}{heroic action}
8222 \tstidxnewword{hero}{principle male character in a story or a person
8223 admired for their achievements}
8224 \tstidxnewword{title}{name of a document or work, or a name that
8225 describes a position}
8226 \tstidxnewword{knight}{a man raised to military rank after service
8227 as a page or squire, or a man entitled to use \tstidxqt{Sir} before
8228 his name}
8229 \tstidxnewword{handsome}{good-looking}
8230 \tstidxnewword{bold}{confident or brave}
8231 \tstidxnewword{brave}{prepared to face danger or difficulties}
8232 \tstidxnewword{duck}{a waterbird with a blunt bill, short legs and webbed feet}
8233 \tstidxnewword{name}{word or words by which something is known}
8234 \tstidxnewword{plight}{dangerous situation}
8235 \tstidxnewword{land}{area of ground}
8236 \tstidxnewword{OgRe}{an ogre is a man-eating giant or a terrifying
8237 person. The silly capitalisation is just a reference to \TeX's output
8238 routine}
8239 \tstidxnewword{reference}{referring to something}
8240 \tstidxnewword{perilous}{dangerous or full of risk}
8241 \tstidxnewword{quest}{long or difficult search for something}
8242 \tstidxnewword{xor}{\LaTeX3 experimental output routine}
8243 \tstidxnewword{continuation}{state of continuing}
8244 \tstidxnewword{newcomers}{recent arrivals}
8245 \tstidxnewword{nod}{in addition to the action of moving one's head
8246 up and down, also indicates a reference of acknowledgement of
8247 something}
8248 \tstidxnewword{centre}{point in the middle (UK spelling)}
8249 \tstidxnewword{center}{point in the middle (US spelling)}
8250 \tstidxnewword{lore}{tradition or knowledge of a particular subject}
8251 \tstidxnewword{raft}{flat water vessel made from pieces of wood
8252 tied together}
8253 \tstidxnewword{external}{belonging outside of something}
8254 \tstidxnewword{pun}{play on words}
8255 \tstidxnewword{joke}{something said to amuse others}
8256 \tstidxnewword{witty}{having the ability to say clever or
8257 amusing things}
8258 \tstidxnewword{cameo}{small part in a story for a distinguished
8259 actor}
8260 \tstidxnewword{exclamation}{sudden cry}
8261 \tstidxnewword{bog}{area of soft, wet, muddy ground}
8262 \tstidxnewword{leviathans}{very large, powerful thing (such as a sea
8263 monster)}
8264 \tstidxnewword{vale}{valley}
8265 \tstidxnewword{doom}{fate}
8266 \tstidxnewword{chaos}{complete confusion or disorder}
8267 \tstidxnewword{butterfly}{winged insect}
8268 \tstidxnewword{motif}{repeated theme}
8269 \tstidxnewword{sentence}{set of words forming a complete statement,
8270 instruction or question}
8271 \tstidxnewword{conjunction}{word used to connect words or clauses}
8272 \tstidxnewword{naughty}{badly behaved}
8273 \tstidxnewword{leap}{jump far or high across something}
8274 \tstidxnewword{bound}{leaping movement}
8275 \tstidxnewword{sword}{weapon with a long metal blade}
8276 \tstidxnewword{myriad}{countless or a very great number}
8277 \tstidxnewword{clones}{identical copy}
8278 \tstidxnewword{repetition}{something that's been repeated}
8279 \tstidxnewword{lair}{hiding place or den}
8280 \tstidxnewword{roar}{loud, deep sound}
8281 \tstidxnewword{peace}{freedom from war or anxiety}
8282 \tstidxnewword{harmony}{arranged well or peacefully together}
8283 \tstidxnewword{span}{length of time or full extent or extend across
8284 something}
8285 \tstidxnewword{fear}{anxiety about something unpleasant}
8286 \tstidxnewword{thrilling}{exciting}
8287 \tstidxnewword{quixotic}{impractically unselfish and idealist}
8288 \tstidxnewword{sea}{large area of salt water}
8289 \tstidxnewword{seal}{sea-dwelling fish-eating mammal with flippers}
8290 \tstidxnewword{seaborne}{transported or travelling by sea}
8291 \tstidxnewword{zither}{a type of stringed musical instrument}
8292 \tstidxnewword{zealous}{having great enthusiasm for something}
8293 \tstidxnewword{fan}{an admirer of something}
8294 \tstidxnewword{youthful}{seeming young}
8295 \tstidxnewword{magic}{having the apparent power of supernatural or
8296 mysterious forces}
8297 \tstidxnewword{magical}{relating to or using magic}
8298 \tstidxnewword{yo-yo}{a round toy consisting of two discs and a
8299 piece of string}
8300 \tstidxnewword{wily}{using cunning or crafty methods to gain an
8301 advantage}
8302 \tstidxnewword{wombat}{a type of small marsupial}
8303 \tstidxnewword{warrior}{brave or experienced fighter}
8304 \tstidxnewword{laser-guided}{guided by a laser}
8305 \tstidxnewword{villainous}{characteristic of a villain}
8306 \tstidxnewword{zany}{amusingly unconventional}
8307 \tstidxnewword{zoologist}{someone who studies animals}
8308 \tstidxnewword{xebec}{a type of small sailing ship}
8309 \tstidxnewword{xenon}{a type of inert gas}
8310 \tstidxnewword{xylem}{a plant tissue}
8311 \tstidxnewword{xylene}{a type of liquid hydrocarbon}
8312 \tstidxnewword{zounds}{an exclamation}
8313 \tstidxnewword{Ooh}{an exclamation}
8314 \tstidxnewword{zucchini}{a type of long, green summer squash (called
8315 a courgette in British English)}
8316 \tstidxnewword{xylophone}{a type of musical instrument}
8317 \tstidxnewword{exhilarating}{pleasing or energetic}
8318 \tstidxnewword{yuppie}{urban well-paid young middle-class professional}
8319 \tstidxnewword{yoghurt}{thick, liquid food made from milk}
8320 \tstidxnewword{yummy}{delicious}
8321 \tstidxnewword{yuck}{disgusting}
8322 \tstidxnewword{Viking}{a member of Scandinavian seafaring people
8323 between the eighth and eleventh centuries}
8324 \tstidxnewword{vignette}{brief episode}
8325 \tstidxnewword{viceroy}{a person who governs a colony on behalf of
8326 the sovereign}
8327 \tstidxnewword{vichyssoise}{a type of soup}
8328 \tstidxnewword{viceregal}{relating to a viceroy}
8329 \tstidxnewword{quiz}{game or competition}
8330 \tstidxnewword{glyph}{small graphic symbol}
8331 \tstidxnewword{asleep}{in or into a state of sleep}
8332 \tstidxnewword{ashore}{to or on shore or land}
8333 \tstidxnewword{aspire}{to have strong ambitions to be or do something}
8334 \tstidxnewword{assailed}{past tense of assail}
8335 \tstidxnewword{recover}{get well again}
8336 \tstidxnewword[name={re-cover}]{reecover}{to cover again}
8337 % \end{macrocode}
8338 %Digraphs and trigraph:
8339 % \begin{macrocode}
8340 \tstidxnewdigraph{cz}{digraph in some languages, such as Polish}
8341 \tstidxnewdigraph{dd}{digraph in some languages, such as Welsh}
8342 \tstidxnewdigraph{ff}{digraph in some languages, such as Welsh}
8343 \tstidxnewdigraph{ng}{digraph in some languages, such as Welsh}
8344 \tstidxnewdigraph{ly}{digraph in some languages, such as Hungarian}
8345 \tstidxnewtrigraph{dzs}{Hungarian \glshyperlink{trigraph} considered a separate letter}
8346 % \end{macrocode}
8347 %Some words with the Welsh dd diagraph:
8348 % \begin{macrocode}
8349 \tstidxnewword{ddisgynedig}{descending (Welsh)}
8350 \tstidxnewword{ddyrchafedig}{advanced (Welsh)}
8351 \tstidxnewword{ffotograff}{photo (Welsh)}
8352
8353 % \end{macrocode}
8354 %Some words with the Hungarian ly and dz diagraphs:
8355 % \begin{macrocode}
8356 \tstidxnewutfword{dzsoker}{dzs\'oker}{dzsóker}{joker (Hungarian)}
8357 % \end{macrocode}
8358 %and a Polish cz digraph:
8359 % \begin{macrocode}
8360 \tstidxnewutfword{czesc}{cze\'s\'c}{cześć}{hello (Polish)}
8361 % \end{macrocode}
8362 % Now for some English words with accents.
8363 % \begin{macrocode}
8364 \tstidxnewutfword{elite}{\'elite}{élite}{group of people regarded as
8365 the best of a particular society or organisation}
8366 \tstidxnewutfword{aesthetic}{\ae sthetic}{æsthetic}{concerning
8367 beauty}
8368 \tstidxnewutfword{blase}{blas\'e}{blasé}{unimpressed or indifferent
8369 due to familiarity}
8370 \tstidxnewutfword{protege}{prot\'eg\'e}{protégé}{person guided by an
8371 older more experienced person}
8372 \tstidxnewutfword{clientele}{client\`ele}{clientèle}{all the clients
8373 of a particular business}
8374 \tstidxnewutfword{resumee}{r\'esum\'e}{résumé}{summary of something
8375 or curriculum vitae}
8376 \tstidxnewutfword{soiree}{soir\'ee}{soirée}{an evening social
8377 gathering involving conversation or music}
8378 \tstidxnewutfword{phoenix}{ph\oe nix}{phœnix}{mythical bird that
8379 periodically burned itself and was reborn from the ashes}
8380 \tstidxnewutfword{decor}{d\'ecor}{décor}{the furnishings and
8381 decorations of a room}
8382 \tstidxnewutfword{faerie}{f\ae rie}{færie}{fairyland}
8383 \tstidxnewutfword{facade}{fa\c{c}ade}{façade}{the front face of a
8384 building}
8385 \tstidxnewutfword{aethereal}{\ae thereal}{æthereal}{light, airy or
8386 tenuous}
8387 \tstidxnewutfword{debutante}{d\'ebutante}{débutante}{a young
8388 upper-class woman making her first appearance in society}
8389 \tstidxnewutfword{naive}{na\"{\i}ve}{naïve}{lacking experience or
8390 wisdom}
8391 \tstidxnewutfword{foetid}{f\oe tid}{fœtid}{smelling very unpleasant}
8392 \tstidxnewutfword{cliche}{clich\'e}{cliché}{overused phrase or idea}
8393 \tstidxnewutfword{deshabille}{d\'eshabill\'e}{déshabillé}{the state
8394 of being only partially clothed}
8395 \tstidxnewutfword{negligee}{n\'eglig\'ee}{négligée}{a woman's very
8396 thin dressing gown}
8397 \tstidxnewutfword{cafe}{caf\'e}{café}{small restaurant that sells
8398 light meals}
8399 \tstidxnewutfword{anaemic}{an\ae mic}{anæmic}{suffering from anaemia}
8400
8401 \tstidxnewutfwordsee{thornletter}{\th}{þ}{thorn}{thorn}
8402 \tstidxnewutfwordsee{ethletter}{\dh}{ð}{eth}{eth}
8403 \tstidxnewutfword{thorn}{thorn (\th)}{thorn (þ)}{Old English and
8404 Icelandic runic letter. In English, eventually replaced by the
8405 digraph \tstidxqt{th}}
8406 \tstidxnewutfword{eth}{eth (\dh)}{eth (ð)}{Old English letter eventually
8407 superseded by the digraph \tstidxqt{th}, but still in use in
8408 some other languages}
8409 \tstidxnewutfword{oesophagus}{\oe sophagus}{œsophagus}{part of the
8410 alimentary canal}
8411 % \end{macrocode}
8412 % Places.
8413 % \begin{macrocode}
8414 \tstidxnewplace{Poland}{an Eastern European country}
8415 \tstidxnewplace{Glasgow}{a Scottish city}
8416 \tstidxnewplace{Iceland}{a Nordic island nation}
8417 \tstidxnewplace{Nghaerdydd}{Cardiff}
8418 \tstidxnewplace{Nghymru}{Wales}
8419 \tstidxnewplace{Ffestiniog}{a place in Wales}
8420 % \end{macrocode}
8421 % Places with extended Latin characters.
8422 % \begin{macrocode}
8423 \tstidxnewutfplace{Ostergotland}{\"Osterg\"otland}{Östergötland}{a
8424 county in Sweden}
8425 \tstidxnewutfplace{Angelholm}{\"Angelholm}{Ängelholm}{a place in
8426 Sweden}
8427 \tstidxnewutfplace{Oresund}{\O resund}{Øresund}{a strait which
8428 separates Denmark and Sweden}
8429 \tstidxnewutfplace{Tarnby}{T\r{a}rnby}{Tårnby}{a town in Denmark}
8430 \tstidxnewutfplace{Rodovre}{R\o dovre}{Rødovre}{a Danish town}
8431 \tstidxnewutfplace{Naestved}{N\ae stved}{Næstved}{a Danish town on
8432 the island of Zealand}
8433 \tstidxnewutfplace{OlstykkeStenlose}{\O lstykke-Stenl\o se}%
8434 {Ølstykke-Stenløse}{a Danish city in North Zealand}
8435 \tstidxnewutfplace{Asslar}{A\ss lar}{Aßlar}{German town}
8436 \tstidxnewutfplace{BadGottleubaBerggiesshubel}%
8437 {Bad Gottleuba-Berggie\ss h\"ubel}{Bad Gottleuba-Berggießhübel}%
8438 {a town in the Free State of Saxony, Germany}
8439 \tstidxnewutfplace{Lodz}{\L\'od\'z}{Łódź}{Polish city}
8440 \tstidxnewutfplace{Swietokrzyskie}{\'Swi\k{e}tokrzyskie}%
8441 {Świętokrzyskie}{Polish province}
8442 \tstidxnewutfplace{Zory}{\.Zory}{Żory}{Polish town and city county}
8443 \tstidxnewutfplace{Zelechow}{\.Zelech\'ow}{Żelechów}%
8444 {Polish town}
8445 \tstidxnewutfplace{Lobez}{\L obez}{Łobez}{Polish town}
8446 \tstidxnewutfplace{Glogow}{G\l og\'ow}{Głogów}{Polish town}
8447 \tstidxnewutfplace{Cmielow}{\'Cmiel\'ow}{Ćmielów}{Polish town}
8448 \tstidxnewutfplace{Scinawa}{\'Scinawa}{Ścinawa}{Polish town}
8449 \tstidxnewutfplace{Swidnica}{\'Swidnica}{Świdnica}{Polish town}
8450 \tstidxnewutfplace{Olvesvatn}{\"Olvesvatn}{Ölvesvatn}{Icelandic lake}
8451 \tstidxnewutfplace{Ulfsvatn}{\'Ulfsvatn}{Úlfsvatn}{Icelandic lake}
8452 \tstidxnewutfplace{Anavatn}{\'Anavatn}{Ánavatn}{Icelandic lake}
8453 \tstidxnewutfplace{Masvatn}{M\'asvatn}{Másvatn}{Icelandic lake}
8454 \tstidxnewutfplace{Thrihyrningsvatn}{\TH r\'{\i}hyrningsvatn}%
8455 {Þríhyrningsvatn}{Icelandic lake}
8456 \tstidxnewutfplace{Sigridharstadhavatn}%
8457 {Sigr\'{\i}\dh arsta\dh avatn}{Sigríðarstaðavatn}%
8458 {Icelandic lagoon}
8459 \tstidxnewutfplace{Graenavatn}{Gr\ae navatn}{Grænavatn}%
8460 {Icelandic lake}
8461 \tstidxnewutfplace{Arneslon}{\'Arnesl\'on}{Árneslón}%
8462 {Icelandic lake}
8463 \tstidxnewutfplace{Isholsvatn}{\'Ish\'olsvatn}{Íshólsvatn}%
8464 {Icelandic lake}
8465 % \end{macrocode}
8466 %Place starting with an article.
8467 % \begin{macrocode}
8468 \tstidxnewartplace{the}{Bog of Eternal Stench}{place in the film
8469 \glshyperlink{Labyrinth}}
8470 % \end{macrocode}
8471 %Phrases.
8472 % \begin{macrocode}
8473 \tstidxnewphrase{dado rail}{waist-high moulding around the
8474 wall of a room}
8475 \tstidxnewphrase{indexing application}{an application that generates
8476 a document index}
8477 \tstidxnewphrase{visual effects}{use of imagery to create an effect}
8478 \tstidxnewphrase{dummy text}{sample text used for demonstration not
8479 for its content}
8480 \tstidxnewphrase{page break}{the point where document text is broken
8481 across two pages}
8482 \tstidxnewphrase{link text}{for the \glshyperlink{glossariespackage}
8483 package, this refers to the text inserted into the document
8484 through commands like \glshyperlink{cs.gls}}
8485 \tstidxnewphrase{cross-reference}{reference to another part of the
8486 document or to a part of another document}
8487 \tstidxnewphrase{marginal note}{text that's placed in the page
8488 margin}
8489 \tstidxnewphrase{overfull lines}{lines where the text extends into
8490 the margin because of a formatting failure}
8491 \tstidxnewphrase{lorem ipsum}{dummy text}
8492 \tstidxnewphrase{between you, me and the gatepost}{an expression
8493 meaning you're telling someone a secret that shouldn't be passed on
8494 (common in some British dialects)}
8495 \tstidxnewphrase{way with words}{have a particular talent with words}
8496 \tstidxnewphrase{creative writing}{writing typically identified
8497 by narrative craft, character development and use of literary tropes}
8498 \tstidxnewphrase{cut to the chase}{get to the point}
8499 \tstidxnewphrase{get to the point}{state something directly}
8500 \tstidxnewphraseseealso{keep mum}{be silent about something}{confidential}
8501 \tstidxnewphrase{output routine}{\TeX's method of outputting a page}
8502 \tstidxnewphrase{out of whack}{out of order or not working}
8503 \tstidxnewphrase{page dimensions}{the dimensions of a page (such as
8504 the page width and page height)}
8505 \tstidxnewphrase{font family}{the name of a font}
8506 \tstidxnewphrase{font size}{the size of a font}
8507 \tstidxnewphraseseealso{location list}%
8508 {the list of locations used in an index to indicate where
8509 the term being referenced was used in the document}{crossreference}
8510 \tstidxnewphrasesee{range separator}{the symbol
8511 used between the start and end location to indicate a range}{locationlist}
8512 \tstidxnewphrase{page number}{the number identifying a
8513 particular page}
8514 \tstidxnewphrase{multiple encaps}{a warning issued by
8515 \glshyperlink{makeindex} when the same page number is indexed
8516 with different encap values}
8517 \tstidxnewphrase{input encoding}{the character encoding used
8518 in the document source code}
8519 \tstidxnewphrase{font encoding}{the encoding used by the document
8520 font}
8521 \tstidxnewphrase{extended Latin characters}{Latin characters outside
8522 the basic ASCII set}
8523 \tstidxnewphrase{cup of tea}{an expression indicating what one likes
8524 or is interested in}
8525 \tstidxnewphrase{whistle-stop tour}{a series of short visits to
8526 different places}
8527 \tstidxnewphrase{number group}{a group associated with numbers}
8528 \tstidxnewphrase{prime number}{a number that is only divisible by
8529 itself and 1}
8530 \tstidxnewphrase{hold my breath}{stop breathing temporarily, also
8531 used as an expression to indicate a state of anticipation or
8532 suspense}
8533 \tstidxnewphrase{letter groups}{groups associated with letters}
8534 \tstidxnewphrase{Once upon a time}{an expression commonly used at
8535 the start of fairy tales}
8536 \tstidxnewphrase{across the pond}{colloquial expression indicating
8537 the other side of the Atlantic}
8538 \tstidxnewphrase{bad form}{an offence against accepted behaviour}
8539 \tstidxnewphrase{Monty Python}{a British surreal comedy group}
8540 \tstidxnewphrase{magic incantation}{words used to create a magical
8541 effect}
8542 \tstidxnewphrase{common knowledge}{something widely known}
8543 \tstidxnewphrase{intrepid hero}{a hero known for his boldness
8544 and bravery}
8545 \tstidxnewphrase{sea lion}{a type of large seal}
8546 \tstidxnewphrase{sealant gun}{a device used for applying sealant}
8547 \tstidxnewphrase{zoot suit}{a suit typically having a long loose
8548 jacket and high-waisted trousers}
8549 \tstidxnewphrase{anonymous reviewer}{an unnamed reviewer}
8550 \tstidxnewphrase{yule log}{a large log traditionally burnt on
8551 Christmas Eve or a log-shaped chocolate cake}
8552 \tstidxnewphrase{vice-president}{a president's deputy}
8553 \tstidxnewphrase{vice admiral}{a high rank of naval officer}
8554 \tstidxnewphrase{Victoria plum}{a large, red, dessert plum}
8555 \tstidxnewphrase{Victoria sponge}{a sponge cake consisting of two
8556 layers with jam filling in between}
8557 \tstidxnewphrase{vice versa}{reversing the order of the items just
8558 mentioned}
8559 \tstidxnewphrase{vice chancellor}{a deputy chancellor of a
8560 British university in charge of its administration}
8561 \tstidxnewphrase{letter ordering}{ordering according to the
8562 individual characters}
8563 \tstidxnewphrase{word ordering}{ordering according to the
8564 language or locale's definition of words}
8565 \tstidxnewphrase{mot juste}{the most appropriate word}
8566 % \end{macrocode}
8567 %Phrases with extended Latin characters.
8568 % \begin{macrocode}
8569 \tstidxnewutfphrase{attachecase}{attach\'e case}{attaché case}%
8570 {small, flat briefcase for carrying documents}
8571 \tstidxnewutfphrase{piedaterre}{pied-\`a-terre}{pied-à-terre}%
8572 {small flat or house kept for occasional use}
8573 \tstidxnewutfphrase{bergerehat}{berg\`ere hat}{bergère hat}%
8574 {a type of wide-brimmed straw hat}
8575 % \end{macrocode}
8576 %Phrases starting with an article.
8577 % \begin{macrocode}
8578 \tstidxnewartphrase{the}{commercial world}{pertaining to commerce}
8579 \tstidxnewartphrase{a}{far away land}{somewhere that's far away; a
8580 term often used in fairy tales}
8581 \tstidxnewartphrase{the}{Golden Arara}{a made-up item in the dummy
8582 text}
8583 \tstidxnewartphrase{the}{Mighty Helm of Knuth}{a made-up item in the dummy
8584 text}
8585 \tstidxnewartphrase{the}{Legendary Sword}{a made-up item in the dummy
8586 text}
8587 \tstidxnewartphrase{the}{Bog of Eternal Glossaries}{a made-up place in the dummy
8588 text}
8589 \tstidxnewartphrase{the}{Dread Vale of the Editors}{a made-up place in the dummy
8590 text}
8591 \tstidxnewartphrase{the}{butterflies of chaos}{the butterfly effect
8592 is a popular method of describing aspects of chaos theory}
8593 \tstidxnewartphrase{The}{End}{denotes the end of a
8594 story, especially fairy tales}
8595 % \end{macrocode}
8596 %Sub-entries (terms).
8597 % \begin{macrocode}
8598 \tstidxnewsubword{sub-items}{lonely}{a sub-item that doesn't have
8599 any siblings}
8600 \tstidxnewsubword{document}{properties}{attributes such as page size}
8601 \tstidxnewsubword{font encoding}{OT1}{one of the original font
8602 encodings supplied with \TeX}
8603 \tstidxnewsubwordsee{hero}{intrepid}{a hero known for his boldness
8604 and bravery}{intrepidhero}
8605 % \end{macrocode}
8606 %Sub-entries (phrases).
8607 % \begin{macrocode}
8608 \tstidxnewsubphrase{location list}{page separator}%
8609 {symbol used to separate page references}
8610 \tstidxnewsubphrase{location list}{range separator}%
8611 {symbol used to mark page range references}
8612 % \end{macrocode}
8613 %People.
8614 % \begin{macrocode}
8615 \tstidxnewperson{James}{Joyce}{an author}
8616 \tstidxnewperson{Donald}{Knuth}{creator of \TeX}
8617 \tstidxnewperson{Paulo}{Cereda}{creator of \glshyperlink{arara}}
8618 \tstidxnewperson{Sir}{Quackalot}{fictitious character}
8619 \tstidxnewperson{the}{Fairy Goose}{fictitious character}
8620 \tstidxnewperson{David}{Carlisle}{member of the \LaTeX3 team}
8621 \tstidxnewperson{Joseph}{Wright}{member of the \LaTeX3 team}
8622 % \end{macrocode}
8623 %People (extended Latin characters).
8624 % \begin{macrocode}
8625 \tstidxnewutfperson{Anders Jonas}{\AA ngstr\"om}%
8626 [AndersJonasAngstrom]{Anders Jonas}{Ångström}%
8627 {Swedish physicist}
8628 % \end{macrocode}
8629 %Books.
8630 % \begin{macrocode}
8631 \tstidxnewbook{Ulysses}{a modernist novel by James Joyce}
8632 \tstidxnewbook{Sir Quackalot and the Golden Arara}{a fictitious book}
8633 \tstidxnewbook{Sir Quackalot and the Hyper Lake of Doom}{a fictitious book}
8634 \tstidxnewbook{Compact Oxford English Dictionary}{a dictionary}
8635 % \end{macrocode}
8636 %Books starting with an article.
8637 % \begin{macrocode}
8638 \tstidxnewartbook{The}{Hitchhiker's Guide to the Galaxy}{a comedy
8639 series by Douglas Adams, originally created for radio but later
8640 adapted to book, TV and film}
8641 \tstidxnewartbook{The}{Adventures of Sir Quackalot}{a fictitious book}
8642 % \end{macrocode}
8643 %Films.
8644 % \begin{macrocode}
8645 \tstidxnewfilm{Labyrinth}{a musical fantasy film}
8646 % \end{macrocode}
8647 %Films starting with an article.
8648 % \begin{macrocode}
8649 \tstidxnewartfilm{The}{Third Man}{a British film noir}
8650 % \end{macrocode}
8651 %Symbols.
8652 % \begin{macrocode}
8653 \tstidxnewsym{TeX}{\TeX}{a typesetting system created by Donald
8654 Knuth}
8655 % \end{macrocode}
8656 %Maths.
8657 % \begin{macrocode}
8658 \tstidxnewmath{f(x)}[fx]{f(\protect\vec{x})}{a function of $x$}
8659 \tstidxnewmath{n}{n}{an integer}
8660 \tstidxnewmath{E}{E}{energy}
8661 % \end{macrocode}
8662 %Maths symbols.
8663 % \begin{macrocode}
8664 \tstidxnewmathsym{alpha}{\protect\alpha}{Greek letter alpha}
8665 \tstidxnewmathsym{beta}{\protect\beta}{Greek letter beta}
8666 \tstidxnewmathsym{gamma}{\protect\gamma}{Greek letter gamma}
8667 \tstidxnewmathsym{sum}{\protect\sum}{summation}
8668 \tstidxnewmathsym{partial}{\protect\partial}{partial derivative}
8669 \tstidxnewmathsym{eth}[spinderiv]{\protect\eth}{spin-weighted partial derivative}
8670 % \end{macrocode}
8671 %Packages.
8672 % \begin{macrocode}
8673 \tstidxnewsty{testidx}{package that produces dummy text for testing
8674 index styles and indexing applications}
8675 \tstidxnewsty{testidx-glossaries}{package that produces dummy text
8676 for testing glossary styles and indexing applications that integrate
8677 with the \glshyperlink{glossariespackage} or
8678 \glshyperlink{glossariesextrapackage} packages}
8679 \tstidxnewsty{glossaries}{a package for creating glossaries or lists
8680 of terms, symbols or abbreviations}
8681 \tstidxnewsty{glossaries-extra}{an extension to the
8682 \glshyperlink{glossariespackage} package}
8683 \tstidxnewsty{hyperref}{a package that provides extensive support
8684 for hypertext}
8685 \tstidxnewsty{lipsum}{a package that generates dummy text}
8686 \tstidxnewsty{inputenc}{a package that can be used to identify the document encoding}
8687 \tstidxnewstyseealso{fontenc}{a package that can be used to set the font
8688 encoding}{inputencpackage}
8689 \tstidxnewsty{amsmath}{a package that provides AMS mathematical
8690 facilities}
8691 \tstidxnewsty{amssymb}{a package that provides mathematical
8692 symbols}
8693 \tstidxnewsty{longtable}{a package that allows tables to flow over
8694 page boundaries}
8695 \tstidxnewsty{makeidx}{a package that provides indexing
8696 facilities}
8697 \tstidxnewsty{imakeidx}{a sophisticated package that provides indexing
8698 facilities}
8699 % \end{macrocode}
8700 %Package options.
8701 % \begin{macrocode}
8702 \tstidxnewstyopt{testidx-glossaries}{extra}{load the
8703 \glshyperlink{glossariesextrapackage} package}
8704 \tstidxnewstyopt{testidx-glossaries}{noextra}{don't load the
8705 \glshyperlink{glossariesextrapackage} package (only load
8706 \glshyperlink{glossariespackage})}
8707 \tstidxnewstyopt{testidx-glossaries}{noseekey}{don't use the
8708 \tstidxqt{see} key to implement the cross-referencing (use
8709 \glshyperlink{cs.glssee} instead)}
8710 \tstidxnewstyopt{testidx-glossaries}{seekey}{use the
8711 \tstidxqt{see} key to implement the cross-referencing}
8712 \tstidxnewstyopt{testidx-glossaries}{xindy}{set up the
8713 \glshyperlink{glossariespackage} package to use \glshyperlink{xindy}
8714 as the indexing application}
8715 \tstidxnewstyopt{testidx-glossaries}{tex}{set up the
8716 \glshyperlink{glossariespackage} package to use \TeX\ to
8717 sort and collate the entries}
8718 \tstidxnewstyopt{testidx-glossaries}{bib2gls}{set up the
8719 \glshyperlink{glossariesextrapackage} package to use
8720 \glshyperlink{bib2gls} as the indexing application}
8721 \tstidxnewstyopt{testidx-glossaries}{noglsnumbers}{pass
8722 the \tstidxstyoptfmt{glsnumbers=false} option to the
8723 \glshyperlink{glossariespackage} package}
8724 \tstidxnewstyopt{testidx-glossaries}{glsnumbers}{pass
8725 the \tstidxstyoptfmt{glsnumbers=true} option to the
8726 \glshyperlink{glossariespackage} package}
8727 \tstidxnewstyopt{testidx-glossaries}{verbose}{write
8728 information about the test entries in the transcript file}
8729 \tstidxnewstyopt{testidx-glossaries}{noverbose}{don't write
8730 information about the test entries in the transcript file}
8731 \tstidxnewstyopt{testidx-glossaries}{desc}{add descriptions
8732 to the dummy entries}
8733 \tstidxnewstyopt{testidx-glossaries}{sanitize}{sanitize the sort value}
8734 \tstidxnewstyopt{testidx-glossaries}{nosanitize}{don't sanitize the
8735 sort value}
8736 \tstidxnewstyopt{testidxglossaries}{stripaccents}{in ASCII mode, strip accent
8737 commands from the sort value}
8738 \tstidxnewstyopt{testidxglossaries}{nostripaccents}{in ASCII mode, strip accent
8739 commands from the sort value}
8740 \tstidxnewstyopt{testidx}{hidemarks}{hide the marks showing
8741 where the indexing is occurring}
8742 \tstidxnewstyopt{testidx}{showmarks}{mark
8743 where the indexing is occurring}
8744 \tstidxnewstyopt{testidx}{notestencaps}{don't use the
8745 test encaps}
8746 \tstidxnewstyopt{testidx}{verbose}{show the index
8747 commands in the document text}
8748 \tstidxnewstyopt{testidx}{noverbose}{don't show the index
8749 commands in the document text}
8750 \tstidxnewstyopt{testidx}{digraphs}{use glyphs instead of
8751 the two-character digraphs for certain words}
8752 \tstidxnewstyopt{testidx}{german}{change the
8753 \glshyperlink{makeindex} quote character to allow the
8754 double-quote character to indicate an umlaut}
8755 \tstidxnewstyopt{testidx}{ngerman}{change the
8756 \glshyperlink{makeindex} quote character to allow the
8757 double-quote character to indicate an umlaut}
8758 \tstidxnewstyopt{testidx}{sanitize}{sanitize the sort value
8759 before passing it to the indexing command}
8760 \tstidxnewstyopt{testidx}{nosanitize}{don't sanitize the sort value
8761 before passing it to the indexing command}
8762 \tstidxnewstyopt{testidx}{stripaccents}{in ASCII mode, strip accent
8763 commands from the sort value}
8764 \tstidxnewstyopt{testidx}{nostripaccents}{in ASCII mode, strip accent
8765 commands from the sort value}
8766 \tstidxnewstyopt{testidx}{prefix}{insert a prefix before the sort
8767 value for certain symbols}
8768 \tstidxnewstyopt{testidx}{noprefix}{don't insert a prefix before the sort
8769 value for certain symbols}
8770 \tstidxnewstyopt{hyperref}{hidelinks}{don't use a visual effect to
8771 show the hyperlinks}
8772 \tstidxnewstyopt{fontenc}{T1}{set the font encoding to T1}
8773 % \end{macrocode}
8774 %Environments.
8775 % \begin{macrocode}
8776 \tstidxnewenv{theindex}{environment used to display an index}
8777 \tstidxnewenv{align}{environment provided by the
8778 \glshyperlink{amsmathpackage} package to align equations}
8779 \tstidxnewenv{eqnarray}{environment provided by the \LaTeX\
8780 kernel to align equations}
8781 % \end{macrocode}
8782 %Applications.
8783 % \begin{macrocode}
8784 \tstidxnewapp{bib2gls}{an indexing application designed
8785 to work with the \glshyperlink{glossariesextrapackage} package}
8786 \tstidxnewapp{makeindex}{an indexing application}
8787 \tstidxnewapp{xindy}{a highly-configurable indexing application with
8788 localisation support}
8789 \tstidxnewapp{texdoc}{an application for viewing documentation
8790 installed in a \TeX\ distribution}
8791 \tstidxnewapp{arara}{an automation tool for building documents}
8792 \tstidxnewapp{Perl}{a scripting language}
8793 \tstidxnewapp{makeglossaries}{a Perl script provided with the
8794 \glshyperlink{glossariespackage} package that automatically runs
8795 either \glshyperlink{makeindex} or \glshyperlink{xindy}
8796 according to the document settings}
8797 \tstidxnewapp{makeglossaries-lite}{a light-weight Lua alternative to
8798 \glshyperlink{makeglossaries}}
8799 \tstidxnewapp{Emacs}{a text editor}
8800 \tstidxnewapp{Vi}{a text editor}
8801 % \end{macrocode}
8802 %Application options.
8803 % \begin{macrocode}
8804 \tstidxnewappopt{xindy}{-L swedish}{use the Swedish language module}
8805 \tstidxnewappopt{xindy}{-L danish}{use the Danish language module}
8806 \tstidxnewappopt{xindy}{-L polish}{use the Polish language module}
8807 \tstidxnewappopt{xindy}{-L icelandic}{use the Icelandic language module}
8808 \tstidxnewappopt{xindy}{-L german-duden}{use the German language
8809 module with the duden setting}
8810 \tstidxnewappopt{xindy}{-L german-din5007}{use the German language
8811 module with the din5007 setting}
8812 \tstidxnewappopt{xindy}{-M ord/letorder}{use the letter ordering
8813 module}
8814 \tstidxnewappopt{makeindex}{-g}{use the German setting that
8815 recognises the double-quote character as an umlaut command}
8816 \tstidxnewappopt{makeindex}{-l}{use letter ordering}
8817 % \end{macrocode}
8818 %Index markers.
8819 % \begin{macrocode}
8820 \tstidxnewindexmarker{tstidxmarker}{indicates where the indexing
8821 command was used for a top-level (level~0) entry}
8822 \tstidxnewindexmarker{tstidxsubmarker}{indicates where the indexing
8823 command was used for a level~1 entry}
8824 \tstidxnewindexmarker{tstidxsubsubmarker}{indicates where the indexing
8825 command was used for a level~2 entry}
8826 \tstidxnewindexmarker{tstidxopenmarker}{indicates where
8827 the start of a range was indexed for a top-level (level~0) entry}
8828 \tstidxnewindexmarker{tstidxclosemarker}{indicates where
8829 the end of a range was indexed for a top-level (level~0) entry}
8830 \tstidxnewindexmarker{tstidxopensubmarker}{indicates where
8831 the start of a range was indexed for a level~1 entry}
8832 \tstidxnewindexmarker{tstidxclosesubmarker}{indicates where
8833 the end of a range was indexed for a level~1 entry}
8834 \tstidxnewindexmarker{tstidxopensubsubmarker}{indicates where
8835 the start of a range was indexed for a level~2 entry}
8836 \tstidxnewindexmarker{tstidxclosesubsubmarker}{indicates where
8837 the end of a range was indexed for a level~2 entry}
8838 \tstidxnewindexmarker{tstidxseemarker}{indicates where the indexing
8839 command was used to cross-reference a top-level (level~0) entry}
8840 \tstidxnewindexmarker{tstidxsubseemarker}{indicates where the indexing
8841 command was used to cross-reference a level~1 entry}
8842 % \end{macrocode}
8843 %Encaps.
8844 % \begin{macrocode}
8845 \tstidxnewencapcsn{tstidxencapi}{first test encap}
8846 \tstidxnewencapcsn{tstidxencapii}{second test encap}
8847 \tstidxnewencapcsn{tstidxencapiii}{third test encap}
8848 % \end{macrocode}
8849 %Control sequences.
8850 % \begin{macrocode}
8851 \tstidxnewcs{index}{write information to the external index file
8852 that will be processed by an indexing application (defined by the
8853 \LaTeX\ kernel)}
8854
8855 \tstidxnewcs{testidx}{produce the dummy text (defined in the
8856 \glshyperlink{testidxpackage} package)}
8857
8858 \tstidxnewcs{tstidxtoidx}{switch back to the original definitions
8859 provided by the base \glshyperlink{testidxpackage} package (defined
8860 in the \glshyperlink{testidxglossariespackage} package)}
8861
8862 \tstidxnewcs{gls}{reference a term defined by the
8863 \glshyperlink{glossariespackage} package (displays text and performs
8864 indexing)}
8865
8866 \tstidxnewcs{glspl}{as \glshyperlink{cs.gls} but displays the
8867 plural form}
8868
8869 \tstidxnewcs{glsadd}{indexes a term defined by the
8870 \glshyperlink{glossariespackage} package (but doesn't display any text)}
8871
8872 \tstidxnewcs{glssee}{indexes a cross-referenced term or terms defined by the
8873 \glshyperlink{glossariespackage} package (but doesn't display any text)}
8874
8875 \tstidxnewcs{glsxtrindexseealso}{indexes a \tstidxqt{see also}
8876 cross-referenced term or terms defined by the
8877 \glshyperlink{glossariesextrapackage} package (but doesn't display any text)}
8878
8879 \tstidxnewcs{glshyperlink}{displays the text associated with a
8880 term (with a hyperlink if enabled) but doesn't perform
8881 any indexing (defined by the \glshyperlink{glossariespackage} package)}
8882
8883 \tstidxnewcs{setglossarystyle}{sets the glossary style
8884 (defined by the \glshyperlink{glossariespackage} package)}
8885
8886 \tstidxnewcs{delimN}{page delimiter used in location lists
8887 (defined by the \glshyperlink{glossariespackage} package)}
8888
8889 \tstidxnewcs{delimR}{page range delimiter used in location lists
8890 (defined by the \glshyperlink{glossariespackage} package)}
8891
8892 \tstidxnewcs{tstidxfootnote}{produces a footnote
8893 (defined by the \glshyperlink{testidxpackage} package)}
8894
8895 \tstidxnewcs{footnote}{produces a footnote
8896 (defined by the \LaTeX\ kernel)}
8897
8898 \tstidxnewcs{tstidxtext}{used to mark the sample text being indexed
8899 (defined by the \glshyperlink{testidxpackage} package)}
8900
8901 \tstidxnewcs{textcolor}{displays the given text in the given colour
8902 (a colour package is required to enable this command)}
8903
8904 \tstidxnewcs{glstreenamefmt}{used to set the font for
8905 the name field in the tree-like glossary styles}
8906
8907 \tstidxnewcs{tstindex}{used to index the sample text
8908 for the base \glshyperlink{testidxpackage} package (not for the
8909 \glshyperlink{testidxglossariespackage} package)}
8910
8911 \tstidxnewcs{GlsAddXdyAttribute}{adds a \glshyperlink{xindy}
8912 attribute (provided by the \glshyperlink{glossariespackage} package)}
8913
8914 \tstidxnewcs{IeC}{used internally by the
8915 \glshyperlink{inputencpackage}
8916 package}
8917
8918 \tstidxnewcs{tstidxindexmarkerprefix}{prefix used in the
8919 sort key for markers if the \tstidxstyoptfmt{prefix}
8920 option is used (but not with the \tstidxstyoptfmt{bib2gls}
8921 option)}
8922
8923 \tstidxnewcs{tstidxindexmathsymprefix}{prefix used in the
8924 sort key for mathematical symbols if the \tstidxstyoptfmt{prefix}
8925 option is used (but not with the \tstidxstyoptfmt{bib2gls}
8926 option)}
8927
8928 \tstidxnewcs{tstidxmakegloss}{command used to load
8929 the files containing the sample glossary definitions
8930 and also use the appropriate command to initialise the indexing,
8931 depending on the package options}
8932 % \end{macrocode}
8933 %Numbers.
8934 % \begin{macrocode}
8935 \tstidxnewnumber{42}{forty-two}
8936 \tstidxnewnumber{10}{ten}
8937 \tstidxnewnumber{16}{sixteen}
8938 \tstidxnewnumber{2}{two}
8939 \tstidxnewnumber{100}{one hundred}
8940 % \end{macrocode}
8941 %\iffalse
8942 % \begin{macrocode}
8943 %</testidx-glossaries-samples.tex>
8944 % \end{macrocode}
8945 %\fi
8946 %\iffalse
8947 % \begin{macrocode}
8948 %<*testidx-glossaries-diglyphs-utf8.bib>
8949 % \end{macrocode}
8950 %\fi
8951 % \begin{macrocode}
8952 %<<COMMENT
8953 % Encoding: UTF-8
8954 %COMMENT
8955
8956 @index{ll,
8957 name={ỻ},
8958 category={digraph},
8959 description={a \glshyperlink{digraph} used in
8960 a number of languages. In Welsh, LL is considered a separate letter
8961 from L and may be rendered as the ligature Ỻ}
8962 }
8963
8964 @index{ij,
8965 name={ij},
8966 category={digraph},
8967 description={a \glshyperlink{digraph} used in Dutch that's sometimes considered
8968 a separate letter from I and may be rendered as the ligature IJ}
8969 }
8970
8971 @index{dz,
8972 name={dz},
8973 category={digraph},
8974 description={a \glshyperlink{digraph} used in
8975 a number of languages. In Hungarian, Dz is considered a separate letter
8976 from D and may be rendered as the ligature Dz}
8977 }
8978
8979 @index{llan,
8980 name={ỻan},
8981 category={word},
8982 description={commonly used placename element in Brittonic
8983 languages (such as Welsh) typically indicating parish church}
8984 }
8985
8986 @index{llama,
8987 name={ỻama},
8988 category={word},
8989 description={domesticate animal found in the Andes}
8990 }
8991
8992 @index{lijnbus,
8993 name={lijnbus},
8994 category={word},
8995 description={bus (Dutch)}
8996 }
8997
8998 @index{ijsvrij,
8999 name={ijsvrij},
9000 category={word},
9001 description={frost (Dutch)}
9002 }
9003
9004 @index{dzwon,
9005 name={dzwon},
9006 category={word},
9007 description={bell (Polish)}
9008 }
9009
9010 @index{dzeta,
9011 name={dzéta},
9012 category={word},
9013 description={the Greek letter zeta (Hungarian)}
9014 }
9015 % \end{macrocode}
9016 %\iffalse
9017 % \begin{macrocode}
9018 %</testidx-glossaries-diglyphs-utf8.bib>
9019 % \end{macrocode}
9020 %\fi
9021 %\iffalse
9022 % \begin{macrocode}
9023 %<*testidx-glossaries-markers.bib>
9024 % \end{macrocode}
9025 %\fi
9026 % \begin{macrocode}
9027 %<<COMMENT
9028 % Encoding: ASCII
9029 %COMMENT
9030
9031 @symbol{tstidxmarker,
9032 name={\protect\tstidxmarker\space(\protect\tstidxcsfmt{tstidxmarker})},
9033 category={indexmarker},
9034 description={indicates where the indexing command was used for a
9035 top-level (level~0) entry}
9036 }
9037
9038 @symbol{tstidxsubmarker,
9039 name={\protect\tstidxsubmarker\space(\protect\tstidxcsfmt{tstidxsubmarker})},
9040 category={indexmarker},
9041 description={indicates where the indexing
9042 command was used for a level~1 entry}
9043 }
9044
9045 @symbol{tstidxsubsubmarker,
9046 name={\protect\tstidxsubsubmarker\space(\protect\tstidxcsfmt{tstidxsubsubmarker})},
9047 category={indexmarker},
9048 description={indicates where the indexing
9049 command was used for a level~2 entry}
9050 }
9051
9052 @symbol{tstidxopenmarker,
9053 name={\protect\tstidxopenmarker\space(\protect\tstidxcsfmt{tstidxopenmarker})},
9054 category={indexmarker},
9055 description={indicates where
9056 the start of a range was indexed for a top-level (level~0) entry}
9057 }
9058
9059 @symbol{tstidxclosemarker,
9060 name={\protect\tstidxclosemarker\space(\protect\tstidxcsfmt{tstidxclosemarker})},
9061 category={indexmarker},
9062 description={indicates where
9063 the end of a range was indexed for a top-level (level~0) entry}
9064 }
9065
9066 @symbol{tstidxopensubmarker,
9067 name={\protect\tstidxopensubmarker\space(\protect\tstidxcsfmt{tstidxopensubmarker})},
9068 category={indexmarker},
9069 description={indicates where
9070 the start of a range was indexed for a level~1 entry}
9071 }
9072
9073 @symbol{tstidxclosesubmarker,
9074 name={\protect\tstidxclosesubmarker\space(\protect\tstidxcsfmt{tstidxclosesubmarker})},
9075 category={indexmarker},
9076 description={indicates where
9077 the end of a range was indexed for a level~1 entry}
9078 }
9079
9080 @symbol{tstidxopensubsubmarker,
9081 name={\protect\tstidxopensubsubmarker\space(\protect\tstidxcsfmt{tstidxopensubsubmarker})},
9082 category={indexmarker},
9083 description={indicates where
9084 the start of a range was indexed for a level~2 entry}
9085 }
9086
9087 @symbol{tstidxclosesubsubmarker,
9088 name={\protect\tstidxclosesubsubmarker\space(\protect\tstidxcsfmt{tstidxclosesubsubmarker})},
9089 category={indexmarker},
9090 description={indicates where
9091 the end of a range was indexed for a level~2 entry}
9092 }
9093
9094 @symbol{tstidxseemarker,
9095 name={\protect\tstidxseemarker\space(\protect\tstidxcsfmt{tstidxseemarker})},
9096 category={indexmarker},
9097 description={indicates where the indexing
9098 command was used to cross-reference a top-level (level~0) entry}
9099 }
9100
9101 @symbol{tstidxsubseemarker,
9102 name={\protect\tstidxsubseemarker\space(\protect\tstidxcsfmt{tstidxsubseemarker})},
9103 category={indexmarker},
9104 description={indicates where the indexing
9105 command was used to cross-reference a level~1 entry}
9106 }
9107
9108
9109 % \end{macrocode}
9110 %\iffalse
9111 % \begin{macrocode}
9112 %</testidx-glossaries-markers.bib>
9113 % \end{macrocode}
9114 %\fi
9115 %\iffalse
9116 % \begin{macrocode}
9117 %<*testidx-glossaries-mathsym.bib>
9118 % \end{macrocode}
9119 %\fi
9120 % \begin{macrocode}
9121 %<<COMMENT
9122 % Encoding: ASCII
9123 %COMMENT
9124
9125 @symbol{alpha,
9126 name={$\alpha$},
9127 text={\alpha},
9128 category={mathsymbol},
9129 description={Greek letter alpha}
9130 }
9131
9132 @symbol{beta,
9133 name={$\beta$},
9134 text={\beta},
9135 category={mathsymbol},
9136 description={Greek letter beta}
9137 }
9138
9139 @symbol{gamma,
9140 name={$\gamma$},
9141 text={\gamma},
9142 category={mathsymbol},
9143 description={Greek letter gamma}
9144 }
9145
9146 @symbol{sum,
9147 name={$\sum$},
9148 text={\sum},
9149 category={mathsymbol},
9150 description={summation}
9151 }
9152
9153 @symbol{partial,
9154 name={$\partial$},
9155 text={\partial},
9156 category={mathsymbol},
9157 description={partial derivative}
9158 }
9159
9160 @symbol{spinderiv,
9161 name={$\eth$},
9162 text={\eth},
9163 category={mathsymbol},
9164 description={spin-weighted partial derivative}
9165 }
9166
9167 % \end{macrocode}
9168 %\iffalse
9169 % \begin{macrocode}
9170 %</testidx-glossaries-mathsym.bib>
9171 % \end{macrocode}
9172 %\fi
9173 %\iffalse
9174 % \begin{macrocode}
9175 %<*testidx-glossaries-nodiglyphs-utf8.bib>
9176 % \end{macrocode}
9177 %\fi
9178 % \begin{macrocode}
9179 %<<COMMENT
9180 % Encoding: UTF-8
9181 %COMMENT
9182
9183 @index{ll,
9184 name={ll},
9185 category={digraph},
9186 description={a \glshyperlink{digraph} used in
9187 a number of languages. In Welsh, LL is considered a separate letter
9188 from L and may be rendered as a ligature}
9189 }
9190
9191 @index{ij,
9192 name={ij},
9193 category={digraph},
9194 description={a \glshyperlink{digraph} used in Dutch that's sometimes considered
9195 a separate letter from I and may be rendered as a ligature}
9196 }
9197
9198 @index{dz,
9199 name={dz},
9200 category={digraph},
9201 description={a \glshyperlink{digraph} used in
9202 a number of languages. In Hungarian, Dz is considered a separate
9203 letter
9204 from D and may be rendered as a ligature}
9205 }
9206
9207 @index{llan,
9208 name={llan},
9209 category={word},
9210 description={commonly used placename element in Brittonic
9211 languages (such as Welsh) typically indicating parish church}
9212 }
9213
9214 @index{llama,
9215 name={llama},
9216 category={word},
9217 description={domesticate animal found in the Andes}
9218 }
9219
9220 @index{lijnbus,
9221 name={lijnbus},
9222 category={word},
9223 description={bus (Dutch)}
9224 }
9225
9226 @index{ijsvrij,
9227 name={ijsvrij},
9228 category={word},
9229 description={frost (Dutch)}
9230 }
9231
9232 @index{dzwon,
9233 name={dzwon},
9234 category={word},
9235 description={bell (Polish)}
9236 }
9237
9238 @index{dzeta,
9239 name={dzéta},
9240 category={word},
9241 description={the Greek letter zeta (Hungarian)}
9242 }
9243
9244 % \end{macrocode}
9245 %\iffalse
9246 % \begin{macrocode}
9247 %</testidx-glossaries-nodiglyphs-utf8.bib>
9248 % \end{macrocode}
9249 %\fi
9250 %\iffalse
9251 % \begin{macrocode}
9252 %<*testidx-glossaries-nodiglyphs.bib>
9253 % \end{macrocode}
9254 %\fi
9255 % \begin{macrocode}
9256 %<<COMMENT
9257 % Encoding: ASCII
9258 %COMMENT
9259
9260 @index{ll,
9261 name={ll},
9262 category={digraph},
9263 description={a \glshyperlink{digraph} used in
9264 a number of languages. In Welsh, LL is considered a separate letter
9265 from L and may be rendered as a ligature}
9266 }
9267
9268 @index{ij,
9269 name={ij},
9270 category={digraph},
9271 description={a \glshyperlink{digraph} used in Dutch that's sometimes considered
9272 a separate letter from I and may be rendered as a ligature}
9273 }
9274
9275 @index{dz,
9276 name={dz},
9277 category={digraph},
9278 description={a \glshyperlink{digraph} used in
9279 a number of languages. In Hungarian, Dz is considered a separate
9280 letter
9281 from D and may be rendered as a ligature}
9282 }
9283
9284 @index{llan,
9285 name={llan},
9286 category={word},
9287 description={commonly used placename element in Brittonic
9288 languages (such as Welsh) typically indicating parish church}
9289 }
9290
9291 @index{llama,
9292 name={llama},
9293 category={word},
9294 description={domesticate animal found in the Andes}
9295 }
9296
9297 @index{lijnbus,
9298 name={lijnbus},
9299 category={word},
9300 description={bus (Dutch)}
9301 }
9302
9303 @index{ijsvrij,
9304 name={ijsvrij},
9305 category={word},
9306 description={frost (Dutch)}
9307 }
9308
9309 @index{dzwon,
9310 name={dzwon},
9311 category={word},
9312 description={bell (Polish)}
9313 }
9314
9315 @index{dzeta,
9316 name={dz\'eta},
9317 category={word},
9318 description={the Greek letter zeta (Hungarian)}
9319 }
9320
9321
9322 % \end{macrocode}
9323 %\iffalse
9324 % \begin{macrocode}
9325 %</testidx-glossaries-nodiglyphs.bib>
9326 % \end{macrocode}
9327 %\fi
9328 %\iffalse
9329 % \begin{macrocode}
9330 %<*testidx-glossaries-numbers.bib>
9331 % \end{macrocode}
9332 %\fi
9333 % \begin{macrocode}
9334 %<<COMMENT
9335 % Encoding: ASCII
9336 %COMMENT
9337
9338 @number{42,
9339 name={42},
9340 category={number},
9341 description={forty-two}
9342 }
9343
9344 @number{10,
9345 name={10},
9346 category={number},
9347 description={ten}
9348 }
9349
9350 @number{16,
9351 name={16},
9352 category={number},
9353 description={sixteen}
9354 }
9355
9356 @number{2,
9357 name={2},
9358 category={number},
9359 description={two}
9360 }
9361
9362 @number{100,
9363 name={100},
9364 category={number},
9365 description={one hundred}
9366 }
9367
9368
9369 % \end{macrocode}
9370 %\iffalse
9371 % \begin{macrocode}
9372 %</testidx-glossaries-numbers.bib>
9373 % \end{macrocode}
9374 %\fi
9375 %\iffalse
9376 % \begin{macrocode}
9377 %<*testidx-glossaries-samples-ascii.bib>
9378 % \end{macrocode}
9379 %\fi
9380 % \begin{macrocode}
9381 %<<COMMENT
9382 % Encoding: ASCII
9383 %COMMENT
9384
9385 @index{dzsoker,
9386 name={dzs\'oker},
9387 category={word},
9388 description={joker (Hungarian)}
9389 }
9390
9391 @index{czesc,
9392 name={cze\'s\'c},
9393 category={word},
9394 description={hello (Polish)}
9395 }
9396
9397 @index{elite,
9398 name={{\'e}lite},
9399 category={word},
9400 description={group of people regarded as
9401 the best of a particular society or organisation}
9402 }
9403
9404 @index{aesthetic,
9405 name={\ae sthetic},
9406 category={word},
9407 description={concerning beauty}
9408 }
9409
9410 @index{oesophagus,
9411 name={\oe sophagus},
9412 category={word},
9413 description={part of the alimentary canal}
9414 }
9415
9416 @index{blase,
9417 name={blas\'e},
9418 category={word},
9419 description={unimpressed or indifferent due to familiarity}
9420 }
9421
9422 @index{protege,
9423 name={prot\'eg\'e},
9424 category={word},
9425 description={person guided by an older more experienced person}
9426 }
9427
9428 @index{clientele,
9429 name={client\`ele},
9430 category={word},
9431 description={all the clients of a particular business}
9432 }
9433
9434 @index{resumee,
9435 name={r\'esum\'e},
9436 category={word},
9437 description={summary of something or curriculum vitae}
9438 }
9439
9440 @index{soiree,
9441 name={soir\'ee},
9442 category={word},
9443 description={an evening social gathering involving conversation or music}
9444 }
9445
9446 @index{phoenix,
9447 name={ph\oe nix},
9448 category={word},
9449 description={mythical bird that periodically burned itself and was reborn from the ashes}
9450 }
9451
9452 @index{decor,
9453 name={d\'ecor},
9454 category={word},
9455 description={the furnishings and decorations of a room}
9456 }
9457
9458 @index{faerie,
9459 name={f\ae rie},
9460 category={word},
9461 description={fairyland}
9462 }
9463
9464 @index{facade,
9465 name={fa\c{c}ade},
9466 category={word},
9467 description={the front face of a building}
9468 }
9469
9470 @index{aethereal,
9471 name={\ae thereal},
9472 category={word},
9473 description={light, airy or tenuous}
9474 }
9475
9476 @index{debutante,
9477 name={d\'ebutante},
9478 category={word},
9479 description={a young upper-class woman making her first appearance in society}
9480 }
9481
9482 @index{naive,
9483 name={na\"{\i}ve},
9484 category={word},
9485 description={lacking experience or wisdom}
9486 }
9487
9488 @index{foetid,
9489 name={f\oe tid},
9490 category={word},
9491 description={smelling very unpleasant}
9492 }
9493
9494 @index{cliche,
9495 name={clich\'e},
9496 category={word},
9497 description={overused phrase or idea}
9498 }
9499
9500 @index{deshabille,
9501 name={d\'eshabill\'e},
9502 category={word},
9503 description={the state of being only partially clothed}
9504 }
9505
9506 @index{negligee,
9507 name={n\'eglig\'ee},
9508 category={word},
9509 description={a woman's very thin dressing gown}
9510 }
9511
9512 @index{cafe,
9513 name={caf\'e},
9514 category={word},
9515 description={small restaurant that sells light meals}
9516 }
9517
9518 @index{anaemic,
9519 name={an\ae mic},
9520 category={word},
9521 description={suffering from anaemia}
9522 }
9523
9524 @index{thornletter,
9525 name={\th},
9526 category={word},
9527 see={thorn},
9528 description={thorn}
9529 }
9530
9531 @index{thorn,
9532 name={thorn (\th)},
9533 category={word},
9534 description={Old English and Icelandic runic letter. In English, eventually replaced by the
9535 digraph \tstidxqt{th}}
9536 }
9537
9538 @index{ethletter,
9539 name={\dh},
9540 category={word},
9541 see={ethletter},
9542 description={eth}
9543 }
9544
9545 @index{eth,
9546 name={eth (\dh)},
9547 category={word},
9548 description={Old English letter eventually
9549 superseded by the digraph \tstidxqt{th}, but still in use in
9550 some other languages}
9551 }
9552
9553 @index{Ostergotland,
9554 name={{\"O}sterg\"otland},
9555 category={place},
9556 description={a county in Sweden}
9557 }
9558
9559 @index{places.Ostergotland,
9560 name={{\"O}sterg\"otland},
9561 parent={places},
9562 category={place},
9563 description={a county in Sweden}
9564 }
9565
9566 @index{Angelholm,
9567 name={{\"A}ngelholm},
9568 category={place},
9569 description={a place in Sweden}
9570 }
9571
9572 @index{places.Angelholm,
9573 name={{\"A}ngelholm},
9574 parent={places},
9575 category={place},
9576 description={a place in Sweden}
9577 }
9578
9579 @index{Oresund,
9580 name={\O resund},
9581 category={place},
9582 description={a strait which separates Denmark and Sweden}
9583 }
9584
9585 @index{places.Oresund,
9586 name={\O resund},
9587 parent={places},
9588 category={place},
9589 description={a strait which separates Denmark and Sweden}
9590 }
9591
9592 @index{Tarnby,
9593 name={T\r{a}rnby},
9594 category={place},
9595 description={a town in Denmark}
9596 }
9597
9598 @index{places.Tarnby,
9599 name={T\r{a}rnby},
9600 parent={places},
9601 category={place},
9602 description={a town in Denmark}
9603 }
9604
9605 @index{Rodovre,
9606 name={R\o dovre},
9607 category={place},
9608 description={a Danish town}
9609 }
9610
9611 @index{places.Rodovre,
9612 name={R\o dovre},
9613 parent={places},
9614 category={place},
9615 description={a Danish town}
9616 }
9617
9618 @index{Naestved,
9619 name={N\ae stved},
9620 category={place},
9621 description={a Danish town on the island of Zealand}
9622 }
9623
9624 @index{places.Naestved,
9625 name={N\ae stved},
9626 parent={places},
9627 category={place},
9628 description={a Danish town on the island of Zealand}
9629 }
9630
9631 @index{OlstykkeStenlose,
9632 name={\O lstykke-Stenl\o se},
9633 category={place},
9634 description={a Danish city in North Zealand}
9635 }
9636
9637 @index{places.OlstykkeStenlose,
9638 name={\O lstykke-Stenl\o se},
9639 parent={places},
9640 category={place},
9641 description={a Danish city in North Zealand}
9642 }
9643
9644 @index{Asslar,
9645 name={A\ss lar},
9646 category={place},
9647 description={German town}
9648 }
9649
9650 @index{places.Asslar,
9651 name={A\ss lar},
9652 parent={places},
9653 category={place},
9654 description={German town}
9655 }
9656
9657 @index{BadGottleubaBerggiesshubel,
9658 name={Bad Gottleuba-Berggie\ss h\"ubel},
9659 category={place},
9660 description={a town in the Free State of Saxony, Germany}
9661 }
9662
9663 @index{places.BadGottleubaBerggiesshubel,
9664 name={Bad Gottleuba-Berggie\ss h\"ubel},
9665 parent={places},
9666 category={place},
9667 description={a town in the Free State of Saxony, Germany}
9668 }
9669
9670 @index{Lodz,
9671 name={\L\'od\'z},
9672 category={place},
9673 description={Polish city}
9674 }
9675
9676 @index{places.Lodz,
9677 name={\L\'od\'z},
9678 parent={places},
9679 category={place},
9680 description={Polish city}
9681 }
9682
9683 @index{Swietokrzyskie,
9684 name={{\'S}wi\k{e}tokrzyskie},
9685 category={place},
9686 description={Polish province}
9687 }
9688
9689 @index{places.Swietokrzyskie,
9690 name={{\'S}wi\k{e}tokrzyskie},
9691 parent={places},
9692 category={place},
9693 description={Polish province}
9694 }
9695
9696 @index{Zory,
9697 name={{\.Z}ory},
9698 category={place},
9699 description={Polish town and city county}
9700 }
9701
9702 @index{places.Zory,
9703 name={{\.Z}ory},
9704 parent={places},
9705 category={place},
9706 description={Polish town and city county}
9707 }
9708
9709 @index{Zelechow,
9710 name={{\.Z}elech\'ow},
9711 category={place},
9712 description={Polish town}
9713 }
9714
9715 @index{places.Zelechow,
9716 name={{\.Z}elech\'ow},
9717 parent={places},
9718 category={place},
9719 description={Polish town}
9720 }
9721
9722 @index{Lobez,
9723 name={\L obez},
9724 category={place},
9725 description={Polish town}
9726 }
9727
9728 @index{places.Lobez,
9729 name={\L obez},
9730 parent={places},
9731 category={place},
9732 description={Polish town}
9733 }
9734
9735 @index{Glogow,
9736 name={G\l og\'ow},
9737 category={place},
9738 description={Polish town}
9739 }
9740
9741 @index{places.Glogow,
9742 name={G\l og\'ow},
9743 parent={places},
9744 category={place},
9745 description={Polish town}
9746 }
9747
9748 @index{Cmielow,
9749 name={{\'C}miel\'ow},
9750 category={place},
9751 description={Polish town}
9752 }
9753
9754 @index{places.Cmielow,
9755 name={{\'C}miel\'ow},
9756 parent={places},
9757 category={place},
9758 description={Polish town}
9759 }
9760
9761 @index{Scinawa,
9762 name={{\'S}cinawa},
9763 category={place},
9764 description={Polish town}
9765 }
9766
9767 @index{places.Scinawa,
9768 name={{\'S}cinawa},
9769 parent={places},
9770 category={place},
9771 description={Polish town}
9772 }
9773
9774 @index{Swidnica,
9775 name={{\'S}widnica},
9776 category={place},
9777 description={Polish town}
9778 }
9779
9780 @index{places.Swidnica,
9781 name={{\'S}widnica},
9782 parent={places},
9783 category={place},
9784 description={Polish town}
9785 }
9786
9787 @index{Olvesvatn,
9788 name={{\"O}lvesvatn},
9789 category={place},
9790 description={Icelandic lake}
9791 }
9792
9793 @index{places.Olvesvatn,
9794 name={{\"O}lvesvatn},
9795 parent={places},
9796 category={place},
9797 description={Icelandic lake}
9798 }
9799
9800 @index{Ulfsvatn,
9801 name={{\'U}lfsvatn},
9802 category={place},
9803 description={Icelandic lake}
9804 }
9805
9806 @index{places.Ulfsvatn,
9807 name={{\'U}lfsvatn},
9808 parent={places},
9809 category={place},
9810 description={Icelandic lake}
9811 }
9812
9813 @index{Anavatn,
9814 name={{\'A}navatn},
9815 category={place},
9816 description={Icelandic lake}
9817 }
9818
9819 @index{places.Anavatn,
9820 name={{\'A}navatn},
9821 parent={places},
9822 category={place},
9823 description={Icelandic lake}
9824 }
9825
9826 @index{Masvatn,
9827 name={M\'asvatn},
9828 category={place},
9829 description={Icelandic lake}
9830 }
9831
9832 @index{places.Masvatn,
9833 name={M\'asvatn},
9834 parent={places},
9835 category={place},
9836 description={Icelandic lake}
9837 }
9838
9839 @index{Thrihyrningsvatn,
9840 name={\TH r\'{\i}hyrningsvatn},
9841 category={place},
9842 description={Icelandic lake}
9843 }
9844
9845 @index{places.Thrihyrningsvatn,
9846 name={\TH r\'{\i}hyrningsvatn},
9847 parent={places},
9848 category={place},
9849 description={Icelandic lake}
9850 }
9851
9852 @index{Sigridharstadhavatn,
9853 name={Sigr\'{\i}\dh arsta\dh avatn},
9854 category={place},
9855 description={Icelandic lagoon}
9856 }
9857
9858 @index{places.Sigridharstadhavatn,
9859 name={Sigr\'{\i}\dh arsta\dh avatn},
9860 parent={places},
9861 category={place},
9862 description={Icelandic lagoon}
9863 }
9864
9865 @index{Graenavatn,
9866 name={Gr\ae navatn},
9867 category={place},
9868 description={Icelandic lake}
9869 }
9870
9871 @index{places.Graenavatn,
9872 name={Gr\ae navatn},
9873 parent={places},
9874 category={place},
9875 description={Icelandic lake}
9876 }
9877
9878 @index{Arneslon,
9879 name={{\'A}rnesl\'on},
9880 category={place},
9881 description={Icelandic lake}
9882 }
9883
9884 @index{places.Arneslon,
9885 name={{\'A}rnesl\'on},
9886 parent={places},
9887 category={place},
9888 description={Icelandic lake}
9889 }
9890
9891 @index{Isholsvatn,
9892 name={{\'I}sh\'olsvatn},
9893 category={place},
9894 description={Icelandic lake}
9895 }
9896
9897 @index{places.Isholsvatn,
9898 name={{\'I}sh\'olsvatn},
9899 parent={places},
9900 category={place},
9901 description={Icelandic lake}
9902 }
9903
9904 @index{attachecase,
9905 name={attach\'e case},
9906 category={phrase},
9907 description={small, flat briefcase for carrying documents}
9908 }
9909
9910 @index{piedaterre,
9911 name={pied-\`a-terre},
9912 category={phrase},
9913 description={small flat or house kept for occasional use}
9914 }
9915
9916 @index{bergerehat,
9917 name={berg\`ere hat},
9918 category={phrase},
9919 description={a type of wide-brimmed straw hat}
9920 }
9921
9922 @index{AndersJonasAngstrom,
9923 name={\AA ngstr\"om, Anders Jonas},
9924 text={Anders Jonas \AA ngstr\"om},
9925 category={person},
9926 description={Swedish physicist}
9927 }
9928
9929 @index{people.AndersJonasAngstrom,
9930 name={\AA ngstr\"om, Anders Jonas},
9931 text={Anders Jonas \AA ngstr\"om},
9932 parent={people},
9933 category={person},
9934 description={Swedish physicist}
9935 }
9936 % \end{macrocode}
9937 %\iffalse
9938 % \begin{macrocode}
9939 %</testidx-glossaries-samples-ascii.bib>
9940 % \end{macrocode}
9941 %\fi
9942 %\iffalse
9943 % \begin{macrocode}
9944 %<*testidx-glossaries-samples-utf8.bib>
9945 % \end{macrocode}
9946 %\fi
9947 % \begin{macrocode}
9948 %<<COMMENT
9949 % Encoding: UTF-8
9950 %COMMENT
9951
9952 @index{dzsoker,
9953 name={dzsóker},
9954 category={word},
9955 description={joker (Hungarian)}
9956 }
9957
9958 @index{czesc,
9959 name={cześć},
9960 category={word},
9961 description={hello (Polish)}
9962 }
9963
9964 @index{elite,
9965 name={élite},
9966 category={word},
9967 description={group of people regarded as
9968 the best of a particular society or organisation}
9969 }
9970
9971 @index{aesthetic,
9972 name={æsthetic},
9973 category={word},
9974 description={concerning beauty}
9975 }
9976
9977 @index{oesophagus,
9978 name={œsophagus},
9979 category={word},
9980 description={part of the alimentary canal}
9981 }
9982
9983 @index{blase,
9984 name={blasé},
9985 category={word},
9986 description={unimpressed or indifferent due to familiarity}
9987 }
9988
9989 @index{protege,
9990 name={protégé},
9991 category={word},
9992 description={person guided by an older more experienced person}
9993 }
9994
9995 @index{clientele,
9996 name={clientèle},
9997 category={word},
9998 description={all the clients of a particular business}
9999 }
10000
10001 @index{resumee,
10002 name={résumé},
10003 category={word},
10004 description={summary of something or curriculum vitae}
10005 }
10006
10007 @index{soiree,
10008 name={soirée},
10009 category={word},
10010 description={an evening social gathering involving conversation or music}
10011 }
10012
10013 @index{phoenix,
10014 name={phœnix},
10015 category={word},
10016 description={mythical bird that periodically burned itself and was reborn from the ashes}
10017 }
10018
10019 @index{decor,
10020 name={décor},
10021 category={word},
10022 description={the furnishings and decorations of a room}
10023 }
10024
10025 @index{faerie,
10026 name={færie},
10027 category={word},
10028 description={fairyland}
10029 }
10030
10031 @index{facade,
10032 name={façade},
10033 category={word},
10034 description={the front face of a building}
10035 }
10036
10037 @index{aethereal,
10038 name={æthereal},
10039 category={word},
10040 description={light, airy or tenuous}
10041 }
10042
10043 @index{debutante,
10044 name={débutante},
10045 category={word},
10046 description={a young upper-class woman making her first appearance in society}
10047 }
10048
10049 @index{naive,
10050 name={naïve},
10051 category={word},
10052 description={lacking experience or wisdom}
10053 }
10054
10055 @index{foetid,
10056 name={fœtid},
10057 category={word},
10058 description={smelling very unpleasant}
10059 }
10060
10061 @index{cliche,
10062 name={cliché},
10063 category={word},
10064 description={overused phrase or idea}
10065 }
10066
10067 @index{deshabille,
10068 name={déshabillé},
10069 category={word},
10070 description={the state of being only partially clothed}
10071 }
10072
10073 @index{negligee,
10074 name={négligée},
10075 category={word},
10076 description={a woman's very thin dressing gown}
10077 }
10078
10079 @index{cafe,
10080 name={café},
10081 category={word},
10082 description={small restaurant that sells light meals}
10083 }
10084
10085 @index{anaemic,
10086 name={anæmic},
10087 category={word},
10088 description={suffering from anaemia}
10089 }
10090
10091 @index{thornletter,
10092 name={þ},
10093 category={word},
10094 see={thorn},
10095 description={thorn}
10096 }
10097
10098 @index{thorn,
10099 name={thorn (þ)},
10100 category={word},
10101 description={Old English and Icelandic runic letter. In English, eventually replaced by the
10102 digraph \tstidxqt{th}}
10103 }
10104
10105 @index{ethletter,
10106 name={ð},
10107 category={word},
10108 see={eth},
10109 description={eth}
10110 }
10111
10112 @index{eth,
10113 name={eth (ð)},
10114 category={word},
10115 description={Old English letter eventually
10116 superseded by the digraph \tstidxqt{th}, but still in use in
10117 some other languages}
10118 }
10119
10120 @index{Ostergotland,
10121 name={Östergötland},
10122 category={place},
10123 description={a county in Sweden}
10124 }
10125
10126 @index{places.Ostergotland,
10127 name={Östergötland},
10128 parent={places},
10129 category={place},
10130 description={a county in Sweden}
10131 }
10132
10133 @index{Angelholm,
10134 name={Ängelholm},
10135 category={place},
10136 description={a place in Sweden}
10137 }
10138
10139 @index{places.Angelholm,
10140 name={Ängelholm},
10141 parent={places},
10142 category={place},
10143 description={a place in Sweden}
10144 }
10145
10146 @index{Oresund,
10147 name={Øresund},
10148 category={place},
10149 description={a strait which separates Denmark and Sweden}
10150 }
10151
10152 @index{places.Oresund,
10153 name={Øresund},
10154 parent={places},
10155 category={place},
10156 description={a strait which separates Denmark and Sweden}
10157 }
10158
10159 @index{Tarnby,
10160 name={Tårnby},
10161 category={place},
10162 description={a town in Denmark}
10163 }
10164
10165 @index{places.Tarnby,
10166 name={Tårnby},
10167 parent={places},
10168 category={place},
10169 description={a town in Denmark}
10170 }
10171
10172 @index{Rodovre,
10173 name={Rødovre},
10174 category={place},
10175 description={a Danish town}
10176 }
10177
10178 @index{places.Rodovre,
10179 name={Rødovre},
10180 parent={places},
10181 category={place},
10182 description={a Danish town}
10183 }
10184
10185 @index{Naestved,
10186 name={Næstved},
10187 category={place},
10188 description={a Danish town on the island of Zealand}
10189 }
10190
10191 @index{places.Naestved,
10192 name={Næstved},
10193 parent={places},
10194 category={place},
10195 description={a Danish town on the island of Zealand}
10196 }
10197
10198 @index{OlstykkeStenlose,
10199 name={Ølstykke-Stenløse},
10200 category={place},
10201 description={a Danish city in North Zealand}
10202 }
10203
10204 @index{places.OlstykkeStenlose,
10205 name={Ølstykke-Stenløse},
10206 parent={places},
10207 category={place},
10208 description={a Danish city in North Zealand}
10209 }
10210
10211 @index{Asslar,
10212 name={Aßlar},
10213 category={place},
10214 description={German town}
10215 }
10216
10217 @index{places.Asslar,
10218 name={Aßlar},
10219 parent={places},
10220 category={place},
10221 description={German town}
10222 }
10223
10224 @index{BadGottleubaBerggiesshubel,
10225 name={Bad Gottleuba-Berggießhübel},
10226 category={place},
10227 description={a town in the Free State of Saxony, Germany}
10228 }
10229
10230 @index{places.BadGottleubaBerggiesshubel,
10231 name={Bad Gottleuba-Berggießhübel},
10232 parent={places},
10233 category={place},
10234 description={a town in the Free State of Saxony, Germany}
10235 }
10236
10237 @index{Lodz,
10238 name={Łódź},
10239 category={place},
10240 description={Polish city}
10241 }
10242
10243 @index{places.Lodz,
10244 name={Łódź},
10245 parent={places},
10246 category={place},
10247 description={Polish city}
10248 }
10249
10250 @index{Swietokrzyskie,
10251 name={Świętokrzyskie},
10252 category={place},
10253 description={Polish province}
10254 }
10255
10256 @index{places.Swietokrzyskie,
10257 name={Świętokrzyskie},
10258 parent={places},
10259 category={place},
10260 description={Polish province}
10261 }
10262
10263 @index{Zory,
10264 name={Żory},
10265 category={place},
10266 description={Polish town and city county}
10267 }
10268
10269 @index{places.Zory,
10270 name={Żory},
10271 parent={places},
10272 category={place},
10273 description={Polish town and city county}
10274 }
10275
10276 @index{Zelechow,
10277 name={Żelechów},
10278 category={place},
10279 description={Polish town}
10280 }
10281
10282 @index{places.Zelechow,
10283 name={Żelechów},
10284 parent={places},
10285 category={place},
10286 description={Polish town}
10287 }
10288
10289 @index{Lobez,
10290 name={Łobez},
10291 category={place},
10292 description={Polish town}
10293 }
10294
10295 @index{places.Lobez,
10296 name={Łobez},
10297 parent={places},
10298 category={place},
10299 description={Polish town}
10300 }
10301
10302 @index{Glogow,
10303 name={Głogów},
10304 category={place},
10305 description={Polish town}
10306 }
10307
10308 @index{places.Glogow,
10309 name={Głogów},
10310 parent={places},
10311 category={place},
10312 description={Polish town}
10313 }
10314
10315 @index{Cmielow,
10316 name={Ćmielów},
10317 category={place},
10318 description={Polish town}
10319 }
10320
10321 @index{places.Cmielow,
10322 name={Ćmielów},
10323 parent={places},
10324 category={place},
10325 description={Polish town}
10326 }
10327
10328 @index{Scinawa,
10329 name={Ścinawa},
10330 category={place},
10331 description={Polish town}
10332 }
10333
10334 @index{places.Scinawa,
10335 name={Ścinawa},
10336 parent={places},
10337 category={place},
10338 description={Polish town}
10339 }
10340
10341 @index{Swidnica,
10342 name={Świdnica},
10343 category={place},
10344 description={Polish town}
10345 }
10346
10347 @index{places.Swidnica,
10348 name={Świdnica},
10349 parent={places},
10350 category={place},
10351 description={Polish town}
10352 }
10353
10354 @index{Olvesvatn,
10355 name={Ölvesvatn},
10356 category={place},
10357 description={Icelandic lake}
10358 }
10359
10360 @index{places.Olvesvatn,
10361 name={Ölvesvatn},
10362 parent={places},
10363 category={place},
10364 description={Icelandic lake}
10365 }
10366
10367 @index{Ulfsvatn,
10368 name={Úlfsvatn},
10369 category={place},
10370 description={Icelandic lake}
10371 }
10372
10373 @index{places.Ulfsvatn,
10374 name={Úlfsvatn},
10375 parent={places},
10376 category={place},
10377 description={Icelandic lake}
10378 }
10379
10380 @index{Anavatn,
10381 name={Ánavatn},
10382 category={place},
10383 description={Icelandic lake}
10384 }
10385
10386 @index{places.Anavatn,
10387 name={Ánavatn},
10388 parent={places},
10389 category={place},
10390 description={Icelandic lake}
10391 }
10392
10393 @index{Masvatn,
10394 name={Másvatn},
10395 category={place},
10396 description={Icelandic lake}
10397 }
10398
10399 @index{places.Masvatn,
10400 name={Másvatn},
10401 parent={places},
10402 category={place},
10403 description={Icelandic lake}
10404 }
10405
10406 @index{Thrihyrningsvatn,
10407 name={Þríhyrningsvatn},
10408 category={place},
10409 description={Icelandic lake}
10410 }
10411
10412 @index{places.Thrihyrningsvatn,
10413 name={Þríhyrningsvatn},
10414 parent={places},
10415 category={place},
10416 description={Icelandic lake}
10417 }
10418
10419 @index{Sigridharstadhavatn,
10420 name={Sigríðarstaðavatn},
10421 category={place},
10422 description={Icelandic lagoon}
10423 }
10424
10425 @index{places.Sigridharstadhavatn,
10426 name={Sigríðarstaðavatn},
10427 parent={places},
10428 category={place},
10429 description={Icelandic lagoon}
10430 }
10431
10432 @index{Graenavatn,
10433 name={Grænavatn},
10434 category={place},
10435 description={Icelandic lake}
10436 }
10437
10438 @index{places.Graenavatn,
10439 name={Grænavatn},
10440 parent={places},
10441 category={place},
10442 description={Icelandic lake}
10443 }
10444
10445 @index{Arneslon,
10446 name={Árneslón},
10447 category={place},
10448 description={Icelandic lake}
10449 }
10450
10451 @index{places.Arneslon,
10452 name={Árneslón},
10453 parent={places},
10454 category={place},
10455 description={Icelandic lake}
10456 }
10457
10458 @index{Isholsvatn,
10459 name={Íshólsvatn},
10460 category={place},
10461 description={Icelandic lake}
10462 }
10463
10464 @index{places.Isholsvatn,
10465 name={Íshólsvatn},
10466 parent={places},
10467 category={place},
10468 description={Icelandic lake}
10469 }
10470
10471 @index{attachecase,
10472 name={attaché case},
10473 category={phrase},
10474 description={small, flat briefcase for carrying documents}
10475 }
10476
10477 @index{piedaterre,
10478 name={pied-à-terre},
10479 category={phrase},
10480 description={small flat or house kept for occasional use}
10481 }
10482
10483 @index{bergerehat,
10484 name={bergère hat},
10485 category={phrase},
10486 description={a type of wide-brimmed straw hat}
10487 }
10488
10489 @index{AndersJonasAngstrom,
10490 name={Ångström, Anders Jonas},
10491 text={Anders Jonas Ångström},
10492 category={person},
10493 description={Swedish physicist}
10494 }
10495
10496 @index{people.AndersJonasAngstrom,
10497 name={Ångström, Anders Jonas},
10498 text={Anders Jonas Ångström},
10499 parent={people},
10500 category={person},
10501 description={Swedish physicist}
10502 }
10503 % \end{macrocode}
10504 %\iffalse
10505 % \begin{macrocode}
10506 %</testidx-glossaries-samples-utf8.bib>
10507 % \end{macrocode}
10508 %\fi
10509 %\iffalse
10510 % \begin{macrocode}
10511 %<*testidx-glossaries-samples.bib>
10512 % \end{macrocode}
10513 %\fi
10514 % \begin{macrocode}
10515 %<<COMMENT
10516 % Encoding: ASCII
10517 %COMMENT
10518
10519 @index{packages,
10520 category={word},
10521 description={files provided to adjust the document
10522 design or provide new commands}
10523 }
10524
10525 @index{books,
10526 category={word},
10527 description={written or printed works}
10528 }
10529
10530 @index{films,
10531 category={word},
10532 description={stories recorded by camera}
10533 }
10534
10535 @index{people,
10536 category={word},
10537 description={human individuals (or fictional
10538 anthropomorphisms)}
10539 }
10540
10541 @index{places,
10542 category={word},
10543 description={particular areas or locations}
10544 }
10545
10546 @index{subitems,
10547 category={word},
10548 name={sub-items},
10549 description={items that have a parent entry}
10550 }
10551
10552 @index{applications,
10553 category={word},
10554 description={computer programs}
10555 }
10556
10557 @index{environments,
10558 category={word},
10559 description={a marked-up block within the document
10560 that requires special action or formatting}
10561 }
10562
10563 @index{attributes,
10564 category={word},
10565 description={qualities or features that characterise something}
10566 }
10567
10568 @index{check,
10569 category={word},
10570 description={make sure something is the case}
10571 }
10572
10573 @index{chalk,
10574 category={word},
10575 description={soft limestone substance made into sticks to
10576 use for writing}
10577 }
10578
10579 @index{daft,
10580 category={word},
10581 description={silly or foolish}
10582 }
10583
10584 @index{parse,
10585 category={word},
10586 description={divide a sentence into its component parts for
10587 analysis}
10588 }
10589
10590 @index{interpret,
10591 category={word},
10592 description={translate or explain the meaning of}
10593 }
10594
10595 @index{oak,
10596 category={word},
10597 description={large tree that produces acorns}
10598 }
10599
10600 @index{rhubarb,
10601 category={word},
10602 description={thick reddish or green leaf stalks
10603 of a plant from the dock family}
10604 }
10605
10606 @index{rhinoceros,
10607 category={word},
10608 description={a large plant-eating mammal
10609 with one or two horns on its nose}
10610 }
10611
10612 @index{aardvark,
10613 category={word},
10614 description={an African mammal}
10615 }
10616
10617 @index{ddisgynedig,
10618 category={word},
10619 description={descending (Welsh)}
10620 }
10621
10622 @index{ddyrchafedig,
10623 category={word},
10624 description={advanced (Welsh)}
10625 }
10626
10627 @index{ffotograff,
10628 category={word},
10629 description={photo (Welsh)}
10630 }
10631
10632 @index{index,
10633 category={word},
10634 description={an alphabetical list of names, terms or
10635 subjects with references to where they occur in the document}
10636 }
10637
10638 @index{phrase,
10639 category={word},
10640 description={group of words forming a unit}
10641 }
10642
10643 @index{glossary,
10644 category={word},
10645 description={an alphabetical list of words with explanations}
10646 }
10647
10648 @index{layout,
10649 category={word},
10650 description={the way something is laid out (for example, on a page)}
10651 }
10652
10653 @index{filler,
10654 category={word},
10655 description={something used to fill in gaps or increase bulk}
10656 }
10657
10658 @index{padding,
10659 category={word},
10660 description={something used to pad out material to make it
10661 longer},
10662 seealso={filler}
10663 }
10664
10665 @index{example,
10666 category={word},
10667 description={thing used to illustrate something}
10668 }
10669
10670 @index{purpose,
10671 category={word},
10672 description={the reason for doing something}
10673 }
10674
10675 @index{whatsit,
10676 category={word},
10677 description={In \TeX\ terms, a mechanism to allow
10678 extensions to \TeX, including writing to files or providing
10679 special instructions to printing devices. More generally,
10680 a whatsit is an unnamed person or thing}
10681 }
10682
10683 @index{test,
10684 category={word},
10685 description={a means of testing something}
10686 }
10687
10688 @index{design,
10689 category={word},
10690 description={plan or purpose}
10691 }
10692
10693 @index{document,
10694 category={word},
10695 description={a piece of written, printed or electronic
10696 matter that provides information}
10697 }
10698
10699 @index{book,
10700 category={word},
10701 description={written or printed work}
10702 }
10703
10704 @index{range,
10705 category={word},
10706 description={area of variation or scope}
10707 }
10708
10709 @index{word,
10710 category={word},
10711 description={single unit of language which has meaning}
10712 }
10713
10714 @index{marker,
10715 category={word},
10716 description={an identifying symbol}
10717 }
10718
10719 @index{footnote,
10720 category={word},
10721 description={additional information written at the bottom of a page}
10722 }
10723
10724 @index{encap,
10725 category={word},
10726 description={the format used to encapsulate the location}
10727 }
10728
10729 @index{text,
10730 category={word},
10731 description={written or printed or electronically
10732 represented words}
10733 }
10734
10735 @index{argument,
10736 category={word},
10737 description={parameter passed to a command or
10738 application}
10739 }
10740
10741 @index{predefined,
10742 category={word},
10743 description={already defined}
10744 }
10745
10746 @index{excessive,
10747 category={word},
10748 description={more than normal or desired}
10749 }
10750
10751 @index{block,
10752 category={word},
10753 description={large quantity of things viewed as a unit}
10754 }
10755
10756 @index{paragraph,
10757 category={word},
10758 description={block of writing, beginning on a new line}
10759 }
10760
10761 @index{waffle,
10762 category={word},
10763 description={speak or write vague or trivial information in a
10764 lengthy way}
10765 }
10766
10767 @index{gibberish,
10768 category={word},
10769 description={meaningless or hard to comprehend speech
10770 or writing}
10771 }
10772
10773 @index{gobbledegook,
10774 category={word},
10775 description={language that is difficult to understand},
10776 see={gibberish}
10777 }
10778
10779 @index{clarify,
10780 category={word},
10781 description={make it easier to understand}
10782 }
10783
10784 @index{confidential,
10785 category={word},
10786 description={private or secret information}
10787 }
10788
10789 @index{roundabout,
10790 category={word},
10791 description={not direct}
10792 }
10793
10794 @index{fashion,
10795 category={word},
10796 description={a way of doing something}
10797 }
10798
10799 @index{illustration,
10800 category={word},
10801 description={an example to explain something},
10802 seealso={example}
10803 }
10804
10805 @index{wit,
10806 category={word},
10807 description={natural talent for saying or writing things in
10808 an amusing or clever way}
10809 }
10810
10811 @index{eloquence,
10812 category={word},
10813 description={fluent or persuasive speech or writing}
10814 }
10815
10816 @index{adage,
10817 category={word},
10818 description={popular saying}
10819 }
10820
10821 @index{motto,
10822 category={word},
10823 description={short sentence of phrase expressing a belief
10824 or aim}
10825 }
10826
10827 @index{verbiage,
10828 category={word},
10829 description={excessively length speech or writing}
10830 }
10831
10832 @index{drivel,
10833 category={word},
10834 description={nonsense}
10835 }
10836
10837 @index{tutor,
10838 category={word},
10839 description={teacher}
10840 }
10841
10842 @index{grass,
10843 category={word},
10844 description={in addition to the plant, also slang for
10845 reporting criminal activity}
10846 }
10847
10848 @index{distress,
10849 category={word},
10850 description={cause anxiety}
10851 }
10852
10853 @index{concordance,
10854 category={word},
10855 description={an alphabetical list of important words
10856 used in a document}
10857 }
10858
10859 @index{ogling,
10860 category={word},
10861 description={staring at someone in a lecherous manner}
10862 }
10863
10864 @index{gawping,
10865 category={word},
10866 description={staring in a rude or stupid manner},
10867 see={ogling}
10868 }
10869
10870 @index{passim,
10871 category={word},
10872 description={referencing various places in a document}
10873 }
10874
10875 @index{localisation,
10876 category={word},
10877 description={place or position}
10878 }
10879
10880 @index{digraph,
10881 category={word},
10882 description={two letters representing a single sound}
10883 }
10884
10885 @index{trigraph,
10886 category={word},
10887 description={three letters representing a single sound}
10888 }
10889
10890 @index{lyuk,
10891 category={word},
10892 description={hole (Hungarian)},
10893 seealso={digraph}
10894 }
10895
10896 @index{dzs,
10897 category={trigraph},
10898 description={Hungarian \glshyperlink{trigraph} considered a separate letter}
10899 }
10900
10901 @index{cz,
10902 category={digraph},
10903 description={digraph in some languages, such as Polish}
10904 }
10905
10906 @index{dd,
10907 category={digraph},
10908 description={digraph in some languages, such as Welsh}
10909 }
10910
10911 @index{ff,
10912 category={digraph},
10913 description={digraph in some languages, such as Welsh}
10914 }
10915
10916 @index{ng,
10917 category={digraph},
10918 description={digraph in some languages, such as Welsh}
10919 }
10920
10921 @index{ly,
10922 category={digraph},
10923 description={digraph in some languages, such as Hungarian}
10924 }
10925
10926 @index{dzsungel,
10927 category={word},
10928 description={jungle (Hungarian)},
10929 seealso={trigraph}
10930 }
10931
10932 @index{nonsense,
10933 category={word},
10934 description={something that doesn't make sense}
10935 }
10936
10937 @index{volauvent,
10938 category={word},
10939 name={vol-au-vent},
10940 description={small round puff pastry containing savoury food}
10941 }
10942
10943 @index{two,
10944 category={word},
10945 description={number following one}
10946 }
10947
10948 @index{sculpture,
10949 category={word},
10950 description={artwork made of wood, metal or stone}
10951 }
10952
10953 @index{Venus,
10954 category={word},
10955 description={Roman goddess (or planet named after her)}
10956 }
10957
10958 @index{zoo,
10959 category={word},
10960 description={place containing animals}
10961 }
10962
10963 @index{alphabet,
10964 category={word},
10965 description={ordered set of letters used to form words}
10966 }
10967
10968 @index{resume,
10969 category={word},
10970 description={continue after an interruption}
10971 }
10972
10973 @index{fly,
10974 category={word},
10975 description={travel by air}
10976 }
10977
10978 @index{aeroplane,
10979 category={word},
10980 description={fixed wing flying vehicle}
10981 }
10982
10983 @index{window,
10984 category={word},
10985 description={opening in wall or window to view out or in}
10986 }
10987
10988 @index{ogonek,
10989 category={word},
10990 description={a diacritic hook placed under the lower right
10991 corner of a vowel}
10992 }
10993
10994 @index{sail,
10995 category={word},
10996 description={travel by or navigate a boat}
10997 }
10998
10999 @index{ship,
11000 category={word},
11001 description={large boat}
11002 }
11003
11004 @index{OT1,
11005 category={word},
11006 description={one of the original font encodings provided with
11007 \TeX}
11008 }
11009
11010 @index{UTF8,
11011 name={UTF-8},
11012 category={word},
11013 description={character encoding that uses 8-bit code units}
11014 }
11015
11016 @index{life,
11017 category={word},
11018 description={existence}
11019 }
11020
11021 @index{universe,
11022 category={word},
11023 description={all existing space and matter}
11024 }
11025
11026 @index{even,
11027 category={word},
11028 description={multiple of two}
11029 }
11030
11031 @index{century,
11032 category={word},
11033 description={period of 100 years or a score of 100 runs}
11034 }
11035
11036 @index{cricket,
11037 category={word},
11038 description={bat and ball game played between two teams
11039 with eleven players on either side}
11040 }
11041
11042 @index{calendar,
11043 category={word},
11044 description={chart or list showing a period of time}
11045 }
11046
11047 @index{prefix,
11048 category={word},
11049 description={word or letter placed at the start of another
11050 word}
11051 }
11052
11053 @index{gobsmacked,
11054 category={word},
11055 description={astonished}
11056 }
11057
11058 @index{astounded,
11059 category={word},
11060 description={shocked or very surprised}
11061 }
11062
11063 @index{quaint,
11064 category={word},
11065 description={old-fashioned or unusual}
11066 }
11067
11068 @index{yatter,
11069 category={word},
11070 description={chatter or talk non-stop}
11071 }
11072
11073 @index{yawn,
11074 category={word},
11075 description={open one's mouth due to tiredness or boredom}
11076 }
11077
11078 @index{quirky,
11079 category={word},
11080 description={peculiar or unexpected habits}
11081 }
11082
11083 @index{badinage,
11084 category={word},
11085 description={witty conversation}
11086 }
11087
11088 @index{expire,
11089 category={word},
11090 description={come to an end}
11091 }
11092
11093 @index{story,
11094 category={word},
11095 description={account or description of imaginary or real
11096 events}
11097 }
11098
11099 @index{begin,
11100 category={word},
11101 description={start something}
11102 }
11103
11104 @index{forget,
11105 category={word},
11106 description={fail to remember something}
11107 }
11108
11109 @index{tale,
11110 category={word},
11111 description={a story}
11112 }
11113
11114 @index{adventure,
11115 category={word},
11116 description={unusual or exciting or daring experience}
11117 }
11118
11119 @index{derringdo,
11120 name={derring-do},
11121 category={word},
11122 description={heroic action}
11123 }
11124
11125 @index{hero,
11126 category={word},
11127 description={principle male character in a story or a person
11128 admired for their achievements}
11129 }
11130
11131 @index{title,
11132 category={word},
11133 description={name of a document or work, or a name that
11134 describes a position}
11135 }
11136
11137 @index{knight,
11138 category={word},
11139 description={a man raised to military rank after service
11140 as a page or squire, or a man entitled to use \tstidxqt{Sir} before
11141 his name}
11142 }
11143
11144 @index{handsome,
11145 category={word},
11146 description={good-looking}
11147 }
11148
11149 @index{bold,
11150 category={word},
11151 description={confident or brave}
11152 }
11153
11154 @index{brave,
11155 category={word},
11156 description={prepared to face danger or difficulties}
11157 }
11158
11159 @index{duck,
11160 category={word},
11161 description={a waterbird with a blunt bill, short legs and webbed
11162 feet}
11163 }
11164
11165 @index{name,
11166 category={word},
11167 description={word or words by which something is known}
11168 }
11169
11170 @index{plight,
11171 category={word},
11172 description={dangerous situation}
11173 }
11174
11175 @index{land,
11176 category={word},
11177 description={area of ground}
11178 }
11179
11180 @index{OgRe,
11181 category={word},
11182 description={an ogre is a man-eating giant or a terrifying
11183 person. The silly capitalisation is just a reference to \TeX's
11184 output routine}
11185 }
11186
11187 @index{reference,
11188 category={word},
11189 description={referring to something}
11190 }
11191
11192 @index{perilous,
11193 category={word},
11194 description={dangerous or full of risk}
11195 }
11196
11197 @index{quest,
11198 category={word},
11199 description={long or difficult search for something}
11200 }
11201
11202 @index{xor,
11203 category={word},
11204 description={\LaTeX3 experimental output routine}
11205 }
11206
11207 @index{continuation,
11208 category={word},
11209 description={state of continuing}
11210 }
11211
11212 @index{newcomers,
11213 category={word},
11214 description={recent arrivals}
11215 }
11216
11217 @index{nod,
11218 category={word},
11219 description={in addition to the action of moving one's head
11220 up and down, also indicates a reference of acknowledgement of
11221 something}
11222 }
11223
11224 @index{centre,
11225 category={word},
11226 description={point in the middle (UK spelling)}
11227 }
11228
11229 @index{center,
11230 category={word},
11231 description={point in the middle (US spelling)}
11232 }
11233
11234 @index{lore,
11235 category={word},
11236 description={tradition or knowledge of a particular subject}
11237 }
11238
11239 @index{raft,
11240 category={word},
11241 description={flat water vessel made from pieces of wood
11242 tied together}
11243 }
11244
11245 @index{external,
11246 category={word},
11247 description={belonging outside of something}
11248 }
11249
11250 @index{pun,
11251 category={word},
11252 description={play on words}
11253 }
11254
11255 @index{joke,
11256 category={word},
11257 description={something said to amuse others}
11258 }
11259
11260 @index{witty,
11261 category={word},
11262 description={having the ability to say clever or
11263 amusing things}
11264 }
11265
11266 @index{cameo,
11267 category={word},
11268 description={small part in a story for a distinguished
11269 actor}
11270 }
11271
11272 @index{exclamation,
11273 category={word},
11274 description={sudden cry}
11275 }
11276
11277 @index{bog,
11278 category={word},
11279 description={area of soft, wet, muddy ground}
11280 }
11281
11282 @index{leviathans,
11283 category={word},
11284 description={very large, powerful thing (such as a sea
11285 monster)}
11286 }
11287
11288 @index{vale,
11289 category={word},
11290 description={valley}
11291 }
11292
11293 @index{doom,
11294 category={word},
11295 description={fate}
11296 }
11297
11298 @index{chaos,
11299 category={word},
11300 description={complete confusion or disorder}
11301 }
11302
11303 @index{butterfly,
11304 category={word},
11305 description={winged insect}
11306 }
11307
11308 @index{motif,
11309 category={word},
11310 description={repeated theme}
11311 }
11312
11313 @index{sentence,
11314 category={word},
11315 description={set of words forming a complete statement,
11316 instruction or question}
11317 }
11318
11319 @index{conjunction,
11320 category={word},
11321 description={word used to connect words or clauses}
11322 }
11323
11324 @index{naughty,
11325 category={word},
11326 description={badly behaved}
11327 }
11328
11329 @index{leap,
11330 category={word},
11331 description={jump far or high across something}
11332 }
11333
11334 @index{bound,
11335 category={word},
11336 description={leaping movement}
11337 }
11338
11339 @index{sword,
11340 category={word},
11341 description={weapon with a long metal blade}
11342 }
11343
11344 @index{myriad,
11345 category={word},
11346 description={countless or a very great number}
11347 }
11348
11349 @index{clones,
11350 category={word},
11351 description={identical copy}
11352 }
11353
11354 @index{repetition,
11355 category={word},
11356 description={something that's been repeated}
11357 }
11358
11359 @index{lair,
11360 category={word},
11361 description={hiding place or den}
11362 }
11363
11364 @index{roar,
11365 category={word},
11366 description={loud, deep sound}
11367 }
11368
11369 @index{peace,
11370 category={word},
11371 description={freedom from war or anxiety}
11372 }
11373
11374 @index{harmony,
11375 category={word},
11376 description={arranged well or peacefully together}
11377 }
11378
11379 @index{span,
11380 category={word},
11381 description={length of time or full extent or extend across
11382 something}
11383 }
11384
11385 @index{fear,
11386 category={word},
11387 description={anxiety about something unpleasant}
11388 }
11389
11390 @index{thrilling,
11391 category={word},
11392 description={exciting}
11393 }
11394
11395 @index{quixotic,
11396 category={word},
11397 description={impractically unselfish and idealist}
11398 }
11399
11400 @index{seal,
11401 category={word},
11402 description={sea-dwelling fish-eating mammal with flippers}
11403 }
11404
11405 @index{sea,
11406 category={word},
11407 description={large area of salt water}
11408 }
11409
11410 @index{seaborne,
11411 category={word},
11412 description={transported or travelling by sea}
11413 }
11414
11415 @index{zither,
11416 category={word},
11417 description={a type of stringed musical instrument}
11418 }
11419
11420 @index{zealous,
11421 category={word},
11422 description={having great enthusiasm for something}
11423 }
11424
11425 @index{fan,
11426 category={word},
11427 description={an admirer of something}
11428 }
11429
11430 @index{youthful,
11431 category={word},
11432 description={seeming young}
11433 }
11434
11435 @index{magic,
11436 category={word},
11437 description={having the apparent power of supernatural or
11438 mysterious forces}
11439 }
11440
11441 @index{magical,
11442 category={word},
11443 description={relating to or using magic}
11444 }
11445
11446 @index{yoyo,
11447 name={yo-yo},
11448 category={word},
11449 description={a round toy consisting of two discs and a
11450 piece of string}
11451 }
11452
11453 @index{wily,
11454 category={word},
11455 description={using cunning or crafty methods to gain an
11456 advantage}
11457 }
11458
11459 @index{wombat,
11460 category={word},
11461 description={a type of small marsupial}
11462 }
11463
11464 @index{warrior,
11465 category={word},
11466 description={brave or experienced fighter}
11467 }
11468
11469 @index{laserguided,
11470 name={laser-guided},
11471 category={word},
11472 description={guided by a laser}
11473 }
11474
11475 @index{villainous,
11476 category={word},
11477 description={characteristic of a villain}
11478 }
11479
11480 @index{zany,
11481 category={word},
11482 description={amusingly unconventional}
11483 }
11484
11485 @index{zoologist,
11486 category={word},
11487 description={someone who studies animals}
11488 }
11489
11490 @index{xebec,
11491 category={word},
11492 description={a type of small sailing ship}
11493 }
11494
11495 @index{xenon,
11496 category={word},
11497 description={a type of inert gas}
11498 }
11499
11500 @index{xylem,
11501 category={word},
11502 description={a plant tissue}
11503 }
11504
11505 @index{xylene,
11506 category={word},
11507 description={a type of liquid hydrocarbon}
11508 }
11509
11510 @index{zounds,
11511 category={word},
11512 description={an exclamation}
11513 }
11514
11515 @index{Ooh,
11516 category={word},
11517 description={an exclamation}
11518 }
11519
11520 @index{zucchini,
11521 category={word},
11522 description={a type of long, green summer squash (called
11523 a courgette in British English)}
11524 }
11525
11526 @index{xylophone,
11527 category={word},
11528 description={a type of musical instrument}
11529 }
11530
11531 @index{exhilarating,
11532 category={word},
11533 description={pleasing or energetic}
11534 }
11535
11536 @index{yuppie,
11537 category={word},
11538 description={urban well-paid young middle-class professional}
11539 }
11540
11541 @index{yoghurt,
11542 category={word},
11543 description={thick, liquid food made from milk}
11544 }
11545
11546 @index{yummy,
11547 category={word},
11548 description={delicious}
11549 }
11550
11551 @index{yuck,
11552 category={word},
11553 description={disgusting}
11554 }
11555
11556 @index{Viking,
11557 category={word},
11558 description={a member of Scandinavian seafaring people
11559 between the eighth and eleventh centuries}
11560 }
11561
11562 @index{vignette,
11563 category={word},
11564 description={brief episode}
11565 }
11566
11567 @index{viceroy,
11568 category={word},
11569 description={a person who governs a colony on behalf of
11570 the sovereign}
11571 }
11572
11573 @index{vichyssoise,
11574 category={word},
11575 description={a type of soup}
11576 }
11577
11578 @index{viceregal,
11579 category={word},
11580 description={relating to a viceroy}
11581 }
11582
11583 @index{quiz,
11584 category={word},
11585 description={game or competition}
11586 }
11587
11588 @index{glyph,
11589 category={word},
11590 description={small graphic symbol}
11591 }
11592
11593 @index{asleep,
11594 category={word},
11595 description={in or into a state of sleep}
11596 }
11597
11598 @index{ashore,
11599 category={word},
11600 description={to or on shore or land}
11601 }
11602
11603 @index{aspire,
11604 category={word},
11605 description={to have strong ambitions to be or do something}
11606 }
11607
11608 @index{assailed,
11609 category={word},
11610 description={past tense of assail}
11611 }
11612
11613 @index{recover,
11614 category={word},
11615 description={get well again}
11616 }
11617
11618 @index{reecover,
11619 name={re-cover},
11620 category={word},
11621 description={to cover again}
11622 }
11623
11624 @index{document.properties,
11625 name={properties},
11626 parent={document},
11627 category={word},
11628 description={attributes such as page size}
11629 }
11630
11631 @index{subitems.lonely,
11632 name={lonely},
11633 parent={subitems},
11634 category={word},
11635 description={a sub-item that doesn't have any siblings}
11636 }
11637
11638 @index{fontencoding.OT1,
11639 name={OT1},
11640 parent={fontencoding},
11641 category={word},
11642 description={one of the original font encodings supplied with \TeX}
11643 }
11644
11645 @index{hero.intrepid,
11646 name={intrepid},
11647 parent={hero},
11648 category={word},
11649 description={a hero known for his boldness and bravery},
11650 see={intrepidhero}
11651 }
11652 @index{dadorail,
11653 name={dado rail},
11654 category={phrase},
11655 description={waist-high moulding around the wall of a room}
11656 }
11657
11658 @index{indexingapplication,
11659 name={indexing application},
11660 category={phrase},
11661 description={an application that generates a document index}
11662 }
11663
11664 @index{visualeffects,
11665 name={visual effects},
11666 category={phrase},
11667 description={use of imagery to create an effect}
11668 }
11669
11670 @index{dummytext,
11671 name={dummy text},
11672 category={phrase},
11673 description={sample text used for demonstration not
11674 for its content}
11675 }
11676
11677 @index{pagebreak,
11678 name={page break},
11679 category={phrase},
11680 description={the point where document text is broken
11681 across two pages}
11682 }
11683
11684 @index{linktext,
11685 name={link text},
11686 category={phrase},
11687 description={for the \glshyperlink{glossariespackage}
11688 package, this refers to the text inserted into the document
11689 through commands like \glshyperlink{cs.gls}}
11690 }
11691
11692 @index{crossreference,
11693 name={cross-reference},
11694 category={phrase},
11695 description={reference to another part of the
11696 document or to a part of another document}
11697 }
11698
11699 @index{marginalnote,
11700 name={marginal note},
11701 category={phrase},
11702 description={text that's placed in the page margin}
11703 }
11704
11705 @index{overfulllines,
11706 name={overfull lines},
11707 category={phrase},
11708 description={lines where the text extends into
11709 the margin because of a formatting failure}
11710 }
11711
11712 @index{loremipsum,
11713 name={lorem ipsum},
11714 category={phrase},
11715 description={dummy text}
11716 }
11717
11718 @index{betweenyoumeandthegatepost,
11719 name={between you, me and the gatepost},
11720 category={phrase},
11721 description={an expression
11722 meaning you're telling someone a secret that shouldn't be passed on
11723 (common in some British dialects)}
11724 }
11725
11726 @index{waywithwords,
11727 name={way with words},
11728 category={phrase},
11729 description={have a particular talent with words}
11730 }
11731
11732 @index{creativewriting,
11733 name={creative writing},
11734 category={phrase},
11735 description={writing typically identified
11736 by narrative craft, character development and use of literary tropes}
11737 }
11738
11739 @index{cuttothechase,
11740 name={cut to the chase},
11741 category={phrase},
11742 description={get to the point}
11743 }
11744
11745 @index{gettothepoint,
11746 name={get to the point},
11747 category={phrase},
11748 description={state something directly}
11749 }
11750
11751 @index{keepmum,
11752 name={keep mum},
11753 category={phrase},
11754 description={be silent about something},
11755 seealso={confidential}
11756 }
11757
11758 @index{outputroutine,
11759 name={output routine},
11760 category={phrase},
11761 description={\TeX's method of outputting a page}
11762 }
11763
11764 @index{outofwhack,
11765 name={out of whack},
11766 category={phrase},
11767 description={out of order or not working}
11768 }
11769
11770 @index{pagedimensions,
11771 name={page dimensions},
11772 category={phrase},
11773 description={the dimensions of a page (such as
11774 the page width and page height)}
11775 }
11776
11777 @index{fontfamily,
11778 name={font family},
11779 category={phrase},
11780 description={the name of a font}
11781 }
11782
11783 @index{fontsize,
11784 name={font size},
11785 category={phrase},
11786 description={the size of a font}
11787 }
11788
11789 @index{locationlist,
11790 name={location list},
11791 category={phrase},
11792 description={the list of locations used in an index to indicate
11793 where
11794 the term being referenced was used in the document},
11795 seealso={crossreference}
11796 }
11797
11798 @index{rangeseparator,
11799 name={range separator},
11800 category={phrase},
11801 description={the symbol
11802 used between the start and end location to indicate a range},
11803 see={locationlist}
11804 }
11805
11806 @index{pagenumber,
11807 name={page number},
11808 category={phrase},
11809 description={the number identifying a particular page}
11810 }
11811
11812 @index{multipleencaps,
11813 name={multiple encaps},
11814 category={phrase},
11815 description={a warning issued by
11816 \glshyperlink{makeindex} when the same page number is indexed
11817 with different encap values}
11818 }
11819
11820 @index{inputencoding,
11821 name={input encoding},
11822 category={phrase},
11823 description={the character encoding used
11824 in the document source code}
11825 }
11826
11827 @index{fontencoding,
11828 name={font encoding},
11829 category={phrase},
11830 description={the encoding used by the document
11831 font}
11832 }
11833
11834 @index{extendedLatincharacters,
11835 name={extended Latin characters},
11836 category={phrase},
11837 description={Latin characters outside the basic ASCII set}
11838 }
11839
11840 @index{cupoftea,
11841 name={cup of tea},
11842 category={phrase},
11843 description={an expression indicating what one likes
11844 or is interested in}
11845 }
11846
11847 @index{whistlestoptour,
11848 name={whistle-stop tour},
11849 category={phrase},
11850 description={a series of short visits to different places}
11851 }
11852
11853 @index{numbergroup,
11854 name={number group},
11855 category={phrase},
11856 description={a group associated with numbers}
11857 }
11858
11859 @index{primenumber,
11860 name={prime number},
11861 category={phrase},
11862 description={a number that is only divisible by itself and 1}
11863 }
11864
11865 @index{holdmybreath,
11866 name={hold my breath},
11867 category={phrase},
11868 description={stop breathing temporarily, also used as an expression to indicate a state of anticipation or
11869 suspense}
11870 }
11871
11872 @index{lettergroups,
11873 name={letter groups},
11874 category={phrase},
11875 description={groups associated with letters}
11876 }
11877
11878 @index{Onceuponatime,
11879 name={Once upon a time},
11880 category={phrase},
11881 description={an expression commonly used at
11882 the start of fairy tales}
11883 }
11884
11885 @index{acrossthepond,
11886 name={across the pond},
11887 category={phrase},
11888 description={colloquial expression indicating
11889 the other side of the Atlantic}
11890 }
11891
11892 @index{badform,
11893 name={bad form},
11894 category={phrase},
11895 description={an offence against accepted behaviour}
11896 }
11897
11898 @index{MontyPython,
11899 name={Monty Python},
11900 category={phrase},
11901 description={a British surreal comedy group}
11902 }
11903
11904 @index{magicincantation,
11905 name={magic incantation},
11906 category={phrase},
11907 description={words used to create a magical effect}
11908 }
11909
11910 @index{commonknowledge,
11911 name={common knowledge},
11912 category={phrase},
11913 description={something widely known}
11914 }
11915
11916 @index{intrepidhero,
11917 name={intrepid hero},
11918 category={phrase},
11919 description={a hero known for his boldness and bravery}
11920 }
11921
11922 @index{sealion,
11923 name={sea lion},
11924 category={phrase},
11925 description={a type of large seal}
11926 }
11927
11928 @index{sealantgun,
11929 name={sealant gun},
11930 category={phrase},
11931 description={a device used for applying sealant}
11932 }
11933
11934 @index{zootsuit,
11935 name={zoot suit},
11936 category={phrase},
11937 description={a suit typically having a long loose
11938 jacket and high-waisted trousers}
11939 }
11940
11941 @index{anonymousreviewer,
11942 name={anonymous reviewer},
11943 category={phrase},
11944 description={an unnamed reviewer}
11945 }
11946
11947 @index{yulelog,
11948 name={yule log},
11949 category={phrase},
11950 description={a large log traditionally burnt on
11951 Christmas Eve or a log-shaped chocolate cake}
11952 }
11953
11954 @index{vicepresident,
11955 name={vice-president},
11956 category={phrase},
11957 description={a president's deputy}
11958 }
11959
11960 @index{viceadmiral,
11961 name={vice admiral},
11962 category={phrase},
11963 description={a high rank of naval officer}
11964 }
11965
11966 @index{Victoriaplum,
11967 name={Victoria plum},
11968 category={phrase},
11969 description={a large, red, dessert plum}
11970 }
11971
11972 @index{Victoriasponge,
11973 name={Victoria sponge},
11974 category={phrase},
11975 description={a sponge cake consisting of two
11976 layers with jam filling in between}
11977 }
11978
11979 @index{viceversa,
11980 name={vice versa},
11981 category={phrase},
11982 description={reversing the order of the items just mentioned}
11983 }
11984
11985 @index{vicechancellor,
11986 name={vice chancellor},
11987 category={phrase},
11988 description={a deputy chancellor of a
11989 British university in charge of its administration}
11990 }
11991
11992 @index{letterordering,
11993 name={letter ordering},
11994 category={phrase},
11995 description={ordering according to the
11996 individual characters}
11997 }
11998
11999 @index{wordordering,
12000 name={word ordering},
12001 category={phrase},
12002 description={ordering according to the
12003 language or locale's definition of words}
12004 }
12005
12006 @index{commercialworld,
12007 name={commercial world, the},
12008 text={the commercial world},
12009 category={phrase},
12010 description={pertaining to commerce}
12011 }
12012
12013 @index{farawayland,
12014 name={far away land, a},
12015 text={a far away land},
12016 category={phrase},
12017 description={somewhere that's far away; a
12018 term often used in fairy tales}
12019 }
12020
12021 @index{GoldenArara,
12022 name={Golden Arara, the},
12023 text={the Golden Arara},
12024 category={phrase},
12025 description={a made-up item in the dummy text}
12026 }
12027
12028 @index{MightyHelmofKnuth,
12029 name={Mighty Helm of Knuth, the},
12030 text={the Mighty Helm of Knuth},
12031 category={phrase},
12032 description={a made-up item in the dummy text}
12033 }
12034
12035 @index{LegendarySword,
12036 name={Legendary Sword, the},
12037 text={the Legendary Sword},
12038 category={phrase},
12039 description={a made-up item in the dummy text}
12040 }
12041
12042 @index{BogofEternalGlossaries,
12043 name={Bog of Eternal Glossaries, the},
12044 text={the Bog of Eternal Glossaries},
12045 category={phrase},
12046 description={a made-up place in the dummy text}
12047 }
12048
12049 @index{DreadValeoftheEditors,
12050 name={Dread Vale of the Editors, the},
12051 text={the Dread Vale of the Editors},
12052 category={phrase},
12053 description={a made-up place in the dummy text}
12054 }
12055
12056 @index{butterfliesofchaos,
12057 name={butterflies of chaos, the},
12058 text={the butterflies of chaos},
12059 category={phrase},
12060 description={the butterfly effect is a popular method of describing aspects of chaos theory}
12061 }
12062
12063 @index{End,
12064 name={End, The},
12065 text={The End},
12066 category={phrase},
12067 description={denotes the end of a story, especially fairy tales}
12068 }
12069
12070 @index{locationlist.pageseparator,
12071 name={page separator},
12072 parent={locationlist},
12073 category={phrase},
12074 description={symbol used to separate page references}
12075 }
12076
12077 @index{locationlist.rangeseparator,
12078 name={range separator},
12079 parent={locationlist},
12080 category={phrase},
12081 description={symbol used to mark page range references}
12082 }
12083
12084 @index{motjuste,
12085 name={mot juste},
12086 description={the most appropriate word}
12087 }
12088
12089 @index{Poland,
12090 name={Poland},
12091 category={place},
12092 description={an Eastern European country}
12093 }
12094
12095 @index{places.Poland,
12096 name={Poland},
12097 parent={places},
12098 category={place},
12099 description={an Eastern European country}
12100 }
12101
12102 @index{Glasgow,
12103 name={Glasgow},
12104 category={place},
12105 description={a Scottish city}
12106 }
12107
12108 @index{places.Glasgow,
12109 name={Glasgow},
12110 parent={places},
12111 category={place},
12112 description={a Scottish city}
12113 }
12114
12115 @index{Iceland,
12116 name={Iceland},
12117 category={place},
12118 description={a Nordic island nation}
12119 }
12120
12121 @index{places.Iceland,
12122 name={Iceland},
12123 parent={places},
12124 category={place},
12125 description={a Nordic island nation}
12126 }
12127
12128 @index{Nghaerdydd,
12129 name={Nghaerdydd},
12130 category={place},
12131 description={Cardiff}
12132 }
12133
12134 @index{places.Nghaerdydd,
12135 name={Nghaerdydd},
12136 parent={places},
12137 category={place},
12138 description={Cardiff}
12139 }
12140
12141 @index{Nghymru,
12142 name={Nghymru},
12143 category={place},
12144 description={Wales}
12145 }
12146
12147 @index{places.Nghymru,
12148 name={Nghymru},
12149 parent={places},
12150 category={place},
12151 description={Wales}
12152 }
12153
12154 @index{Ffestiniog,
12155 name={Ffestiniog},
12156 category={place},
12157 description={a place in Wales}
12158 }
12159
12160 @index{places.Ffestiniog,
12161 name={Ffestiniog},
12162 parent={places},
12163 category={place},
12164 description={a place in Wales}
12165 }
12166
12167 @index{BogofEternalStench,
12168 name={Bog of Eternal Stench, the},
12169 text={the Bog of Eternal Stench},
12170 category={place},
12171 description={place in the film \glshyperlink{Labyrinth}}
12172 }
12173
12174 @index{places.BogofEternalStench,
12175 name={Bog of Eternal Stench, the},
12176 text={the Bog of Eternal Stench},
12177 parent={places},
12178 category={place},
12179 description={place in the film \glshyperlink{Labyrinth}}
12180 }
12181
12182 @index{JamesJoyce,
12183 name={Joyce, James},
12184 text={James Joyce},
12185 category={person},
12186 description={an author}
12187 }
12188
12189 @index{people.JamesJoyce,
12190 name={Joyce, James},
12191 text={James Joyce},
12192 parent={people},
12193 category={person},
12194 description={an author}
12195 }
12196
12197 @index{DonaldKnuth,
12198 name={Knuth, Donald},
12199 text={Donald Knuth},
12200 category={person},
12201 description={creator of \TeX}
12202 }
12203
12204 @index{people.DonaldKnuth,
12205 name={Knuth, Donald},
12206 text={Donald Knuth},
12207 parent={people},
12208 category={person},
12209 description={creator of \TeX}
12210 }
12211
12212 @index{PauloCereda,
12213 name={Cereda, Paulo},
12214 text={Paulo Cereda},
12215 category={person},
12216 description={creator of \glshyperlink{arara}}
12217 }
12218
12219 @index{people.PauloCereda,
12220 name={Cereda, Paulo},
12221 text={Paulo Cereda},
12222 parent={people},
12223 category={person},
12224 description={creator of \glshyperlink{arara}}
12225 }
12226
12227 @index{SirQuackalot,
12228 name={Quackalot, Sir},
12229 text={Sir Quackalot},
12230 category={person},
12231 description={fictitious character}
12232 }
12233
12234 @index{people.SirQuackalot,
12235 name={Quackalot, Sir},
12236 text={Sir Quackalot},
12237 parent={people},
12238 category={person},
12239 description={fictitious character}
12240 }
12241
12242 @index{theFairyGoose,
12243 name={Fairy Goose, the},
12244 text={the Fairy Goose},
12245 category={person},
12246 description={fictitious character}
12247 }
12248
12249 @index{people.theFairyGoose,
12250 name={Fairy Goose, the},
12251 text={the Fairy Goose},
12252 parent={people},
12253 category={person},
12254 description={fictitious character}
12255 }
12256
12257 @index{DavidCarlisle,
12258 name={Carlisle, David},
12259 text={David Carlisle},
12260 category={person},
12261 description={member of the \LaTeX3 team}
12262 }
12263
12264 @index{people.DavidCarlisle,
12265 name={Carlisle, David},
12266 text={David Carlisle},
12267 parent={people},
12268 category={person},
12269 description={member of the \LaTeX3 team}
12270 }
12271
12272 @index{JosephWright,
12273 name={Wright, Joseph},
12274 text={Joseph Wright},
12275 category={person},
12276 description={member of the \LaTeX3 team}
12277 }
12278
12279 @index{people.JosephWright,
12280 name={Wright, Joseph},
12281 text={Joseph Wright},
12282 parent={people},
12283 category={person},
12284 description={member of the \LaTeX3 team}
12285 }
12286
12287 @index{Ulysses,
12288 name={\tstidxbookfmt{Ulysses}},
12289 category={book},
12290 description={a modernist novel by James Joyce}
12291 }
12292
12293 @index{books.Ulysses,
12294 name={\tstidxbookfmt{Ulysses}},
12295 parent={books},
12296 category={book},
12297 description={a modernist novel by James Joyce}
12298 }
12299
12300 @index{SirQuackalotandtheGoldenArara,
12301 name={\tstidxbookfmt{Sir Quackalot and the Golden Arara}},
12302 category={book},
12303 description={a fictitious book}
12304 }
12305
12306 @index{books.SirQuackalotandtheGoldenArara,
12307 name={\tstidxbookfmt{Sir Quackalot and the Golden Arara}},
12308 parent={books},
12309 category={book},
12310 description={a fictitious book}
12311 }
12312
12313 @index{SirQuackalotandtheHyperLakeofDoom,
12314 name={\tstidxbookfmt{Sir Quackalot and the Hyper Lake of Doom}},
12315 category={book},
12316 description={a fictitious book}
12317 }
12318
12319 @index{books.SirQuackalotandtheHyperLakeofDoom,
12320 name={\tstidxbookfmt{Sir Quackalot and the Hyper Lake of Doom}},
12321 parent={books},
12322 category={book},
12323 description={a fictitious book}
12324 }
12325
12326 @index{CompactOxfordEnglishDictionary,
12327 name={\tstidxbookfmt{Compact Oxford English Dictionary}},
12328 category={book},
12329 description={a dictionary}
12330 }
12331
12332 @index{books.CompactOxfordEnglishDictionary,
12333 name={\tstidxbookfmt{Compact Oxford English Dictionary}},
12334 parent={books},
12335 category={book},
12336 description={a dictionary}
12337 }
12338
12339 @index{HitchhikersGuidetotheGalaxy,
12340 name={\tstidxbookfmt{Hitchhiker's Guide to the Galaxy, the}},
12341 text={\tstidxbookfmt{the Hitchhiker's Guide to the Galaxy}},
12342 category={book},
12343 description={a comedy series by Douglas Adams, originally created for radio but later
12344 adapted to book, TV and film}
12345 }
12346
12347 @index{books.HitchhikersGuidetotheGalaxy,
12348 name={\tstidxbookfmt{Hitchhiker's Guide to the Galaxy, the}},
12349 text={\tstidxbookfmt{the Hitchhiker's Guide to the Galaxy}},
12350 parent={books},
12351 category={book},
12352 description={a comedy series by Douglas Adams, originally created for radio but later
12353 adapted to book, TV and film}
12354 }
12355
12356 @index{AdventuresofSirQuackalot,
12357 name={\tstidxbookfmt{Adventures of Sir Quackalot, the}},
12358 text={\tstidxbookfmt{the Adventures of Sir Quackalot}},
12359 category={book},
12360 description={a fictitious book}
12361 }
12362
12363 @index{books.AdventuresofSirQuackalot,
12364 name={\tstidxbookfmt{Adventures of Sir Quackalot, the}},
12365 text={\tstidxbookfmt{the Adventures of Sir Quackalot}},
12366 parent={books},
12367 category={book},
12368 description={a fictitious book}
12369 }
12370
12371 @index{Labyrinth,
12372 name={\tstidxfilmfmt{Labyrinth}},
12373 category={film},
12374 description={a musical fantasy film}
12375 }
12376
12377 @index{films.Labyrinth,
12378 name={\tstidxfilmfmt{Labyrinth}},
12379 parent={films},
12380 category={film},
12381 description={a musical fantasy film}
12382 }
12383
12384 @index{ThirdMan,
12385 name={\tstidxfilmfmt{Third Man, The}},
12386 text={\tstidxfilmfmt{The Third Man}},
12387 category={film},
12388 description={a British film noir}
12389 }
12390
12391 @index{films.ThirdMan,
12392 name={\tstidxfilmfmt{Third Man, The}},
12393 text={\tstidxfilmfmt{The Third Man}},
12394 parent={films},
12395 category={film},
12396 description={a British film noir}
12397 }
12398
12399 @index{TeX,
12400 name={\TeX},
12401 category={symbol},
12402 description={a typesetting system created by Donald Knuth}
12403 }
12404
12405 @index{fx,
12406 name={$f(\vec{x})$},
12407 text={f(\vec{x})},
12408 category={math},
12409 description={a function of $x$}
12410 }
12411
12412 @index{n,
12413 name={$n$},
12414 text={n},
12415 category={math},
12416 description={an integer}
12417 }
12418
12419 @index{E,
12420 name={$E$},
12421 text={E},
12422 category={math},
12423 description={energy}
12424 }
12425
12426 @index{testidxpackage,
12427 name={\tstidxstyfmt{testidx} package},
12428 text={\tstidxstyfmt{testidx}},
12429 category={package},
12430 description={package that produces dummy text for testing
12431 index styles and indexing applications}
12432 }
12433
12434 @index{packages.testidxpackage,
12435 name={\tstidxstyfmt{testidx}},
12436 parent={packages},
12437 category={package},
12438 description={package that produces dummy text for testing
12439 index styles and indexing applications}
12440 }
12441
12442 @index{testidxglossariespackage,
12443 name={\tstidxstyfmt{testidx-glossaries} package},
12444 text={\tstidxstyfmt{testidx-glossaries}},
12445 category={package},
12446 description={package that produces dummy text
12447 for testing glossary styles and indexing applications that integrate
12448 with the \glshyperlink{glossariespackage} or
12449 \glshyperlink{glossariesextrapackage} packages}
12450 }
12451
12452 @index{packages.testidxglossariespackage,
12453 name={\tstidxstyfmt{testidx-glossaries}},
12454 parent={packages},
12455 category={package},
12456 description={package that produces dummy text
12457 for testing glossary styles and indexing applications that integrate
12458 with the \glshyperlink{glossariespackage} or
12459 \glshyperlink{glossariesextrapackage} packages}
12460 }
12461
12462 @index{glossariespackage,
12463 name={\tstidxstyfmt{glossaries} package},
12464 text={\tstidxstyfmt{glossaries}},
12465 category={package},
12466 description={a package for creating glossaries or lists
12467 of terms, symbols or abbreviations}
12468 }
12469
12470 @index{packages.glossariespackage,
12471 name={\tstidxstyfmt{glossaries}},
12472 parent={packages},
12473 category={package},
12474 description={a package for creating glossaries or lists
12475 of terms, symbols or abbreviations}
12476 }
12477
12478 @index{glossariesextrapackage,
12479 name={\tstidxstyfmt{glossaries-extra} package},
12480 text={\tstidxstyfmt{glossaries-extra}},
12481 category={package},
12482 description={an extension to the \glshyperlink{glossariespackage} package}
12483 }
12484
12485 @index{packages.glossariesextrapackage,
12486 name={\tstidxstyfmt{glossaries-extra}},
12487 parent={packages},
12488 category={package},
12489 description={an extension to the \glshyperlink{glossariespackage} package}
12490 }
12491
12492 @index{hyperrefpackage,
12493 name={\tstidxstyfmt{hyperref} package},
12494 text={\tstidxstyfmt{hyperref}},
12495 category={package},
12496 description={a package that provides extensive support for hypertext}
12497 }
12498
12499 @index{packages.hyperrefpackage,
12500 name={\tstidxstyfmt{hyperref}},
12501 parent={packages},
12502 category={package},
12503 description={a package that provides extensive support for hypertext}
12504 }
12505
12506 @index{lipsumpackage,
12507 name={\tstidxstyfmt{lipsum} package},
12508 text={\tstidxstyfmt{lipsum}},
12509 category={package},
12510 description={a package that generates dummy text}
12511 }
12512
12513 @index{packages.lipsumpackage,
12514 name={\tstidxstyfmt{lipsum}},
12515 parent={packages},
12516 category={package},
12517 description={a package that generates dummy text}
12518 }
12519
12520 @index{inputencpackage,
12521 name={\tstidxstyfmt{inputenc} package},
12522 text={\tstidxstyfmt{inputenc}},
12523 category={package},
12524 description={a package that can be used to identify the document
12525 encoding}
12526 }
12527
12528 @index{packages.inputencpackage,
12529 name={\tstidxstyfmt{inputenc}},
12530 parent={packages},
12531 category={package},
12532 description={a package that can be used to identify the document
12533 encoding}
12534 }
12535
12536 @index{fontencpackage,
12537 name={\tstidxstyfmt{fontenc} package},
12538 text={\tstidxstyfmt{fontenc}},
12539 category={package},
12540 description={a package that can be used to set the font
12541 encoding},
12542 seealso={inputencpackage}
12543 }
12544
12545 @index{packages.fontencpackage,
12546 name={\tstidxstyfmt{fontenc}},
12547 parent={packages},
12548 category={package},
12549 description={a package that can be used to set the font encoding}
12550 }
12551
12552 @index{amsmathpackage,
12553 name={\tstidxstyfmt{amsmath} package},
12554 text={\tstidxstyfmt{amsmath}},
12555 category={package},
12556 description={a package that provides AMS mathematical
12557 facilities}
12558 }
12559
12560 @index{packages.amsmathpackage,
12561 name={\tstidxstyfmt{amsmath}},
12562 parent={packages},
12563 category={package},
12564 description={a package that provides AMS mathematical
12565 facilities}
12566 }
12567
12568 @index{amssymbpackage,
12569 name={\tstidxstyfmt{amssymb} package},
12570 text={\tstidxstyfmt{amssymb}},
12571 category={package},
12572 description={a package that provides mathematical
12573 symbols}
12574 }
12575
12576 @index{packages.amssymbpackage,
12577 name={\tstidxstyfmt{amssymb}},
12578 parent={packages},
12579 category={package},
12580 description={a package that provides mathematical
12581 symbols}
12582 }
12583
12584 @index{longtablepackage,
12585 name={\tstidxstyfmt{longtable} package},
12586 text={\tstidxstyfmt{longtable}},
12587 category={package},
12588 description={a package that allows tables to flow over
12589 page boundaries}
12590 }
12591
12592 @index{packages.longtablepackage,
12593 name={\tstidxstyfmt{longtable}},
12594 parent={packages},
12595 category={package},
12596 description={a package that allows tables to flow over
12597 page boundaries}
12598 }
12599
12600 @index{testidxglossariespackage.extra,
12601 name={\tstidxstyoptfmt{extra}},
12602 parent={testidxglossariespackage},
12603 category={packageoption},
12604 description={load the \glshyperlink{glossariesextrapackage} package}
12605 }
12606
12607 @index{packages.testidxglossariespackage.extra,
12608 name={\tstidxstyoptfmt{extra}},
12609 parent={packages.testidxglossariespackage},
12610 category={packageoption},
12611 description={load the \glshyperlink{glossariesextrapackage} package}
12612 }
12613
12614 @index{testidxglossariespackage.noextra,
12615 name={\tstidxstyoptfmt{noextra}},
12616 parent={testidxglossariespackage},
12617 category={packageoption},
12618 description={don't load the \glshyperlink{glossariesextrapackage}
12619 package (only load \glshyperlink{glossariespackage})}
12620 }
12621
12622 @index{packages.testidxglossariespackage.noextra,
12623 name={\tstidxstyoptfmt{noextra}},
12624 parent={packages.testidxglossariespackage},
12625 category={packageoption},
12626 description={don't load the \glshyperlink{glossariesextrapackage}
12627 package (only load \glshyperlink{glossariespackage})}
12628 }
12629
12630 @index{testidxglossariespackage.noseekey,
12631 name={\tstidxstyoptfmt{noseekey}},
12632 parent={testidxglossariespackage},
12633 category={packageoption},
12634 description={don't use the \tstidxqt{see} key to implement the cross-referencing (use
12635 \glshyperlink{cs.glssee} instead)}
12636 }
12637
12638 @index{packages.testidxglossariespackage.noseekey,
12639 name={\tstidxstyoptfmt{noseekey}},
12640 parent={packages.testidxglossariespackage},
12641 category={packageoption},
12642 description={don't use the \tstidxqt{see} key to implement the cross-referencing (use
12643 \glshyperlink{cs.glssee} instead)}
12644 }
12645
12646 @index{testidxglossariespackage.seekey,
12647 name={\tstidxstyoptfmt{seekey}},
12648 parent={testidxglossariespackage},
12649 category={packageoption},
12650 description={use the \tstidxqt{see} key to implement the cross-referencing}
12651 }
12652
12653 @index{packages.testidxglossariespackage.seekey,
12654 name={\tstidxstyoptfmt{seekey}},
12655 parent={packages.testidxglossariespackage},
12656 category={packageoption},
12657 description={use the \tstidxqt{see} key to implement the cross-referencing}
12658 }
12659
12660 @index{testidxglossariespackage.xindy,
12661 name={\tstidxstyoptfmt{xindy}},
12662 parent={testidxglossariespackage},
12663 category={packageoption},
12664 description={set up the \glshyperlink{glossariespackage} package to use \glshyperlink{xindy}
12665 as the indexing application}
12666 }
12667
12668 @index{packages.testidxglossariespackage.xindy,
12669 name={\tstidxstyoptfmt{xindy}},
12670 parent={packages.testidxglossariespackage},
12671 category={packageoption},
12672 description={set up the \glshyperlink{glossariespackage} package to use \glshyperlink{xindy}
12673 as the indexing application}
12674 }
12675
12676 @index{testidxglossariespackage.tex,
12677 name={\tstidxstyoptfmt{tex}},
12678 parent={testidxglossariespackage},
12679 category={packageoption},
12680 description={set up the \glshyperlink{glossariespackage} package to use \TeX\ to
12681 sort and collate the entries}
12682 }
12683
12684 @index{packages.testidxglossariespackage.tex,
12685 name={\tstidxstyoptfmt{tex}},
12686 parent={packages.testidxglossariespackage},
12687 category={packageoption},
12688 description={set up the \glshyperlink{glossariespackage} package to use \TeX\ to
12689 sort and collate the entries}
12690 }
12691
12692 @index{testidxglossariespackage.bib2gls,
12693 name={\tstidxstyoptfmt{bib2gls}},
12694 parent={testidxglossariespackage},
12695 category={packageoption},
12696 description={set up the \glshyperlink{glossariesextrapackage} package to use
12697 \glshyperlink{bib2gls} as the indexing application}
12698 }
12699
12700 @index{packages.testidxglossariespackage.bib2gls,
12701 name={\tstidxstyoptfmt{bib2gls}},
12702 parent={packages.testidxglossariespackage},
12703 category={packageoption},
12704 description={set up the \glshyperlink{glossariesextrapackage} package to use
12705 \glshyperlink{bib2gls} as the indexing application}
12706 }
12707
12708 @index{testidxglossariespackage.noglsnumbers,
12709 name={\tstidxstyoptfmt{noglsnumbers}},
12710 parent={testidxglossariespackage},
12711 category={packageoption},
12712 description={pass the \tstidxstyoptfmt{glsnumbers=false} option to the
12713 \glshyperlink{glossariespackage} package}
12714 }
12715
12716 @index{packages.testidxglossariespackage.noglsnumbers,
12717 name={\tstidxstyoptfmt{noglsnumbers}},
12718 parent={packages.testidxglossariespackage},
12719 category={packageoption},
12720 description={pass the \tstidxstyoptfmt{glsnumbers=false} option to the
12721 \glshyperlink{glossariespackage} package}
12722 }
12723
12724 @index{testidxglossariespackage.glsnumbers,
12725 name={\tstidxstyoptfmt{glsnumbers}},
12726 parent={testidxglossariespackage},
12727 category={packageoption},
12728 description={pass the \tstidxstyoptfmt{glsnumbers=true} option to the
12729 \glshyperlink{glossariespackage} package}
12730 }
12731
12732 @index{packages.testidxglossariespackage.glsnumbers,
12733 name={\tstidxstyoptfmt{glsnumbers}},
12734 parent={packages.testidxglossariespackage},
12735 category={packageoption},
12736 description={pass the \tstidxstyoptfmt{glsnumbers=true} option to the
12737 \glshyperlink{glossariespackage} package}
12738 }
12739
12740 @index{testidxglossariespackage.verbose,
12741 name={\tstidxstyoptfmt{verbose}},
12742 parent={testidxglossariespackage},
12743 category={packageoption},
12744 description={write information about the test entries in the transcript file}
12745 }
12746
12747 @index{packages.testidxglossariespackage.verbose,
12748 name={\tstidxstyoptfmt{verbose}},
12749 parent={packages.testidxglossariespackage},
12750 category={packageoption},
12751 description={write information about the test entries in the transcript file}
12752 }
12753
12754 @index{testidxglossariespackage.noverbose,
12755 name={\tstidxstyoptfmt{noverbose}},
12756 parent={testidxglossariespackage},
12757 category={packageoption},
12758 description={don't write information about the test entries in the transcript file}
12759 }
12760
12761 @index{packages.testidxglossariespackage.noverbose,
12762 name={\tstidxstyoptfmt{noverbose}},
12763 parent={packages.testidxglossariespackage},
12764 category={packageoption},
12765 description={don't write information about the test entries in the transcript file}
12766 }
12767
12768 @index{testidxglossariespackage.desc,
12769 name={\tstidxstyoptfmt{desc}},
12770 parent={testidxglossariespackage},
12771 category={packageoption},
12772 description={add descriptions to the dummy entries}
12773 }
12774
12775 @index{packages.testidxglossariespackage.desc,
12776 name={\tstidxstyoptfmt{desc}},
12777 parent={packages.testidxglossariespackage},
12778 category={packageoption},
12779 description={add descriptions to the dummy entries}
12780 }
12781
12782 @index{testidxpackage.hidemarks,
12783 name={\tstidxstyoptfmt{hidemarks}},
12784 parent={testidxpackage},
12785 category={packageoption},
12786 description={hide the marks showing where the indexing is occurring}
12787 }
12788
12789 @index{packages.testidxpackage.hidemarks,
12790 name={\tstidxstyoptfmt{hidemarks}},
12791 parent={packages.testidxpackage},
12792 category={packageoption},
12793 description={hide the marks showing where the indexing is occurring}
12794 }
12795
12796 @index{testidxpackage.showmarks,
12797 name={\tstidxstyoptfmt{showmarks}},
12798 parent={testidxpackage},
12799 category={packageoption},
12800 description={mark where the indexing is occurring}
12801 }
12802
12803 @index{packages.testidxpackage.showmarks,
12804 name={\tstidxstyoptfmt{showmarks}},
12805 parent={packages.testidxpackage},
12806 category={packageoption},
12807 description={mark where the indexing is occurring}
12808 }
12809
12810 @index{testidxpackage.notestencaps,
12811 name={\tstidxstyoptfmt{notestencaps}},
12812 parent={testidxpackage},
12813 category={packageoption},
12814 description={don't use the test encaps}
12815 }
12816
12817 @index{packages.testidxpackage.notestencaps,
12818 name={\tstidxstyoptfmt{notestencaps}},
12819 parent={packages.testidxpackage},
12820 category={packageoption},
12821 description={don't use the test encaps}
12822 }
12823
12824 @index{testidxpackage.verbose,
12825 name={\tstidxstyoptfmt{verbose}},
12826 parent={testidxpackage},
12827 category={packageoption},
12828 description={show the index commands in the document text}
12829 }
12830
12831 @index{packages.testidxpackage.verbose,
12832 name={\tstidxstyoptfmt{verbose}},
12833 parent={packages.testidxpackage},
12834 category={packageoption},
12835 description={show the index commands in the document text}
12836 }
12837
12838 @index{testidxpackage.noverbose,
12839 name={\tstidxstyoptfmt{noverbose}},
12840 parent={testidxpackage},
12841 category={packageoption},
12842 description={don't show the index commands in the document text}
12843 }
12844
12845 @index{packages.testidxpackage.noverbose,
12846 name={\tstidxstyoptfmt{noverbose}},
12847 parent={packages.testidxpackage},
12848 category={packageoption},
12849 description={don't show the index commands in the document text}
12850 }
12851
12852 @index{testidxpackage.digraphs,
12853 name={\tstidxstyoptfmt{digraphs}},
12854 parent={testidxpackage},
12855 category={packageoption},
12856 description={use glyphs instead of the two-character digraphs for certain words}
12857 }
12858
12859 @index{packages.testidxpackage.digraphs,
12860 name={\tstidxstyoptfmt{digraphs}},
12861 parent={packages.testidxpackage},
12862 category={packageoption},
12863 description={use glyphs instead of the two-character digraphs for certain words}
12864 }
12865
12866 @index{testidxpackage.german,
12867 name={\tstidxstyoptfmt{german}},
12868 parent={testidxpackage},
12869 category={packageoption},
12870 description={change the \glshyperlink{makeindex} quote character to allow the
12871 double-quote character to indicate an umlaut}
12872 }
12873
12874 @index{packages.testidxpackage.german,
12875 name={\tstidxstyoptfmt{german}},
12876 parent={packages.testidxpackage},
12877 category={packageoption},
12878 description={change the \glshyperlink{makeindex} quote character to allow the
12879 double-quote character to indicate an umlaut}
12880 }
12881
12882 @index{testidxpackage.ngerman,
12883 name={\tstidxstyoptfmt{ngerman}},
12884 parent={testidxpackage},
12885 category={packageoption},
12886 description={change the \glshyperlink{makeindex} quote character to allow the
12887 double-quote character to indicate an umlaut}
12888 }
12889
12890 @index{packages.testidxpackage.ngerman,
12891 name={\tstidxstyoptfmt{ngerman}},
12892 parent={packages.testidxpackage},
12893 category={packageoption},
12894 description={change the \glshyperlink{makeindex} quote character to allow the
12895 double-quote character to indicate an umlaut}
12896 }
12897
12898 @index{testidxpackage.sanitize,
12899 name={\tstidxstyoptfmt{sanitize}},
12900 parent={testidxpackage},
12901 category={packageoption},
12902 description={sanitize the sort value before passing it to the indexing command}
12903 }
12904
12905 @index{packages.testidxpackage.sanitize,
12906 name={\tstidxstyoptfmt{sanitize}},
12907 parent={packages.testidxpackage},
12908 category={packageoption},
12909 description={sanitize the sort value before passing it to the indexing command}
12910 }
12911
12912 @index{testidxglossariespackage.sanitize,
12913 name={\tstidxstyoptfmt{sanitize}},
12914 parent={testidxglossariespackage},
12915 category={packageoption},
12916 description={sanitize the sort value}
12917 }
12918
12919 @index{packages.testidxglossariespackage.sanitize,
12920 name={\tstidxstyoptfmt{sanitize}},
12921 parent={packages.testidxglossariespackage},
12922 category={packageoption},
12923 description={sanitize the sort value}
12924 }
12925
12926 @index{testidxpackage.nosanitize,
12927 name={\tstidxstyoptfmt{nosanitize}},
12928 parent={testidxpackage},
12929 category={packageoption},
12930 description={don't sanitize the sort value before passing it to the indexing command}
12931 }
12932
12933 @index{packages.testidxpackage.nosanitize,
12934 name={\tstidxstyoptfmt{nosanitize}},
12935 parent={packages.testidxpackage},
12936 category={packageoption},
12937 description={don't sanitize the sort value before passing it to the indexing command}
12938 }
12939
12940 @index{testidxglossariespackage.nosanitize,
12941 name={\tstidxstyoptfmt{nosanitize}},
12942 parent={testidxglossariespackage},
12943 category={packageoption},
12944 description={don't sanitize the sort value}
12945 }
12946
12947 @index{packages.testidxglossariespackage.nosanitize,
12948 name={\tstidxstyoptfmt{nosanitize}},
12949 parent={packages.testidxglossariespackage},
12950 category={packageoption},
12951 description={don't sanitize the sort value}
12952 }
12953
12954 @index{testidxpackage.prefix,
12955 name={\tstidxstyoptfmt{prefix}},
12956 parent={testidxpackage},
12957 category={packageoption},
12958 description={insert a prefix before the sort value for certain symbols}
12959 }
12960
12961 @index{packages.testidxpackage.prefix,
12962 name={\tstidxstyoptfmt{prefix}},
12963 parent={packages.testidxpackage},
12964 category={packageoption},
12965 description={insert a prefix before the sort value for certain symbols}
12966 }
12967
12968 @index{testidxpackage.noprefix,
12969 name={\tstidxstyoptfmt{noprefix}},
12970 parent={testidxpackage},
12971 category={packageoption},
12972 description={don't insert a prefix before the sort value for certain symbols}
12973 }
12974
12975 @index{packages.testidxpackage.noprefix,
12976 name={\tstidxstyoptfmt{noprefix}},
12977 parent={packages.testidxpackage},
12978 category={packageoption},
12979 description={don't insert a prefix before the sort value for certain symbols}
12980 }
12981
12982 @index{testidxpackage.nostripaccents,
12983 name={\tstidxstyoptfmt{nostripaccents}},
12984 parent={testidxpackage},
12985 category={packageoption},
12986 description={don't strip accent commands from the sort value in
12987 ASCII mode}
12988 }
12989
12990 @index{packages.testidxpackage.nostripaccents,
12991 name={\tstidxstyoptfmt{nostripaccents}},
12992 parent={packages.testidxpackage},
12993 category={packageoption},
12994 description={don't strip accent commands from the sort value in
12995 ASCII mode}
12996 }
12997
12998 @index{testidxpackage.stripaccents,
12999 name={\tstidxstyoptfmt{stripaccents}},
13000 parent={testidxpackage},
13001 category={packageoption},
13002 description={strip accent commands from the sort value in
13003 ASCII mode}
13004 }
13005
13006 @index{packages.testidxpackage.stripaccents,
13007 name={\tstidxstyoptfmt{stripaccents}},
13008 parent={packages.testidxpackage},
13009 category={packageoption},
13010 description={strip accent commands from the sort value in
13011 ASCII mode}
13012 }
13013
13014 @index{testidxglossariespackage.nostripaccents,
13015 name={\tstidxstyoptfmt{nostripaccents}},
13016 parent={testidxglossariespackage},
13017 category={packageoption},
13018 description={don't strip accent commands from the sort value in
13019 ASCII mode}
13020 }
13021
13022 @index{packages.testidxglossariespackage.nostripaccents,
13023 name={\tstidxstyoptfmt{nostripaccents}},
13024 parent={packages.testidxglossariespackage},
13025 category={packageoption},
13026 description={don't strip accent commands from the sort value in
13027 ASCII mode}
13028 }
13029
13030 @index{testidxglossariespackage.stripaccents,
13031 name={\tstidxstyoptfmt{stripaccents}},
13032 parent={testidxglossariespackage},
13033 category={packageoption},
13034 description={strip accent commands from the sort value in
13035 ASCII mode}
13036 }
13037
13038 @index{packages.testidxglossariespackage.stripaccents,
13039 name={\tstidxstyoptfmt{stripaccents}},
13040 parent={packages.testidxglossariespackage},
13041 category={packageoption},
13042 description={strip accent commands from the sort value in
13043 ASCII mode}
13044 }
13045
13046 @index{hyperrefpackage.hidelinks,
13047 name={\tstidxstyoptfmt{hidelinks}},
13048 parent={hyperrefpackage},
13049 category={packageoption},
13050 description={don't use a visual effect to show the hyperlinks}
13051 }
13052
13053 @index{packages.hyperrefpackage.hidelinks,
13054 name={\tstidxstyoptfmt{hidelinks}},
13055 parent={packages.hyperrefpackage},
13056 category={packageoption},
13057 description={don't use a visual effect to show the hyperlinks}
13058 }
13059
13060 @index{fontencpackage.T1,
13061 name={\tstidxstyoptfmt{T1}},
13062 parent={fontencpackage},
13063 category={packageoption},
13064 description={set the font encoding to T1}
13065 }
13066
13067 @index{packages.fontencpackage.T1,
13068 name={\tstidxstyoptfmt{T1}},
13069 parent={packages.fontencpackage},
13070 category={packageoption},
13071 description={set the font encoding to T1}
13072 }
13073
13074 @index{theindexenvironment,
13075 name={\tstidxenvfmt{theindex} environment},
13076 text={\tstidxenvfmt{theindex}},
13077 category={environment},
13078 description={environment used to display an index}
13079 }
13080
13081 @index{alignenvironment,
13082 name={\tstidxenvfmt{align} environment},
13083 text={\tstidxenvfmt{align}},
13084 category={environment},
13085 description={environment provided by the
13086 \glshyperlink{amsmathpackage} package to align equations}
13087 }
13088
13089 @index{eqnarrayenvironment,
13090 name={\tstidxenvfmt{eqnarray} environment},
13091 text={\tstidxenvfmt{eqnarray}},
13092 category={environment},
13093 description={environment provided by the \LaTeX\ kernel to align equations}
13094 }
13095
13096 @index{bib2gls,
13097 name={\tstidxappfmt{bib2gls}},
13098 category={application},
13099 description={an indexing application designed
13100 to work with the \glshyperlink{glossariesextrapackage} package}
13101 }
13102
13103 @index{applications.bib2gls,
13104 name={\tstidxappfmt{bib2gls}},
13105 parent={applications},
13106 category={application},
13107 description={an indexing application designed
13108 to work with the \glshyperlink{glossariesextrapackage} package}
13109 }
13110
13111 @index{makeindex,
13112 name={\tstidxappfmt{makeindex}},
13113 category={application},
13114 description={an indexing application}
13115 }
13116
13117 @index{applications.makeindex,
13118 name={\tstidxappfmt{makeindex}},
13119 parent={applications},
13120 category={application},
13121 description={an indexing application}
13122 }
13123
13124 @index{xindy,
13125 name={\tstidxappfmt{xindy}},
13126 category={application},
13127 description={a highly-configurable indexing application with
13128 localisation support}
13129 }
13130
13131 @index{applications.xindy,
13132 name={\tstidxappfmt{xindy}},
13133 parent={applications},
13134 category={application},
13135 description={a highly-configurable indexing application with
13136 localisation support}
13137 }
13138
13139 @index{texdoc,
13140 name={\tstidxappfmt{texdoc}},
13141 category={application},
13142 description={an application for viewing documentation
13143 installed in a \TeX\ distribution}
13144 }
13145
13146 @index{applications.texdoc,
13147 name={\tstidxappfmt{texdoc}},
13148 parent={applications},
13149 category={application},
13150 description={an application for viewing documentation
13151 installed in a \TeX\ distribution}
13152 }
13153
13154 @index{arara,
13155 name={\tstidxappfmt{arara}},
13156 category={application},
13157 description={an automation tool for building documents}
13158 }
13159
13160 @index{applications.arara,
13161 name={\tstidxappfmt{arara}},
13162 parent={applications},
13163 category={application},
13164 description={an automation tool for building documents}
13165 }
13166
13167 @index{Perl,
13168 name={\tstidxappfmt{Perl}},
13169 category={application},
13170 description={a scripting language}
13171 }
13172
13173 @index{applications.Perl,
13174 name={\tstidxappfmt{Perl}},
13175 parent={applications},
13176 category={application},
13177 description={a scripting language}
13178 }
13179
13180 @index{makeglossaries,
13181 name={\tstidxappfmt{makeglossaries}},
13182 category={application},
13183 description={a Perl script provided with the
13184 \glshyperlink{glossariespackage} package that automatically runs
13185 either \glshyperlink{makeindex} or \glshyperlink{xindy}
13186 according to the document settings}
13187 }
13188
13189 @index{applications.makeglossaries,
13190 name={\tstidxappfmt{makeglossaries}},
13191 parent={applications},
13192 category={application},
13193 description={a Perl script provided with the
13194 \glshyperlink{glossariespackage} package that automatically runs
13195 either \glshyperlink{makeindex} or \glshyperlink{xindy}
13196 according to the document settings}
13197 }
13198
13199 @index{makeglossarieslite,
13200 name={\tstidxappfmt{makeglossaries-lite}},
13201 category={application},
13202 description={a light-weight Lua alternative to \glshyperlink{makeglossaries}}
13203 }
13204
13205 @index{applications.makeglossarieslite,
13206 name={\tstidxappfmt{makeglossaries-lite}},
13207 parent={applications},
13208 category={application},
13209 description={a light-weight Lua alternative to \glshyperlink{makeglossaries}}
13210 }
13211
13212 @index{Emacs,
13213 name={\tstidxappfmt{Emacs}},
13214 category={application},
13215 description={a text editor}
13216 }
13217
13218 @index{applications.Emacs,
13219 name={\tstidxappfmt{Emacs}},
13220 parent={applications},
13221 category={application},
13222 description={a text editor}
13223 }
13224
13225 @index{Vi,
13226 name={\tstidxappfmt{Vi}},
13227 category={application},
13228 description={a text editor}
13229 }
13230
13231 @index{applications.Vi,
13232 name={\tstidxappfmt{Vi}},
13233 parent={applications},
13234 category={application},
13235 description={a text editor}
13236 }
13237
13238 @index{xindy.Lswedish,
13239 name={\tstidxappoptfmt{-L swedish}},
13240 parent={xindy},
13241 category={applicationoption},
13242 description={use the Swedish language module}
13243 }
13244
13245 @index{applications.xindy.Lswedish,
13246 name={\tstidxappoptfmt{-L swedish}},
13247 parent={applications.xindy},
13248 category={applicationoption},
13249 description={use the Swedish language module}
13250 }
13251
13252 @index{Lswedish.xindyoption,
13253 name={\tstidxappoptfmt{-L swedish} (\tstidxappfmt{xindy})},
13254 category={applicationoption},
13255 description={use the Swedish language module}
13256 }
13257
13258 @index{xindy.Ldanish,
13259 name={\tstidxappoptfmt{-L danish}},
13260 parent={xindy},
13261 category={applicationoption},
13262 description={use the Danish language module}
13263 }
13264
13265 @index{applications.xindy.Ldanish,
13266 name={\tstidxappoptfmt{-L danish}},
13267 parent={applications.xindy},
13268 category={applicationoption},
13269 description={use the Danish language module}
13270 }
13271
13272 @index{Ldanish.xindyoption,
13273 name={\tstidxappoptfmt{-L danish} (\tstidxappfmt{xindy})},
13274 category={applicationoption},
13275 description={use the Danish language module}
13276 }
13277
13278 @index{xindy.Lpolish,
13279 name={\tstidxappoptfmt{-L polish}},
13280 parent={xindy},
13281 category={applicationoption},
13282 description={use the Polish language module}
13283 }
13284
13285 @index{applications.xindy.Lpolish,
13286 name={\tstidxappoptfmt{-L polish}},
13287 parent={applications.xindy},
13288 category={applicationoption},
13289 description={use the Polish language module}
13290 }
13291
13292 @index{Lpolish.xindyoption,
13293 name={\tstidxappoptfmt{-L polish} (\tstidxappfmt{xindy})},
13294 category={applicationoption},
13295 description={use the Polish language module}
13296 }
13297
13298 @index{xindy.Licelandic,
13299 name={\tstidxappoptfmt{-L icelandic}},
13300 parent={xindy},
13301 category={applicationoption},
13302 description={use the Icelandic language module}
13303 }
13304
13305 @index{applications.xindy.Licelandic,
13306 name={\tstidxappoptfmt{-L icelandic}},
13307 parent={applications.xindy},
13308 category={applicationoption},
13309 description={use the Icelandic language module}
13310 }
13311
13312 @index{Licelandic.xindyoption,
13313 name={\tstidxappoptfmt{-L icelandic} (\tstidxappfmt{xindy})},
13314 category={applicationoption},
13315 description={use the Icelandic language module}
13316 }
13317
13318 @index{xindy.Lgermanduden,
13319 name={\tstidxappoptfmt{-L german-duden}},
13320 parent={xindy},
13321 category={applicationoption},
13322 description={use the German language module with the duden setting}
13323 }
13324
13325 @index{applications.xindy.Lgermanduden,
13326 name={\tstidxappoptfmt{-L german-duden}},
13327 parent={applications.xindy},
13328 category={applicationoption},
13329 description={use the German language module with the duden setting}
13330 }
13331
13332 @index{Lgermanduden.xindyoption,
13333 name={\tstidxappoptfmt{-L german-duden} (\tstidxappfmt{xindy})},
13334 category={applicationoption},
13335 description={use the German language module with the duden setting}
13336 }
13337
13338 @index{xindy.Lgermandin5007,
13339 name={\tstidxappoptfmt{-L german-din5007}},
13340 parent={xindy},
13341 category={applicationoption},
13342 description={use the German language module with the din5007 setting}
13343 }
13344
13345 @index{applications.xindy.Lgermandin5007,
13346 name={\tstidxappoptfmt{-L german-din5007}},
13347 parent={applications.xindy},
13348 category={applicationoption},
13349 description={use the German language module with the din5007 setting}
13350 }
13351
13352 @index{Lgermandin5007.xindyoption,
13353 name={\tstidxappoptfmt{-L german-din5007} (\tstidxappfmt{xindy})},
13354 category={applicationoption},
13355 description={use the German language module with the din5007 setting}
13356 }
13357
13358 @index{xindy.Mord/letorder,
13359 name={\tstidxappoptfmt{-M ord/letorder}},
13360 parent={xindy},
13361 category={applicationoption},
13362 description={use the letter ordering module}
13363 }
13364
13365 @index{applications.xindy.Mord/letorder,
13366 name={\tstidxappoptfmt{-M ord/letorder}},
13367 parent={applications.xindy},
13368 category={applicationoption},
13369 description={use the letter ordering module}
13370 }
13371
13372 @index{Mord/letorder.xindyoption,
13373 name={\tstidxappoptfmt{-M ord/letorder} (\tstidxappfmt{xindy})},
13374 category={applicationoption},
13375 description={use the letter ordering module}
13376 }
13377
13378 @index{makeindex.g,
13379 name={\tstidxappoptfmt{-g}},
13380 parent={makeindex},
13381 category={applicationoption},
13382 description={use the German setting that
13383 recognises the double-quote character as an umlaut command}
13384 }
13385
13386 @index{applications.makeindex.g,
13387 name={\tstidxappoptfmt{-g}},
13388 parent={applications.makeindex},
13389 category={applicationoption},
13390 description={use the German setting that
13391 recognises the double-quote character as an umlaut command}
13392 }
13393
13394 @index{g.makeindexoption,
13395 name={\tstidxappoptfmt{-g} (\tstidxappfmt{makeindex})},
13396 category={applicationoption},
13397 description={use the German setting that
13398 recognises the double-quote character as an umlaut command}
13399 }
13400
13401 @index{makeindex.l,
13402 name={\tstidxappoptfmt{-l}},
13403 parent={makeindex},
13404 category={applicationoption},
13405 description={use letter ordering}
13406 }
13407
13408 @index{applications.makeindex.l,
13409 name={\tstidxappoptfmt{-l}},
13410 parent={applications.makeindex},
13411 category={applicationoption},
13412 description={use letter ordering}
13413 }
13414
13415 @index{l.makeindexoption,
13416 name={\tstidxappoptfmt{-l} (\tstidxappfmt{makeindex})},
13417 category={applicationoption},
13418 description={use letter ordering}
13419 }
13420
13421 @index{tstidxencapi,
13422 name={\texttt{tstidxencapi} (\tstidxcsfmt{tstidxencapi})},
13423 text={\texttt{tstidxencapi}},
13424 category={encapcsn},
13425 description={first test encap}
13426 }
13427
13428 @index{encap.tstidxencapi,
13429 name={\texttt{tstidxencapi}},
13430 parent={encap},
13431 category={encapcsn},
13432 description={first test encap}
13433 }
13434
13435 @index{tstidxencapii,
13436 name={\texttt{tstidxencapii} (\tstidxcsfmt{tstidxencapii})},
13437 text={\texttt{tstidxencapii}},
13438 category={encapcsn},
13439 description={second test encap}
13440 }
13441
13442 @index{encap.tstidxencapii,
13443 name={\texttt{tstidxencapii}},
13444 parent={encap},
13445 category={encapcsn},
13446 description={second test encap}
13447 }
13448
13449 @index{tstidxencapiii,
13450 name={\texttt{tstidxencapiii} (\tstidxcsfmt{tstidxencapiii})},
13451 text={\texttt{tstidxencapiii}},
13452 category={encapcsn},
13453 description={third test encap}
13454 }
13455
13456 @index{encap.tstidxencapiii,
13457 name={\texttt{tstidxencapiii}},
13458 parent={encap},
13459 category={encapcsn},
13460 description={third test encap}
13461 }
13462
13463 @index{cs.index,
13464 name={\tstidxcsfmt{index}},
13465 category={cs},
13466 description={write information to the external index file
13467 that will be processed by an indexing application (defined by the
13468 \LaTeX\ kernel)}
13469 }
13470
13471 @index{cs.testidx,
13472 name={\tstidxcsfmt{testidx}},
13473 category={cs},
13474 description={produce the dummy text (defined in the
13475 \glshyperlink{testidxpackage} package)}
13476 }
13477
13478 @index{cs.tstidxtoidx,
13479 name={\tstidxcsfmt{tstidxtoidx}},
13480 category={cs},
13481 description={switch back to the original definitions
13482 provided by the base \glshyperlink{testidxpackage} package (defined
13483 in the \glshyperlink{testidxglossariespackage} package)}
13484 }
13485
13486 @index{cs.gls,
13487 name={\tstidxcsfmt{gls}},
13488 category={cs},
13489 description={reference a term defined by the
13490 \glshyperlink{glossariespackage} package (displays text and performs
13491 indexing)}
13492 }
13493
13494 @index{cs.glspl,
13495 name={\tstidxcsfmt{glspl}},
13496 category={cs},
13497 description={as \glshyperlink{cs.gls} but displays the
13498 plural form}
13499 }
13500
13501 @index{cs.glsadd,
13502 name={\tstidxcsfmt{glsadd}},
13503 category={cs},
13504 description={indexes a term defined by the
13505 \glshyperlink{glossariespackage} package (but doesn't display any
13506 text)}
13507 }
13508
13509 @index{cs.glssee,
13510 name={\tstidxcsfmt{glssee}},
13511 category={cs},
13512 description={indexes a cross-referenced term or terms defined by the
13513 \glshyperlink{glossariespackage} package (but doesn't display any
13514 text)}
13515 }
13516
13517 @index{cs.glsxtrindexseealso,
13518 name={\tstidxcsfmt{glsxtrindexseealso}},
13519 category={cs},
13520 description={indexes a \tstidxqt{see also} cross-referenced term
13521 or terms
13522 defined by the
13523 \glshyperlink{glossariesextrapackage} package (but doesn't display
13524 any text)}
13525 }
13526
13527 @index{cs.glshyperlink,
13528 name={\tstidxcsfmt{glshyperlink}},
13529 category={cs},
13530 description={displays the text associated with a
13531 term (with a hyperlink if enabled) but doesn't perform
13532 any indexing (defined by the \glshyperlink{glossariespackage}
13533 package)}
13534 }
13535
13536 @index{cs.setglossarystyle,
13537 name={\tstidxcsfmt{setglossarystyle}},
13538 category={cs},
13539 description={sets the glossary style
13540 (defined by the \glshyperlink{glossariespackage} package)}
13541 }
13542
13543 @index{cs.tstidxfootnote,
13544 name={\tstidxcsfmt{tstidxfootnote}},
13545 category={cs},
13546 description={produces a footnote
13547 (defined by the \glshyperlink{testidxpackage} package)}
13548 }
13549
13550 @index{cs.footnote,
13551 name={\tstidxcsfmt{footnote}},
13552 category={cs},
13553 description={produces a footnote
13554 (defined by the \LaTeX\ kernel)}
13555 }
13556
13557 @index{cs.tstidxtext,
13558 name={\tstidxcsfmt{tstidxtext}},
13559 category={cs},
13560 description={used to mark the sample text being indexed
13561 (defined by the \glshyperlink{testidxpackage} package)}
13562 }
13563
13564 @index{cs.textcolor,
13565 name={\tstidxcsfmt{textcolor}},
13566 category={cs},
13567 description={displays the given text in the given colour
13568 (a colour package is required to enable this command)}
13569 }
13570
13571 @index{cs.glstreenamefmt,
13572 name={\tstidxcsfmt{glstreenamefmt}},
13573 category={cs},
13574 description={used to set the font for
13575 the name field in the tree-like glossary styles}
13576 }
13577
13578 @index{cs.tstindex,
13579 name={\tstidxcsfmt{tstindex}},
13580 category={cs},
13581 description={used to index the sample text
13582 for the base \glshyperlink{testidxpackage} package (not for the
13583 \glshyperlink{testidxglossariespackage} package)}
13584 }
13585
13586 @index{cs.GlsAddXdyAttribute,
13587 name={\tstidxcsfmt{GlsAddXdyAttribute}},
13588 category={cs},
13589 description={adds a \glshyperlink{xindy}
13590 attribute (provided by the \glshyperlink{glossariespackage} package)}
13591 }
13592
13593 @index{cs.delimN,
13594 name={\tstidxcsfmt{delimN}},
13595 category={cs},
13596 description={page number separator used in the
13597 \glshyperlink{locationlist} (provided by the \glshyperlink{glossariespackage} package)}
13598 }
13599
13600 @index{cs.delimR,
13601 name={\tstidxcsfmt{delimR}},
13602 category={cs},
13603 description={page range separator used in the
13604 \glshyperlink{locationlist} (provided by the \glshyperlink{glossariespackage} package)}
13605 }
13606
13607 @index{cs.IeC,
13608 name={\tstidxcsfmt{IeC}},
13609 category={cs},
13610 description={used internally by the \glshyperlink{inputencpackage}
13611 package}
13612 }
13613
13614 @index{cs.tstidxindexmarkerprefix,
13615 name={\tstidxcsfmt{tstidxindexmarkerprefix}},
13616 category={cs},
13617 description={prefix used in the
13618 sort key for markers if the \tstidxstyoptfmt{prefix}
13619 option is used (but not with the \tstidxstyoptfmt{bib2gls}
13620 option)}
13621 }
13622
13623 @index{cs.tstidxindexmathsymprefix,
13624 name={\tstidxcsfmt{tstidxindexmathsymprefix}},
13625 category={cs},
13626 description={prefix used in the
13627 sort key for mathematical symbols if the \tstidxstyoptfmt{prefix}
13628 option is used (but not with the \tstidxstyoptfmt{bib2gls}
13629 option)}
13630 }
13631
13632 @index{cs.tstidxmakegloss,
13633 name={\tstidxcsfmt{tstidxmakegloss}},
13634 category={cs},
13635 description={command used to load
13636 the files containing the sample glossary definitions
13637 and also use the appropriate command to initialise the indexing,
13638 depending on the package options}
13639 }
13640
13641 % \end{macrocode}
13642 %\iffalse
13643 % \begin{macrocode}
13644 %</testidx-glossaries-samples.bib>
13645 % \end{macrocode}
13646 %\fi
13647 %\Finale
13648 \endinput