1kg/2lb 4oz onions, finely sliced
1 tbsp plain flour
salt and black pepper
1.2 litres/2 pints stock (ideally beef but chicken or vegetable would also be fine)
50g/1¾oz butter
150g/5½oz Gruyère cheese, grated
1 baguette, cut into 1cm/½in slices