Whisk flour with baking powder, sugar, vanilla sugar, egg and margarine. Quickly knead elastic dough and roll out on baking tray. Grease the dough with aprocot jam. Melt butter in the pot, add sugar, vanilla sugar and water, bring to boil, stir in chopped nuts. Evenly spread the nut topping on the dough and bake in the oven at 180 degrees Celsius for 30 minutes. Cool on a grill and cut diagonally to make triangles.