Alternancy symmetry: A unified viewpoint