
프랑스어 에서는 amsbook
. \partname
어떻게 해결하는지 궁금합니다.
\documentclass{amsbook}
\usepackage[french]{babel}
\title{La démocratie}
\author{Quelqu'un}
\begin{document}
\frontmatter
\maketitle
\tableofcontents
\mainmatter
\part{Introduction}
\end{document}
답변1
제목에 '프리미에르 파티'를 유지하고 싶으신 것 같으니 몇 가지 팁을 알려드리겠습니다.
첫째, 의 코드는 무시(또는 제거)해야 하는 공백이 앞에 오는 babel-french
것을 고려하지 않으므로 아무것도 하지 않는 대신 ( 로컬에서) 재정의하여 문제를 해결합니다.\thepart
\thepart
\unskip
둘째, 파일 에 쓰지 않고 \@part
직접 쓰도록 패치했습니다 .Partie
\partname
toc
\documentclass{amsbook}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage{etoolbox}
% fix a small issue in babel-french
\makeatletter
\renewcommand\FB@emptypart{\def\thepart{\unskip}}
% make \part write 'Partie' instead of '\partname'
\patchcmd{\@part}{\partname}{Partie}{}{}
\makeatother
\title{La démocratie}
\author{Quelqu'un}
\begin{document}
\frontmatter
\maketitle
\tableofcontents
\mainmatter
\part{Introduction}
\end{document}
답변2
에 따르면babel-french
패키지 문서 PartNameFull
이러한 문제를 방지하려면 로 설정해야 합니다 false
.
따라서 \frenchsetup{PartNameFull=false}
서문에 추가하십시오. 이렇게 하면 문제가 해결될 것입니다.
문서 발췌:
PartNameFull=false(참);
true인 경우 babel-french는 \part{} 명령의 제목을 "Première partie", "Deuxième partie" 등으로 번호를 매깁니다. \part{} 명령을 변경하는 일부 클래스의 경우(AMS 클래스가 그렇게 함) 목차에 "Première partie 1", "Deuxième partie 2"를 얻을 수 있습니다. 이 경우 이 옵션을 false로 설정해야 하며, 부품 제목은 "Partie I", "Partie II"로 인쇄됩니다.