moderncv で参照セクションのタイトルを変更できない

moderncv で参照セクションのタイトルを変更できない

私は、次の前文を含む moderncv ドキュメント クラスを使用して CV を作成しようとしています。

\documentclass[10pt,letter]{moderncv}

% CV Theme Settings

\moderncvtheme[black]{classic}

% Font and Typography Settings

\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[babel=true]{microtype}

....

私の出版物には次のコードがあります:

\nocite{*}
\bibliographystyle{plainyr}
\bibliography{publications}

pdflatexとダンスを使用して履歴書をタイプセットするとbibtex、出版物が「参考文献」という見出しの下に表示されます。セクションの見出しを「出版物」に変更する方法を知っている人はいますか? 次のように手動でセクションを配置してみました。

\section{\textbf{Publications}}
\nocite{*}
\bibliographystyle{plainyr}
\bibliography{publications}

しかし、これでは空の Publications セクションと、その後に References というタイトルのセクションが配置されるだけです。

どうぞよろしくお願いいたします。

答え1

babelオプションを使用している場合はenglish、これを追加する必要があります

\addto\captionsenglish{\renewcommand\refname{Publications}}

ドキュメントの序文に追加します。完全な例 (例を誰でもコンパイルできるようにするためにいくつかの設定を変更しましたが、これは関係ありません):

\begin{filecontents}{xxyy.bib}
\@misc{A,
  author="Author",
  year="2024"
}
\end{filecontents}
\documentclass[10pt,letter]{moderncv}
\moderncvtheme[black]{classic}
\usepackage[english]{babel}

\firstname{John}
\familyname{Doe}

\addto\captionsenglish{\renewcommand\refname{Publications}}

\begin{document}

\maketitle

\nocite{*}
\bibliographystyle{plain}
\bibliography{xxyy}

\end{document}

ここに画像の説明を入力してください

関連情報