With ERC winning a record 22 seats in the Spanish parliament and JxCat’s seven seats, the parties in favour of a republic are well-placed to put pressure on Pedro Sánchez to engage in talks with Catalonia