Here is the demo on named anchors.
Source files for Figures A.1 A.3 A.4 A.5 A.6 A.8 A.10 A.11(first) A.11(second)