Only part of the correlation energy can be obtained from the wave function when expanded as a finite and linear combination of Slater determinants. For the remaining part, it was proposed by several authors to use density-functional theory. Thus, various methods coupling wave functions with density functionals were investigated in the past. In the present a class of such methods was developed, ...