Generalbabel error: unknown option 'spanish' for package 'babel'

LaTeX specific issues not fitting into one of the other forums of this category.
thedoctor818
Posts: 92
Joined: Fri Apr 24, 2009 8:02 pm

babel error: unknown option 'spanish' for package 'babel'

Post by thedoctor818 »

I am trying to type up Spanish notes using the babel package, but to no avail. I keep getting the error message:
unknown option 'spanish' for package 'babel'
Here is my sample code:

Code: Select all

\documentclass{report}
\usepackage[spanish]{babel}
\begin{document}
\title{Espa~nol II.}
\author{The Doctor}
\maketitle
\tableofcontents
\chapter{!` A comer!}
\section*{Vocabulario.}
\end{document}
-Michael D

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Spanish - babel error

Post by frabjous »

What LaTeX distribution and version are you using, and on what operating system? What version of babel?

Is the spanish.dtx file installed?
thedoctor818
Posts: 92
Joined: Fri Apr 24, 2009 8:02 pm

Re: Spanish - babel error

Post by thedoctor818 »

I am using TexLive, on Ubuntu 10.04, & I do have spanish.dtx installed. I have babel 3.8l installed.
-Michael D
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Spanish - babel error

Post by frabjous »

Your sample code works for me in texlive on Ubuntu 10.4 Lucid/babel 3.8l. (Well, mostly, I have to change Espa~nol to Espa\~nol, or else the tilde produces an unbreakable space instead.)

Is the texlive-lang-spanish package installed?

(sudo apt-get install texlive-lang-spanish)
thedoctor818
Posts: 92
Joined: Fri Apr 24, 2009 8:02 pm

Re: Spanish - babel error

Post by thedoctor818 »

Yes, that is installed; however, I am still getting the same error.???
-Michael D
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Spanish - babel error

Post by frabjous »

Not sure what to suggest. I have the texlive-full package installed, which includes everything, but it's hard to see why texlive-lang-spanish wouldn't cover this. Maybe someone else will have an idea.
thedoctor818
Posts: 92
Joined: Fri Apr 24, 2009 8:02 pm

Re: Spanish - babel error

Post by thedoctor818 »

Now, the error I am getting is: Package bebel error - you haven't loaded the option spanish yet

Any help would be appreciated.
-Michael D
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Spanish - babel error

Post by frabjous »

Try deleting the auxiliary files (*.aux, *.log, etc.) and try again.
thedoctor818
Posts: 92
Joined: Fri Apr 24, 2009 8:02 pm

Re: Spanish - babel error

Post by thedoctor818 »

I tried that, but now I am getting my original error again!???
-Michael D
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

babel error: unknown option 'spanish' for package 'babel'

Post by gmedina »

Did you install the Spanish-related packages manually? Perhaps you didn't update your packages database after installation. Try running

Code: Select all

texhash
in a terminal.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply