Supersymmetric electric-magnetic duality as a manifest symmetry of the action for super-Maxwell theory and linearized supergravity