We use shallow-water theory to study the self-similar gravity currents that describe the intrusion of a heavy fluid below a lighter ambient fluid. We consider in detail the case of currents with planar symmetry produced by a source with variable inflow, such that the volume of the intruding fluid varies in time according to a power law of the type tα. The resistance of the ambient fluid is taken into account by a boundary condition of the von Kármán type, that depends on a parameter β that is a function of the density ratio of the fluids. The flow is characterized by β, α, and the Froude number [Fscr ]0 near the source. We find four kinds of self-similar solutions: subcritical continuous solutions (Type I), continuous solutions with a supercritical-subcritical transition (Type II), discontinuous solutions (Type III) that have a hydraulic jump, and discontinuous solutions having hydraulic jumps and a subcritical-supercritical transition (Type IV). The current is always subcritical near the front, but near the source it is subcritical ([Fscr ]0 < 1) for Type I currents, and supercritical ([Fscr ]0 > 1) for Types II, III, and IV. Type I solutions have already been found by other authors, but Type II, III, and IV currents are novel. We find the intervals of parameters for which these solutions exist, and discuss their properties. For constant-volume currents one obtains Type I solutions for any β that, when β > 2, have a ‘dry’ region near the origin. For steady inflow one finds Type I currents for O < β < ∞ and Type II and III Currents for and β, if [Fscr ]0 is sufficiently large.