General ⇒ babel error: unknown option 'spanish' for package 'babel'
-
- Posts: 92
- Joined: Fri Apr 24, 2009 8:02 pm
Re: Spanish - babel error
%%
%% This is file `babel.sty', generated on <1993/5/18>
%% with the docstrip utility (2.0r).
%%
%% The original source file was `babel.doc'.
%%
%%
%% IMPORTANT NOTICE:
%% You are not allowed to distribute this file.
%% For distribution of the original source see
%% the copyright notice in the file babel.doc.
%%
\def\filename{babel.doc}
\let\thisfilename\filename
\def\fileversion{babel-3.0c}
\def\filedate{15 july 1991}
\def\docdate{6 juni 1991}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
babel error: unknown option 'spanish' for package 'babel'
Mine begins like this:
Code: Select all
%%
%% This is file `babel.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% babel.dtx (with options: `package')
%% This is a generated file.
%%
%% Copyright 1989-2008 Johannes L. Braams and any individual authors
%% listed elsewhere in this file. All rights reserved.
%%
%% This file was generated from file(s) of the Babel system.
%% ---------------------------------------------------------
%%
%% It may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2003/12/01 or later.
%%
%% This work has the LPPL maintenance status "maintained".
%%
%% The Current Maintainer of this work is Johannes Braams.
%%
%% This file may only be distributed together with a copy of the Babel
%% system. You may however distribute the Babel system without
%% such generated files.
%%
%% The list of all files belonging to the Babel distribution is
%% given in the file `manifest.bbl'. See also `legal.bbl for additional
%% information.
%%
%% The list of derived (unpacked) files belonging to the distribution
%% and covered by LPPL is defined by the unpacking scripts (with
%% extension .ins) which are part of the distribution.
%%
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
%% File 'babel.dtx'
%%\ProvidesFile{babel.dtx}[2008/03/16 v3.8l The Babel package
]
Mine (installed from the TeXlive package for Ubuntu lucid) is located at:
/var/lib/texmf/tex/generic/babel/babel.sty
Do you have it there too? Does it begin like mine or yours?
In any case, I'd remove the old babel.sty from ~/Documents and try to get it to use the one that came with the texlive packages.
In a shell try:
locate /babel.sty
to see if the file is installed multiple places. For me, it gives:
Code: Select all
/usr/share/texmf-texlive/tex/generic/babel/babel.sty
/var/lib/texmf/tex/generic/babel/babel.sty
-
- Posts: 92
- Joined: Fri Apr 24, 2009 8:02 pm
babel error: unknown option 'spanish' for package 'babel'
Code: Select all
/home/thedoctor/Documents/babel.sty
/usr/local/texlive/2009/texmf-dist/tex/generic/babel/babel.sty
/usr/share/texmf-texlive/tex/generic/babel/babel.sty
/var/lib/texmf/tex/generic/babel/babel.sty
-
- Posts: 92
- Joined: Fri Apr 24, 2009 8:02 pm
babel error: unknown option 'spanish' for package 'babel'
Code: Select all
locate /babel.sty
Re: Spanish - babel error
-
- Posts: 92
- Joined: Fri Apr 24, 2009 8:02 pm
Re: Spanish - babel error
Re: Spanish - babel error
There's gotta be some way to delete that file from ~/Documents. Did you empty your "trash"?
Try
mv ~/babel.sty ~/old-babel.sty
from a terminal.
Also, try moving the test .tex file out of ~/Documents and compiling it when it's a different directory than babel.sty.
If it comes to it...
I would think
sudo apt-get purge *texlive*
would delete all the texlive packages installed from Ubuntu's package manager.
And:
sudo tlmgr uninstall --force
would uninstall the texlive installed another way.
But again, I'm not sure that'll be necessary. The problem doesn't seem to be your texlive distribution, but that the file is picking up the babel from ~/Documents, which wouldn't even be removed by this process.
-
- Posts: 92
- Joined: Fri Apr 24, 2009 8:02 pm
Re: Spanish - babel error
Please any help would be appreciated.
Re: Spanish - babel error
Try:
latex -v
from a terminal, and post what result it gives here.
-
- Posts: 92
- Joined: Fri Apr 24, 2009 8:02 pm
babel error: unknown option 'spanish' for package 'babel'
Code: Select all
The program 'latex' is currently not installed. You can install it by typing:
sudo apt-get install texlive-latex-base