1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
|
+-----------------------------------------------------------------------------+
| indexformat |
+-----------------------------------------------------------------------------+
Abbreviation: ã|\ixfã%
Parameters: ã|submarkupã%
Submarkup: ã|\respectcase, \style, \leadering, \everyhang,
\everyletterbreak, \indentsubentry, \everyindexã%
ã|Description:ã%
The defaults listed above for each markup applies initially to each of
the three indexes. One or more indexes' defaults can all be changed
by modifying the \indexformat markup. The complete description of the
\indexformat markup and its related submarkup is:
\indexformatn{format}
where n is the index (1, 2, or 3) and format is the submarkup.
ã|respectcaseã% ignores the case of an index entry. This markup can only be
used within the \indexformat markup. If you wanted case respected and have
the lower case letters sorted before the upper case entries (i.e., "boat"
sorted before "Bed") then enter
\respectcase{yes}
ã|Notes:ã%
Respecting case applies to all letters. If \respectcase{yes} has been
specified, then "boat" and "cat" will both be sorted before "Bed". The
default value is \respectcase{no} for each of the 3 indexes.
ã|styleã% regulates the general index format. \style{indent}, the default,
indents each index entry. This style looks like:
+-----------------------------------------------------------------------------+
| |
| Constantinople, 12, See also Istanbul |
| alien rule of, 20 |
| Arab invasion of, 19, 31 |
| Crusades and, 22, 57 |
| Ottoman conquest of, 29--31 |
| |
+-----------------------------------------------------------------------------+
There are two other styles to choose from: "paragraph" and "dash". The
style "paragraph" is a run-on hanging paragraph. You get it by specifying:
\indexformat1{\style{paragraph}}
With this style, the above index would look like:
+-----------------------------------------------------------------------------+
| |
| Constantinople, 12, alien rule |
| of, 20, Arab invasion of, 19, |
| 31, Crusades and, 22, 57, |
| Ottoman conquest of, 29--31, See |
| also Istanbul |
| |
+-----------------------------------------------------------------------------+
Note that with this style, the blind entry from the \blindentry submarkup
comes after the subentry, instead of after the main entry as was done for
the "indent" style.
The third style is "dash", an em-dash style. You get it by specifying
\indexformat1{\style{dash}}
It is very similar to the default "indent" style, except subentries are
prefaced with an em dash following the initial indent of space.
+-----------------------------------------------------------------------------+
| |
| Constantinople, 12, See also Istanbul |
| ---alien rule of, 20 |
| ---Arab invasion of, 19, 31 |
| ---Crusades and, 22, 57 |
| ---Ottoman conquest of, 29--31 |
| |
+-----------------------------------------------------------------------------+
ã|leaderingã% turns on/off dot leadering. The default is "off". You
can change this default only within the \indexformat markup. To have dot
leadering, enter:
\ixf1{\leadering{yes}}
If you are using \style{indent} and \leadering{yes} you get:
+-----------------------------------------------------------------------------+
| |
| Constantinople, See also |
| Istanbul ... . ... ... . ....12 |
| alien rule of ... . ... 20 |
| Arab invasion of . . .19, 31 |
| Crusades and .... . .22, 57 |
| Ottoman conquest of .29--31 |
| |
+-----------------------------------------------------------------------------+
ã|Notes:ã%
Do not use dot leadering with \style{paragraph}.
ã|everyletterbreakã% is what will be printed between each letter break,
(i.e. between "A" and "B"). By default, one blank line is skipped when
starting a new letter (at each letter break). The \everyletterbreak markup
can only appear within the \indexformat markup.
ã|Example:ã%
You could modify the default to place a rule and skip between breaks:
\ixf1{\everyletterbreak{\vs{\bl}
\hrule width 2in
\vs{\bl}}}
This would look something like:
+-----------------------------------------------------------------------------+
| |
| ..................... |
| alpha, 62 |
| America, 38 |
| Austria, 55 |
| ..................... |
| |
| Bach, 98 |
| Bethlehem, 87 |
| |
+-----------------------------------------------------------------------------+
ã|Example:ã%
Something else you can do with indexes is to make use of the "\nextletter"
submarkup, which gives you the next uppercase character about to be listed
in the sorted index list. For example, between "apple" and "boat" the
value of "\nextletter" would be "B". One application would be to print the
"\nextletter" in a large type. This could be accomplished by changing the
default for "\everyletterbreak" to:
\indexformat{\everyletterbreak{\vs{\bl}
\noindent{\twelvepoint\bd\nextletter}\par}}
The resulting index would look like:
+-----------------------------------------------------------------------------+
| |
| |
| A |
| alpha, 62 |
| America, 38 |
| Austria, 55 |
| |
| B |
| Bach, 98 |
| Bethlehem, 87 |
+-----------------------------------------------------------------------------+
ã|Example:ã%
Another variation of the above would be to draw a box around the next
letter. You could do this by adding \drawbox to \everyletterbreak:
\ixf1{\everyletterbreak{\vs{\bl}
\drawbox{\bd\nextletter}\par}}
and you will get an index that prints as illustrated on the next page.
+-----------------------------------------------------------------------------+
| |
| ..... |
| ..... |
| alpha, 62 |
| America, 38 |
| Austria, 55 |
| |
| ..... |
| ..... |
| Bach, 98 |
| Bethlehem, 87 |
| |
+-----------------------------------------------------------------------------+
ã|Notes:ã%
The "\nextletter" is always an uppercase letter.
Only letters, not numbers or special characters such as the backslash
(\) are used as \nextletter.
ã|indentsubentryã% There are two levels of subentries available. The amount
of distance they are indented when you are using the "indent" or "dash"
styles is controlled by the \indentsubentry submarkup. If you are using
the "paragraph" style for the index, the \indentsubentry is ignored. The
definition of this markup is,
\ixf1{\indentsubentryn{amt}}
where n is the subentry level, 1 or 2, and amt is the amount to be indented.
The default indent for these two subentry levels is:
\ixf1{\indentsubentry1{1em}
\indentsubentry2{2em}}
If, for example, you were using the "indented" style and wanted each
subentry level indented two em's from the previous level, you would enter,
\ixf1{\indentsubentry1{2em}
\indentsubentry2{4em}}
which would print the index illustrated earlier as:
+-----------------------------------------------------------------------------+
| |
| Constantinople, 12, See also Istanbul |
| alien rule of, 20 |
| Arab invasion of, 19, 31 |
| Crusades and, 22, 57 |
| Ottoman conquest of, 29--31 |
| |
+-----------------------------------------------------------------------------+
ã|everyhangã% controls the hanging indent for the primary index level and
each of the two subentry levels. If you had an index entry with many page
numbers,
+-----------------------------------------------------------------------------+
| |
| Write state- |
| ment, 26, |
| 34--38, 70, |
| 86, |
| 103, 191, |
| 202, 203-- |
| 204, 281 |
| |
+-----------------------------------------------------------------------------+
The hangingindent would be 1.5em by default.
ã|Example:ã%
If you wanted to increase that value to 3em, you would enter,
\ixf1{\everyhang{3em}}
and you would get:
+-----------------------------------------------------------------------------+
| |
| Write state- |
| ment, 26, |
| 34--38, |
| 70, 86, |
| 103, 191, |
| 202, 203-- |
| 204, 281 |
| |
+-----------------------------------------------------------------------------+
ã|everyindexã% is a list of one or more commands to be executed before
printing the sorted index. By default, \tenpt is the value of \everyindex.
ã|Notes:ã%
The default type style used with \monospace is \roman instead of \tenpt.
|