summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/repeatindex/README
blob: fe99d9931660603f4b6c66ee0578462d2518872d (plain)
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
repeatindex.sty

Copyright 2001  Harald Harders (h.harders@tu-bs.de)
License is LPPL.


This Package repeats item of an index if a page or column
break occurs within a list of subitems.
This helps to find out to which main item a subitem belongs.

Example:

   Main Item A, 1, 3, 6             Main Item A...
      Subitem a, 1                      Subitem g, 1
      Subitem b, 1                      Subitem h, 1
      Subitem c, 2                      Subitem i, 1
      Subitem d, 3                      Subitem j, 1
      Subitem d, 1                  Main Item B, 3, 6
      Subitem e, 4                      Subitem a, 3
      Subitem f, 2                      Subitem b, 4

To get that behaviour you have to include the package into your
document using  \usepackage{repeatindex}, and you have to produce
the .ind file in a special format in which the entries of the \item
are enclosed in [...] (example:   \item [Main Item A], 1, 3, 6  ).
This can be achieved using repeatindex.ist:
    makeindex -s repeatindex  file

Problems:
- When an item is repeated a small vertical space is included two
  items later
- If the last item is a subitem and the only entry on the last page
  of the index the repeation is omitted

This package has not been tested much, yet. Please help me to find
more problems and if possible solutions to my problems.
I have had much trouble in solving the problem that the code
defined in afterpage is executed with a delay.

Harald Harders, 2001/10/13
h.harders@tu-bs.de