Add tex snippet