Chromium-mediated stereoselective synthesis of carbohydrate-derived (E)-α,β-unsaturated esters or amides.