The energy band structures of Sr and Yb have been calculated by the linear-muffin-tin-orbital--atomic sphere approximation method in the pressure range of 0--50 kbar. By the inclusion of nonlocal exchange corrections to the local-density approximation, excellent agreement with regard to experiment has been found in predicting the electronic and structural phase transition pressures of these elements. \textcopyright{} 1996 The American Physical Society.