LaTeX forum ⇒ Assignments, Laboratory books and reportsError when I changed the language to Spanish Topic is solved

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

Error when I changed the language to Spanish

Postby templateuser » Sun Mar 08, 2015 2:33 am

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:

  1. Package babel Error: You haven´t loaded the option english yet.
  2.  
  3. Type H <return> for inmediate help
  4. ...
  5.  
  6. 1.2 \select@language{english}


I appreciate your help with this issue.

Thanks.

Angelik_9999

Tags:

User avatar
Vel
Site Moderator
Posts: 451
Joined: Fri Jun 29, 2012 1:20 am
Location: Sydney, Australia
Contact:

Postby Vel » Sun Mar 08, 2015 2:33 am

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


Return to “Assignments, Laboratory books and reports”

Who is online

Users browsing this forum: No registered users and 1 guest