Peel garlic and cut into thin slices. Wash the rosemary, dab dry, put some of the tips aside. Pluck off remaining needles. Mix oil, vinegar, garlic and rosemary. Season with salt and pepper.
Cut the tofu lengthwise into 4 slices. Leave to stand in the marinade for approx. 40 minutes. In the meantime, peel onion and cut into slices. Clean, wash and slice the tomatoes. Fill the tomatoes, onions, olives and tofu into 4 ovenproof cups.
Put rosemary tips on top. Drizzle with the marinade. Bake in a preheated oven (electric: 200 °C/ gas: level 3) for approx. 20 minutes until golden brown. Wholemeal toast is delicious with it.