add support for autogenerated xref link text
add footnotes and ToC links
pull out end-of-chapter/book solution numbering