Assignments, Laboratory books and reportsError when I changed the language to Spanish

University homework, exams and laboratory work
Post Reply
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Error when I changed the language to Spanish

Post by templateuser »

hello! I can`t change the template for supporting Spanish characters like ñ,
after replace the line with
\usepackage[spanish]{babel} instead of \usepackage[english]{babel}
the following error appears:

Code: Select all

Package babel Error: You haven´t loaded the option english yet.

Type H <return> for inmediate help
...

1.2   \select@language{english}
I appreciate your help with this issue.

Thanks.

Angelik_9999

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
User avatar
Vel
Site Moderator
Posts: 463
Joined: Fri Jun 29, 2012 1:20 am

Error when I changed the language to Spanish

Post by Vel »

Hey,

In order to suppose Spanish characters just add

\usepackage[utf8]{inputenc}

to the preamble.

Changing \usepackage[english]{babel} to \usepackage[spanish]{babel} changes the static document content from English to Spanish, for example October becomes du octubre. The error you pasted "1.2 \select@language{english}" just needs to be skipped once and it won't come up again.

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com
Post Reply