diegotex” post=98081ho un problema con babel compilando in italiano o spagnolo
Mi esce l’errore “You haveb’t specified a language option…”
andando nella cartella di babel ho sia italian.sty sia spanish.sty.
Se compilo commentando “% \usepackage[spanish]{babel}” il file viene compilato correttamente.
Questo è il file`
\documentclass[10pt,twoside,fleqn]{book}
% \documentclass[10pt,twoside,fleqn,openany]{book}\usepackage[letterpaper,includehead,includefoot,inner=2cm,outer=1cm,bottom=2cm,top=2cm, marginparwidth=5cm, marginparsep=0.5cm, includemp]{geometry}
\usepackage{indentfirst}
\usepackage{makeidx}\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{} % rimuove l’attuale contenuto dell’intestazione
% e del pi\‘e di pagina
\fancyhead[LE,RO]{\slshape \rightmark}
\fancyhead[LO,RE]{\slshape \leftmark}
\fancyfoot[RO,LE]{\thepage}
\renewcommand{\sectionmark}[1]{\markright{\footnotesize{\thesection.\ #1}}}
\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\footnotesize{\thechapter.\ #1}}}{}}
\renewcommand{\headrulewidth}{0.3pt}
\renewcommand{\footrulewidth}{0.3pt}
\addtolength{\headheight}{0.pt} % riserva spazio per la linea
\fancypagestyle{plain}{%
\fancyhead{} % ignora, nello stile plain, le intestazioni
\renewcommand{\headrulewidth}{0pt} % e la linea
}\fancypagestyle{esercizi}{%
\fancyhf{} % rimuove l’attuale contenuto dell’intestazione
% e del pi\‘e di pagina
\fancyhead[LE,RO]{\slshape \rightmark}
\fancyhead[LO,RE]{\slshape \leftmark}
\fancyfoot[RO,LE]{\thepage}
\renewcommand{\marginparwidth}{0pt}
\renewcommand{\textwidth}{18cm}
}\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[spanish]{babel}%serve per scrivere in automatico “Figura…” V breveguida.pdf
\usepackage[T1]{fontenc}
\usepackage[utf8x]{inputenc} % lettere accentate linux
\usepackage{caption}
\usepackage{calc}
\usepackage{cite} % Written by Donald Arseneau
\usepackage{color}
\usepackage[dvips]{graphicx}
\usepackage[vflt]{floatflt} %immagini flottanti nel testo
\usepackage{multicol}
\usepackage{paralist} %lo uso per compactitem
\usepackage{placeins}
\usepackage{psfrag}
\usepackage[pstcol]{pstricks}%(pstcol)
\usepackage{pspicture}
\usepackage{pst-all}
\usepackage{pst-fill}
\usepackage{subfig} % Written by Steven Douglas Cochran
\setlength{\parindent}{0em} % 0 per non avere indentazioni
\usepackage{amsthm} %serve per newtheorem e theoremstyle\frenchspacing
\makeindex %indice analitico\begin{document}
\end{document}
`
avete idee?
ciao
Con il tuo codice non ottengo errori. Hai una distribuzione latex completa e aggiornata?