added code to handle subfigure numbering link targets