LaTeX writer:  Add link anchors for code blocks with identifiers.

Closes #1025.