Babel: 지원되는 언어(예: 포르투갈어)

Babel: 지원되는 언어(예: 포르투갈어)

나는 Babel 문서를 읽고 그것이 여러 버전의 포르투갈어를 지원한다는 것을 인식했습니다. 문서에 따르면 ToC. 문서에는 \captions<lang>. 하지만 portuguese나는 예를 들어 시도합니다.europeanportuguese

\documentclass[a4paper,11pt,europeanportuguese]{article}
\usepackage[shorthands=off]{babel}
\usepackage{kantlipsum}
\addto\captionseuropeanportuguese{%
    \renewcommand{\contentsname}{Conteúdo}
}
\begin{document}
    \tableofcontents
    \kant[1]
    \section{Second chapter}
    \kant[2]
\end{document}

그러나 ToC의 제목은 변경되지 않습니다.

내가 시도하면 portuguese-portugal상황은 더욱 악화됩니다! \captionsportuguese-portugal- 인식되지 않으며 lualatex컴파일도 되지 않습니다.

그리고 간단히 말해서 portuguese나는 얻는다.

Package babel Error: You haven't defined the language 'nil' yet. \babel@toc {nil}{}

그렇다면 유럽 및/또는 브라질 스타일로 포르투갈어를 올바르게 정의하려면 어떻게 해야 할까요?

Rem.: lang의 이름을 예제 naustrian보다 예를 들어 예상대로 작동합니다.

관련 정보