Stir the margarine until foamy, then add everything up to and including the almonds and mix. Mix the flour and baking powder well, sift into the dough and mix.
Put 2/3 of the dough in a greased springform pan (24 - 26 cm diameter), smooth out.
Put the jam on top and put the remaining dough in a piping bag with a smooth nozzle and sprinkle a grid on the cake.