International audienceA general formalism is presented to describe resonance line polarization for a two-level atom in an optically thick, three-dimensional medium embedded in an arbitrary varying magnetic field and irradiated by an arbitrary radiation field. The magnetic field is supposed sufficiently small to induce a Zeeman splitting much smaller than the typical line width. By neglecting atomic polarization in the lower level and stimulated emission, an integral equation is derived for the multipole moments of the density matrix of the upper level. This equation shows how the multipole moments at any assigned point of the medium are coupled to the multipole moments relative at a different point as a consequence of the propagation of pol...