Fix typo in the figure snippet of tex.snip

Fixes a typo in the figure snippet of tex, where the label tag was inside the caption tag