We show that, by constructing a magnetic-field density functional theo
ry for the response of many-electron systems to the magnetic field gen
erated by two magnetic dipoles, one can calculate the orbital portion
of the indirect spin-spin coupling, nuclear magnetic shielding tenser,
and diamagnetic susceptibility of any such system.