moderncv のセクション内のフォントの太さを変更する

moderncv のセクション内のフォントの太さを変更する

セクション内のフォントの太さを変更したいのですが、\textbf{}すべてを追加する必要があります。ドキュメント全体でこれを実現するより簡単な方法はありますか?

\documentclass[11pt, letterpaper, sans]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{blue}
\usepackage{fontawesome}
\usepackage[scale=0.85, top=2cm, bottom=2cm]{geometry}
\setlength{\hintscolumnwidth}{2.6cm}
\usepackage{tikz}
\usepackage{mathptmx}
\usepackage[11pt]{moresize}

\firstname{First}
\familyname{Last}
\email{[email protected]}

\begin{document}

\makecvtitle

\section{Education}

\section{\textbf{Awards}}

\end{document}

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

答え1

\textbf1 つの可能性は、次のようにスタイル定義にコマンドを追加することです。

\renewcommand*{\sectionstyle}[1]{{\sectionfont\textcolor{color1}{\textbf{#1}}}}
%                                                                ^^^^^^^^^^^

次の完全なMWE

\documentclass[11pt, letterpaper, sans]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{blue}
\usepackage{fontawesome}
\usepackage[scale=0.85, top=2cm, bottom=2cm]{geometry}
\setlength{\hintscolumnwidth}{2.6cm}
\usepackage{tikz}
\usepackage{mathptmx}
\usepackage[11pt]{moresize}

\firstname{First}
\familyname{Last}
\email{[email protected]}

\renewcommand*{\sectionstyle}[1]{{\sectionfont\textcolor{color1}{\textbf{#1}}}}


\begin{document}

\makecvtitle

\section{Education}

\section{Awards}

\end{document}

望んだ結果:

結果のPDF

関連情報