[Tex/LaTex] moderncv \cvitemwithcomment without bold font for the second argument

fontsmoderncv

Is it possible to use the \cvitemwithcomment without bold font for the second argument ?

MWE:

% compile with LuaLaTeX

\documentclass[11pt,a4paper,sans]{moderncv} 
\moderncvstyle{classic} 
\moderncvcolor{blue} 

\usepackage[ngerman]{babel}                     

\firstname{John}
\familyname{Doe}

\begin{document}

\cvitemwithcomment{German}{Native}{Mother Tongue}
\cvitemwithcomment{Frensh}{Native}{Mother Tongue}

\end{document}

enter image description here

Best Answer

Yes, it is.

Just insert \mdseries (which overwrites the default \bfseries) in the second argument:

\cvitemwithcomment{French}{\mdseries Native}{Mother Tongue}

Complete MWE

% compile with LuaLaTeX

\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{blue}

\usepackage[ngerman]{babel}

\firstname{John}
\familyname{Doe}

\begin{document}

\cvitemwithcomment{German}{Native}{Mother Tongue}
\cvitemwithcomment{French}{\mdseries Native}{Mother Tongue}

\end{document} 

Output

enter image description here


EDIT

If you want to change this behavior globally in the document, you can instead add the following lines in your preamble

\usepackage{xpatch}
\xpatchcmd{\cvitemwithcomment}{\bfseries}{\mdseries}{}{}
\xpatchcmd{\cvitemwithcomment}{\bfseries}{\mdseries}{}{}

so that your MWE becomes:

% compile with LuaLaTeX

\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{blue}

\usepackage[ngerman]{babel}

\usepackage{xpatch}
\xpatchcmd{\cvitemwithcomment}{\bfseries}{\mdseries}{}{}
\xpatchcmd{\cvitemwithcomment}{\bfseries}{\mdseries}{}{}

\firstname{John}
\familyname{Doe}

\begin{document}

\cvitemwithcomment{German}{Native}{Mother Tongue}
\cvitemwithcomment{French}{Native}{Mother Tongue}

\end{document}