Um erro com babel

547 views
Skip to first unread message

luciano de souza

unread,
Sep 29, 2015, 4:39:52 AM9/29/15
to latex-br
Caros,

Ao compilar um documento com pdflatex, obtenho o seguinte erro:

"Babel error: You haven't specified a language option."

O documento tem a seguinte estrutura:

\documentclass[a4paper,11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[portuguese]{babel}

\title{Meu título}
\date{\today}
\author{Luciano de Souza}

\begin{document}
\maketitle

%Conteúdo do artigo

\end{document}

Imaginei que poderia estar a faltar algum pacote, então, instalei, em
meu ubuntu 14.10, tudo que encontrei relativo a Latex:
$ sudo apt-get install texlive-base texlive-bibtex-extra
texlive-font-utils texlive-fonts-extra-doc texlive-fonts-recommended
texlive-latex-base texlive-latex-extra texlive-latex-recommended
texlive-luatex texlive-math-extra texlive-pictures texlive-pstricks

O erro persistiu.

O pacote "babel" foi passado com "portuguese" como argumento, então,
não compreendo o porquê reclama de não ter sido passada nenhuma opção.

--
Luciano de Souza

Francisco Antonio Doria

unread,
Sep 29, 2015, 7:22:28 AM9/29/15
to late...@googlegroups.com
Uso TeXShop para Mac e aqui o comando tem {portugese} sem o u.


--
Luciano de Souza

--
You received this message because you are subscribed to the Google Groups "Latex-br" group.
To unsubscribe from this group and stop receiving emails from it, send an email to latex-br+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/latex-br/CAOUY%3DrUg7ALRXquruapbuFx8ApoHhoyM4PaAFJqVdb_CxcKeOw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--

---------------------------------------------
ahhata alati, awienta Wilushati.

Francisco Antonio Doria

unread,
Sep 29, 2015, 7:24:50 AM9/29/15
to late...@googlegroups.com
Perdão; {portuges}

Meu preâmbulo é:

..........

\documentclass [12pt,twoside]{article}
%\usepackage {charter}
\usepackage {mathpazo}
\usepackage[portuges]{babel}
\usepackage{graphicx}
\usepackage {lettrine}
\usepackage[applemac]{inputenc}

\begin {document} 

\def\ptableofcontents{\section*{Sum\'ario\@mkboth{SUM\'ARIO}{SUM\'ARIO}}
 \@starttoc{toc}} \def\l@part#1#2{\addpenalty{\@secpenalty}
 \addvspace{2.25em plus 1pt} \begingroup
 \@tempdima 3em \parindent \z@ \rightskip \@pnumwidth \parfillskip -\@pnumwidth 
 {\leavevmode #1\hfil \hbox to\@pnumwidth{\hss #2}}\par
 \nobreak \endgroup} \def\l@section#1#2{\addpenalty{\@secpenalty}
\addvspace{1.0em plus 1pt} \@tempdima 1.5em \begingroup
 \parindent \z@ \rightskip \@pnumwidth 
 \parfillskip -\@pnumwidth 
 \bf \leavevmode \advance\leftskip\@tempdima \hskip -\leftskip #1\nobreak\hfil
\nobreak\hbox to\@pnumwidth{\hss #2}\par
 \endgroup}

\def\thepbibliography#1{\section*{Refer\^encias}\list
 {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
 \advance\leftmargin\labelsep
 \usecounter{enumi}}
 \def\newblock{\hskip .11em plus .33em minus .07em}
 \sloppy\clubpenalty4000\widowpenalty4000
 \sfcode`\.=1000\relax} \let\endthepbibliography=\endlist
 
 \
 
 \thispagestyle {empty}
 \newpage

luciano de souza

unread,
Sep 29, 2015, 7:54:03 PM9/29/15
to latex-br
Nada funcionava porque ainda faltava um pacote. Este ficou resolvido com:

$ sudo apt-get install tex-lang-pt

De fato, é curioso. Não me lembro de ter instalado algo assim.

Bom, mas o importante é que funcionou. E para mim, funcionou com
"\usepackage[portuguese]{babel}".

De qualquer modo, obrigado!

Em 29/09/15, luciano de souza<luch...@gmail.com> escreveu:
--
Luciano de Souza
Reply all
Reply to author
Forward
0 new messages