| 1 |
repeatindex.sty |
| 2 |
|
| 3 |
Copyright 2001 Harald Harders ([email protected]) |
| 4 |
License is LPPL. |
| 5 |
|
| 6 |
|
| 7 |
This Package repeats item of an index if a page or column |
| 8 |
break occurs within a list of subitems. |
| 9 |
This helps to find out to which main item a subitem belongs. |
| 10 |
|
| 11 |
Example: |
| 12 |
|
| 13 |
Main Item A, 1, 3, 6 Main Item A... |
| 14 |
Subitem a, 1 Subitem g, 1 |
| 15 |
Subitem b, 1 Subitem h, 1 |
| 16 |
Subitem c, 2 Subitem i, 1 |
| 17 |
Subitem d, 3 Subitem j, 1 |
| 18 |
Subitem d, 1 Main Item B, 3, 6 |
| 19 |
Subitem e, 4 Subitem a, 3 |
| 20 |
Subitem f, 2 Subitem b, 4 |
| 21 |
|
| 22 |
To get that behaviour you have to include the package into your |
| 23 |
document using \usepackage{repeatindex}, and you have to produce |
| 24 |
the .ind file in a special format in which the entries of the \item |
| 25 |
are enclosed in [...] (example: \item [Main Item A], 1, 3, 6 ). |
| 26 |
This can be achieved using repeatindex.ist: |
| 27 |
makeindex -s repeatindex file |
| 28 |
|
| 29 |
Problems: |
| 30 |
- When an item is repeated a small vertical space is included two |
| 31 |
items later |
| 32 |
- If the last item is a subitem and the only entry on the last page |
| 33 |
of the index the repeation is omitted |
| 34 |
|
| 35 |
This package has not been tested much, yet. Please help me to find |
| 36 |
more problems and if possible solutions to my problems. |
| 37 |
I have had much trouble in solving the problem that the code |
| 38 |
defined in afterpage is executed with a delay. |
| 39 |
|
| 40 |
Harald Harders, 2001/10/13 |
| 41 |
[email protected] |