I have a document (article) presenting a list and description of several tasks. Each task is written in either a section or subsection, beside the title and description it includes the name of the person in charge, just in plain text in the beginning of the (sub)section. The name can be present in more than one (sub)section, as one person may have multiple tasks.
The end document looks something like this:
1. Basics
1.1 Task A
Name: John Doe
The task is about ...
It needs to be completed by July 2012.
1.2. Task B
Name: James F.
...
2. Task C
Name: John Doe
...
and so on.
In the beginning of the document I would like to generate a table (or index) of the involved people and the tasks for which they are responsible (i.e. where all the occurrences of the names are referenced in one place), in order to have an organised view in which I could see all assigned tasks for a person, and it should be in the following format:
Name | Task | Section, page
John Doe | Task A | 1.1, p. 2
| Task C | 2, p. 5
James F. | Task B | 1.2, p.3
Is there an easy solution for that?
The solution should facilitate that each person could be easily switched to another task, so that the index is automatically regenerated.
I don't think I can really use labels here, as one name can appear multiple times.
Indexing, like this:
\subsection{Task A}
Name: John Doe \index{John Doe}
The task is about ...
It needs to be done by ...
Gives me a basic result:
Index
John Doe, 2, 5
It might be a good place to start, but as far as I know, changing the layout of the index in a table (which also includes section names) is a pain.

