trained in law he studied at the universities of cervera and huesca