The effect of magnetic fields in common-envelope evolution on the formation of cataclysmic variables | Synapse