7

I'm using TexMaker in Xubuntu. I wrote these lines:

\documentclass{article}
%
\title{Os devaneios da pós-graduação de Luís Muniz}
\author{Luís Augusto Muniz Telles}
\date{\today}
\usepackage[portuguese]{babel}
%
\begin{document}
\maketitle
%
"Paulo batista mito"
\end{document}

When I click on the button to compile, it gives me this error:

#"Package babel error: unknown option 'portuguese'. Either you mispelled it  
 (babel)      or the language definition file portugues.ldf was not found."

I already tried the options portuges, brazilian and brazil and it gives me the same error.

Note: I just installed TexMaker and tried it out.

  • 6
    'ello, Welcome to TeX.sx! Are you using TeX and friends through Ubuntu's packaging system or the vanilla one from TUG? If it's the former, there might be some missing dependency, say, texlive-lang-portuguese. :) – Paulo Cereda Oct 2 '14 at 0:30
  • Ahhhh, I went to the Ubuntu's Software Center and downloaded 'texlive-lang-portuguese' and now it works! Thanks, very much!!! – Luís Muniz Oct 2 '14 at 14:31
6

From my comment to a proper answer. :)

This looks like a missing dependency in the TeX installation. Running

$ sudo apt-get install texlive-lang-portuguese

in the terminal (or installing the very same package via Software Center) will install the Portuguese support for babel and hopefully the code will work. :)


Also, the format of the document should be

\documentclass{article}

\usepackage[T1]{fontenc} % to have good hyphenation
\usepackage[utf8]{inputenc} % accented characters in input
\usepackage[portuguese]{babel}
%
\title{Os devaneios da pós-graduação de Luís Muniz}
\author{Luís Augusto Muniz Telles}
\date{\today}
%
\begin{document}
\maketitle
%
``Paulo batista mito''
\end{document}
  • Deve ser muito engraçado este Paulo Batista – LCarvalho Oct 11 '17 at 0:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.