The attached patch adds three new options to each item (Page) in the NoteBook, to allow an image at the right of each tab (in addition to any image at the left). Clicking this image will typically be used to close the tab.

-rimage
-ractiveimage
-rimagecmd

The demo is patched to make use of the new facilities.

The new options have been added to the HTML manual for NoteBook, along with fixes to document other Page and NoteBook options.