Keep only tex snippet