The procedure here, as described, for example, in U.S. Pat. No. 5,508,341, starting from materials such as formaldehyde and resorcinol dissolved in water, is to react these materials with one another by means of suitable catalysts, to exchange the water in the pores of the resulting gel for an appropriate organic solvent, and then to subject the gel to supercritical drying.