I have to write some reports in which I will assign several actions to do to some people. I would like to simplify the creation of an action thanks to some macro and to automate the creation of a summary for all actions.
Next, there is an example of how I would like to use it. It could be adapted if this simplify the problem, of course.
\begin{document}
\section*{Actions Summary}
\tableofallactions % or \includecollection{allactions} or whatever
\section{First Adventure}
\begin{actionlist}
\action{Finn} Finn's first action
\action{Jake} Jake's first action
\end{actionlist}
\section{Second Adventure}
\begin{actionlist}
\action{Finn} Finn's second action
\action{Finn} Finn's third action
\end{actionlist}
\end{document}
There is what I expect to create :
Actions Summary
- Finn
- Finn's first action
- Finn's second action
- Finn's third action
- Jake
- Jake's first action
1. First Adventure
Actions :
- Finn
- Finn's first action
- Jake
- Jake's first action
2. Second Adventure
Actions :
- Finn
- Finn's second action
- Finn's third action
I learned how to write commands and environments. I read also, among others, about "collect" package to summarize actions like in this example : Content summaries - sections. However, I really don't know how to handle the fact that the same name could appear in many places and should be summarize on the same item like for Finn in the example.


