
セクション内のフォントの太さを変更したいのですが、\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
\textbf
1 つの可能性は、次のようにスタイル定義にコマンドを追加することです。
\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}
望んだ結果: