There is the following code:
\subsection{some subsection}
Some \mindex[mean=aaa]{sentence} with some \mindex[mean=bbb]{unknown} words.
\listminiindexfromsubsection
The expected output:
Some subsection
Some sentence with some unknown words.
Mini index: sentence - aaa unknown - bbb
I would like to create something like a mini index, which can create a small dictionary. All words from specific subsection which are arguments of \mindex[mean=something]{word} should be collected and when the command \listminiindexfromsubsection is written, then the output should contain all of these words with their meaning.
What is the method to collect specific words from a subsection and then printing them out?

\mindexcommand defined? – egreg Jun 16 '11 at 22:45