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.