我在 Xubuntu 中使用 TexMaker。我寫了這些行:
\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}
當我單擊按鈕進行編譯時,出現以下錯誤:
#"Package babel error: unknown option 'portuguese'. Either you mispelled it
(babel) or the language definition file portugues.ldf was not found."
我已經嘗試過這些選項portuges
,brazilian
它brazil
給了我同樣的錯誤。
筆記:我剛剛安裝了 TexMaker 並嘗試了一下。
答案1
從我的評論到正確的答案。:)
這看起來像是 TeX 安裝中缺少依賴項。跑步
$ sudo apt-get install texlive-lang-portuguese
在終端中(或透過軟體中心安裝相同的軟體包)將安裝葡萄牙語支持,babel
希望代碼能夠運作。:)
另外,文件的格式應該是
\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}