Synthetic spectroscopic indices for identifying multiple stellar populations in globular clusters