Copious comments for hook_plot_tex

Add comments to `hook_plot_tex` in `hooks-latex.R`, to make the function
easier to skim and debug. Maintain original coding style, of course.
Merge pull request #551 from sietse/comment-hook_plot_tex

Copious comments for hook_plot_tex