無法更改 Moderncv 中的參考文獻部分標題

無法更改 Moderncv 中的參考文獻部分標題

我正在嘗試使用帶有以下序言的 Moderncv 文件類別來編寫簡歷:

\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當我使用和dance排版我的簡歷時bibtex,我的出版物顯示在“參考文獻”標題下。有誰知道如何將部分標題更改為出版物?我嘗試手動放置一個部分,如下所示:

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

但這只會放置一個空的出版部分,然後放置一個標題為參考文獻的部分。

預先感謝您。

答案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}

在此輸入影像描述

相關內容