For the pastry, beat the butter and sugar together until pale, mix in flour and almonds then stir in the egg until the pastry just comes together. Shape into a ball, wrap in cling film and chill for at least 30 mins.
While the pastry is chilling, make the filling. Tip the apricots into a bowl. Bring the wine and the sugar to a rolling boil, then pour over the apricots and leave to steep in the liquid. In the same saucepan (there's no need to wash it) bring the vanilla and cream to the boil. Turn off the heat and leave the cream to infuse.
Heat oven to 220C/fan 200C/gas 7. Roll the pastry to fit a 23cm fluted tart tin and leave it to chill in the freezer for 10 mins. Line the tart case with foil or greaseproof paper and fill the tart with baking beans. Bake the tart for 20 mins until the edges become biscuity, then remove the beans and foil or greaseproof paper and cook for a few more mins until the base starts to brown. Remove the tart from
the oven and lower the heat to 160C/fan 140C/gas 3.
While the tart case is cooking, whisk the eggs in a large bowl. Strain the vanilla cream over the eggs and whisk, then drain the apricots and mix the
liquid in with the vanilla cream and the eggs to make a custard. Pull the apricots apart and press them sticky side down into the tart case. Pour the custard over the apricots and bake for about 20-30 mins until the filling is just set. Remove the tart from the oven and leave to cool. To serve, scatter the remaining sugar over the tart and blast with a blowtorch to caramelise it, leave it to harden for a minute and cut into slices and serve. As there are so many lovely flavours in the tart already it needs no accompaniment