The name is bad and there is a lot of redundancy. But it works for me, since I’m a very visual person, and using this model allows me to add ease to distinguish notes to an outline, and having those notes displayed in other ways (as summaries in $Text or $DisplayExpression, or as $KeyAttributes for later use).
– this template shows a way to add structured notes (kindA, kindB, kindC) to a container (chapter) in a visual way (with colors and badges);
– the chapter’s $Text will provide a summary of these notes by collecting its descendants (select “myFirstChapter” or “mySecondChapter” to see it);
– the chapter’s $DisplayExpression will also show the $Name of the notes inside it, according to their kind (expand "mySecondChapter to see its content and how it is reflected on its displayed name);
– the chapters parent (i.e. the book) will use the same technique to add the notes $Name to its $KeyAttributes (as sets);
– finally, the books $Text will summarize the notes inside all chapters (select “myBook” to see it)