Create a numbering for nodes

For code samples on how to create the numbering see addReducer.

This guide describes several cases where the numbering of nodes can be useful. In these cases we want to number the nodes across documents which means we need dependencies on the structure. For this we can use the addReducer function.

A case of numbering we have seen is the numbering in the structure view which need to update when the structure is changed.

Another case is the numbering of images and or tables. In this case we want to show the number of the current image in the top right of the figure. Note that the numbers continue across sheet frames.