I have a document template in Catalan using \usepackage[catalan]{babel}. I want to write the document in Spanish, but when I change that line to \usepackage[spanish]{babel} it throws an error:
./main.aux:3: Package babel Error: Unknown language `catalan'. Either you have (babel) misspelled its name, it has not been installed, (babel) or you requested it in a previous run. Fix its name, (babel) install it or just rerun the file, respectively.
What do I have to do?
\usepackage[catalan,spanish]{babel}so catalan is loaded but not used, should get you back on track – David Carlisle Mar 12 '18 at 17:18.auxfile before rebuilding the document – Nicola Talbot Mar 12 '18 at 18:20