Mix flour and baking powder. Knead butter in flakes, 350 g sugar, salt and eggs. Cover and chill for about 30 minutes. Wash the raisins, dab dry and sprinkle with rum. Roast almonds in a pan without fat.
Peel and quarter the apples and remove the core. Cut apples into small pieces. Bring to the boil with 1/8 litre water, remaining sugar, lemon peel, lemon juice and cinnamon. Steam for 5 minutes. Mix cornflour in a little cold water and thicken the apple compote.
Mix in almonds and raisins. Halve the amount of dough and roll out one plate the size of the fat pan (approx. 42 x 37 cm) between 2 layers of cling film. Grease the fat pan. Line with a layer of dough.
Prick the dough several times with a fork. Pre-bake in a hot oven (electric cooker: 200 °C/ convection oven: 175 °C/ gas: level 3) for 10 minutes. Spread apple compote on the dough. Cover with the second plate.
Carefully score the dough with a fork in a wavy shape. Whisk egg yolk and cream. Spread the dough with it. Bake at the same temperature for 30-40 minutes. If you like to serve, spray a thick spot of whipped cream onto each piece.