he then studied literature and science at university in montpellier and barcelona