Parse LaTeX figure labels if present